I am a C++ noob and dont know why I already get an error considering that I havent even done anything.
Here is my code
//in .h
#include <observers/variant/TimestampVariant.h>
class Record
{
public:
Record();
private:
observers::TimestampVariant stamp;
};
and in .cpp is basically nothing yet
#include <observers/variant/TimestampVariant.h>
Record::Record()
{
}
the scope and the include are correct as far as I can tell (TimestampVariant and stamp have the correct color and TimestampVariant seems correctly linked. When I compile I get the error:
error: undefined reference to `observers::TimestampVariant::TimestampVariant()'
The line which causes the error is
Record:Record()
Why am I getting already an error? Can you tell me why I am getting this error?