Link error with OGRe with current svn

wolfmanfx

08-09-2008 18:17:12

Hi

1> Creating library lib\Debug\MyGUI_d.lib and object lib\Debug\MyGUI_d.exp
1>MyGUI_FontManager.obj : error LNK2001: unresolved external symbol "public: virtual class Ogre::SharedPtr<class Ogre::Resource> __thiscall Ogre::ResourceManager::getByName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?getByName@ResourceManager@Ogre@@UAE?AV?$SharedPtr@VResource@Ogre@@@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>MyGUI_Gui.obj : error LNK2019: unresolved external symbol "public: virtual class Ogre::SharedPtr<class Ogre::Resource> __thiscall Ogre::ResourceManager::getByName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?getByName@ResourceManager@Ogre@@UAE?AV?$SharedPtr@VResource@Ogre@@@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall MyGUI::Widget::getPointer(void)" (?getPointer@Widget@MyGUI@@QAEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
1>MyGUI_EditText.obj : error LNK2001: unresolved external symbol "public: virtual class Ogre::SharedPtr<class Ogre::Resource> __thiscall Ogre::ResourceManager::getByName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?getByName@ResourceManager@Ogre@@UAE?AV?$SharedPtr@VResource@Ogre@@@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>MyGUI_SimpleText.obj : error LNK2001: unresolved external symbol "public: virtual class Ogre::SharedPtr<class Ogre::Resource> __thiscall Ogre::ResourceManager::getByName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?getByName@ResourceManager@Ogre@@UAE?AV?$SharedPtr@VResource@Ogre@@@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>../Shared/Debug\MyGUI_d.dll : fatal error LNK1120: 1 unresolved externals

~[L]~

10-09-2008 03:35:59

Weird, wich compiler are you using ?
apparently you're not linking a library

Maybe OgreMain.lib or OgreMain_d.lib ?
Check the linker Input options =)

Dew ~>

wolfmanfx

12-09-2008 22:36:56

No it was error that the trunk was out of date after sinbad merged 1.6 back to trunk everything worked