The problem is now solved. I check the project settings in both debug and release modes and I find some differences. I notice that the game lib project is without Pure MSLI Common Language Runtime...
No.
I mean I use Batch Build in the game library project to build the Release build of the library file. This is OK, and then I put the Release version of the lib file into the main game project...
P.S. The game object library is recompiled in the release mode without errors. I use this release version library to recompile the main game with the above log.
I now recompile my library. The old game objects library is compiled in the debug mode. Now I recompile it in the release mode. The error msg change to "error LNK2001: unresolved external symbol"
...
Thanks for your reply! I have visited the link "http://blogs.msdn.com/vcblog/archive/2007/05/17/diagnosing-hidden-odr-violations-in-visual-c-and-fixing-lnk2022.aspx" in the second reply of the post...
I am using Visual Studio 2005 C++ environment to work with a Windows Form Project.
I am working on a simple mini-game using game objects (game field, monsters, etc.) detailed in some classes which...