problem with vce 2010? [solved]

nickak2003

30-09-2010 22:50:15

I compiled mygui, and now I'm trying to include it in my project, I added the include paths, I added the lib dirs, I added the libs...

I get a ton of warnings that look like this:

Warning 39 warning LNK4217: locally defined symbol ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z (bool __cdecl std::operator<<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)) imported in function "public: bool __thiscall std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >::operator()(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (??R?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@std@@QBE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0@Z) C:\Users\nickak\Documents\programming\2010\projects\ogre tests\ogre_simple\ogre_simple\mygui.ogreplatform_d.lib(MyGUI_OgreRenderManager.obj) ogre_simple



I get a ton of errors that look like this:

Error 64 error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBDABV10@@Z) referenced in function "public: virtual void __thiscall MyGUI::OgreTexture::loadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadFromFile@OgreTexture@MyGUI@@UAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) C:\Users\nickak\Documents\programming\2010\projects\ogre tests\ogre_simple\ogre_simple\mygui.ogreplatform_d.lib(MyGUI_OgreTexture.obj) ogre_simple

Error 61 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::swap(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (__imp_?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV12@@Z) referenced in function "void __cdecl std::swap<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (??$swap@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@YAXAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z) C:\Users\nickak\Documents\programming\2010\projects\ogre tests\ogre_simple\ogre_simple\mygui.ogreplatform_d.lib(MyGUI_OgreDataManager.obj) ogre_simple



for some reason the stl is freaking out?

Need help, thanks!

nickak2003

02-10-2010 07:08:17

OK I figured it out.....

When I compiled myguy ogre platform, $(ProjectName) has to be changed to $(ProjectName)_d, and everything works now.