I want to keep track of the instance of MyClass
, so I have add a private static variable std::map<int,MyClass*>
inside MyClass. The problem now is it causes unresolved external symbol, which I don't know how to debug. How can I resolve this?
Note: I'm a seasoned Java programmer and novice C++ programmer, and also I'll be using this as a JNI
dll
, that is why I need to keep track the instances of MyClass
.