I have a test class, it has nothing in it apart from the bones of a class.
h:
#ifndef TEST_H_
#define TEST_H_
class Test
{
public:
Test();
};
#endif /* TEST_H_ */
cpp
#include "test.h"
Test::Test()
{
}
And then in my main class I have:
Test *test = new Test();
I also include test.h.
I get the error:
Undefined reference to Test::Test()
Can anyone tell me where i'm going wrong?