Hi guys,
I’m experiencing a problem while compiling a short C++ program in Release mode.
Nailing it down, it appears that the issue is related to a single (stupid) line in the C++ code ie merely :
CardMaker cm(“ground”);
indeed when adding it to my code, here is the compile message I get :
1>jctut.obj : error LNK2001: unresolved external symbol “private: static class TypeHandle PandaNode::BamReaderAuxDataDown::_type_handle” (?_type_handle@BamReaderAuxDataDown@PandaNode@@0VTypeHandle@@A)
1>jctut.obj : error LNK2001: unresolved external symbol “private: static class TypeHandle BamReaderAuxData::_type_handle” (?_type_handle@BamReaderAuxData@@0VTypeHandle@@A)
I’m puzzled, what kind of library is missing ??
The load I’m using is Panda3D-2011.01.23-107
under intel Compiler on IDE VisualStudio_2008 + Microsoft SDK 7.1
Any clue ?
BTW. When using a Panda 1.7.1 debug version I fully compiled from scratch, everything works perfectly in debug mode,
… but this damned CardMaker(“name”) generates the same link error in Release mode…
Addendum 1: This behaviour is showing up while using Intel C++ compiler integrated in Visual Studio 2008.
Addendum 2: Just tried to compile it with Microsoft Compiler, the issue doesn’t pop up.
Apparently the issue is tied to Intel Compiler + PANDA…