I'm using Visual Studio 2008 under Windows 7. I have a .lib and accompanying .h files (which make use of wxWidgets if that makes a difference) which compile without any issues.
I'm trying to import that library into a GUI project but when I do, the main class I'm interested in doesn't appear to be there?
I've added #include "MyLib.h"
to the gui and added mylib.lib
to the including libraries but for some reason I get:
MyLib.obj : error LNK2001: unresolved external symbol "public: __thiscall MyLibClass::MyLibClass(void)" (??0MyLibClass@@QAE@XZ)
Why might that happen?