this is my files which I cut, but the essential is there
I have my file PID.h:
#ifndef PID_H_
#define PID_H_
class PID
{
public:
PID();
}
And my PID.cpp file:
#include "PID.h"
PID::PID(){
}
And my main.cpp:
#include "PID.h"
PID pid;
void setup(){}
void loop() {}
I'm wondering why I have this mistake:
C:\...\ccevwRea.ltrans0.ltrans.o: In function `_GLOBAL__sub_I_stairs':
<artificial>:(.text.startup+0x98): undefined reference to `PID::PID()'
Thanks !