I have a header:
class a
{
public:
a();
static int Zero();
void SimpleEx();
}
and its cpp file:
a() { }
static int a::Zero() {return 0;}
void SimpleEx() { cout << a::Zero(); }
I get the error when compiling:
Error 1 error LNK2019: unresolved external symbol "public: static class a __cdecl a::Zero(void)" (?Zero@a@@SA?AV1@XZ) referenced in function "public: class a __thiscall a::SimpleEx(void)" (?SimpleEx@a@@QAE?AV1@XZ)
How to solve this?