I have static member in a class, say class A, in class A i have a static bool attribute xyz. Then I have another class, class B. In class B, I wanna set A::xyz=true;
but compiler gives 2 errors:
error LNK2001: unresolved external symbol "private: static bool...
fatal error LNK1120: 1 unresolved externals
Has anyone got any idea how to get around this?
but compiler gives 2 errors:
error LNK2001: unresolved external symbol "private: static bool...
fatal error LNK1120: 1 unresolved externals
Has anyone got any idea how to get around this?
Comment