Link error latest Ogre SVN

Vectrex

20-07-2009 17:34:09

Hi, I just updated VS to 2008 and updated to the latest Ogre SVN. Ogre compiles and runs fine, but Caelum gets these link errors. I'm assuming it's something in the latest ogre svn although the last time I updated ogre svn was only a few weeks ago.

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/debug/caelum_d.dll : fatal error LNK1120: 4 unresolved externals

Gohla

22-07-2009 18:26:26

Same errors as: viewtopic.php?f=21&t=10099 and viewtopic.php?f=21&t=10589#p61445
I stopped trying to get everything compiled against 1.7 a while ago because I had other stuff to do but it's on high priority now again but I still get the same error :( Any solution to this?

Gohla

22-07-2009 19:26:36

Got it to compile now for some reason.. I disabled all the stuff I didn't need (CEGUI renderer, dx10 renderer, bsp plugin, pcz plugin) and now it seems to work. Could the problem lie in one of those optional components?