Gohla
23-05-2009 10:27:49
I'm trying to compile the latest svn trunk version of Caelum (rev 439) against Ogre Cthuga 1.7 from the svn trunk (https://ogre.svn.sourceforge.net/svnroot/ogre/trunk/) using Visual Studio 2008.
It compiles fine but at linking it gives some weird errors:
I had the same problem with compiling MyGUI against Ogre 1.7 but they seemed to solve it recently (post here: viewtopic.php?f=17&t=9737&p=58713).
Does anyone know how to fix these errors?
It compiles fine but at linking it gives some weird errors:
Linking...
Creating library ../lib/release/caelum.lib and object ../lib/release/caelum.exp
CaelumPlugin.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Resource::Resource(class Ogre::Resource const &)" (__imp_??0Resource@Ogre@@QAE@ABV01@@Z) referenced in function "public: __thiscall Caelum::PropScriptResource::PropScriptResource(class Caelum::PropScriptResource const &)" (??0PropScriptResource@Caelum@@QAE@ABV01@@Z)
CaelumScriptTranslator.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Resource::Resource(class Ogre::Resource const &)" (__imp_??0Resource@Ogre@@QAE@ABV01@@Z)
CaelumSystem.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Resource::Resource(class Ogre::Resource const &)" (__imp_??0Resource@Ogre@@QAE@ABV01@@Z)
CaelumPlugin.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::Resource & __thiscall Ogre::Resource::operator=(class Ogre::Resource const &)" (__imp_??4Resource@Ogre@@QAEAAV01@ABV01@@Z) referenced in function "public: class Caelum::PropScriptResource & __thiscall Caelum::PropScriptResource::operator=(class Caelum::PropScriptResource const &)" (??4PropScriptResource@Caelum@@QAEAAV01@ABV01@@Z)
CaelumScriptTranslator.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Resource & __thiscall Ogre::Resource::operator=(class Ogre::Resource const &)" (__imp_??4Resource@Ogre@@QAEAAV01@ABV01@@Z)
CaelumSystem.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Resource & __thiscall Ogre::Resource::operator=(class Ogre::Resource const &)" (__imp_??4Resource@Ogre@@QAEAAV01@ABV01@@Z)
CaelumPlugin.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ResourceManager::ResourceManager(class Ogre::ResourceManager const &)" (__imp_??0ResourceManager@Ogre@@QAE@ABV01@@Z) referenced in function "public: __thiscall Caelum::PropScriptResourceManager::PropScriptResourceManager(class Caelum::PropScriptResourceManager const &)" (??0PropScriptResourceManager@Caelum@@QAE@ABV01@@Z)
CaelumScriptTranslator.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ResourceManager::ResourceManager(class Ogre::ResourceManager const &)" (__imp_??0ResourceManager@Ogre@@QAE@ABV01@@Z)
CaelumSystem.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ResourceManager::ResourceManager(class Ogre::ResourceManager const &)" (__imp_??0ResourceManager@Ogre@@QAE@ABV01@@Z)
CaelumPlugin.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::ResourceManager & __thiscall Ogre::ResourceManager::operator=(class Ogre::ResourceManager const &)" (__imp_??4ResourceManager@Ogre@@QAEAAV01@ABV01@@Z) referenced in function "public: class Caelum::PropScriptResourceManager & __thiscall Caelum::PropScriptResourceManager::operator=(class Caelum::PropScriptResourceManager const &)" (??4PropScriptResourceManager@Caelum@@QAEAAV01@ABV01@@Z)
CaelumScriptTranslator.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::ResourceManager & __thiscall Ogre::ResourceManager::operator=(class Ogre::ResourceManager const &)" (__imp_??4ResourceManager@Ogre@@QAEAAV01@ABV01@@Z)
CaelumSystem.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::ResourceManager & __thiscall Ogre::ResourceManager::operator=(class Ogre::ResourceManager const &)" (__imp_??4ResourceManager@Ogre@@QAEAAV01@ABV01@@Z)
../bin/release/caelum.dll : fatal error LNK1120: 4 unresolved externals
I had the same problem with compiling MyGUI against Ogre 1.7 but they seemed to solve it recently (post here: viewtopic.php?f=17&t=9737&p=58713).
Does anyone know how to fix these errors?