In visual studio, one project has the Class A definition.
in header file A.h:
class A{
public:
void test();
}
in A.cpp file:
void A::test()
{
}
no error here.
But another project when I try to use the test function of A in file B.cpp, there is a link error:
error LNK2019: unresolved external symbol "public: .. A::test() ...
I think here is nothing to do with the namespace. And the other classes defined in the same files as Class A (in A.h and A.cpp) have no problem using in B.cpp. What the possible reasons could be for my situation?
Thanks