[HELP]Passing from Debug to Release

clashy

23-05-2006 16:56:55

Hye, I'm working on a project and I am trying to pass it into release, because in debug version of Ogre and others, the FPS is to low.

On visual 2005
downloaded Ogre 1.2.0 dagon(release version), OgreNewt 1.62(latest version), and Newton 1.52(latest version)

I compiled them in release version, and passed the librairies in my project.

I tried to compile my project in release settings, but had this errors on the link:

And I hope you guys couldhelp me debug this...I really can't manage to do it on my own, and it's a critical moment of the project.

(for more clarity, I've put a - in front of each line and the first word in bold)

Linking...
-msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in Action.obj
-msvcprt.lib(MSVCP80.dll) : error LNK2005: "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> >(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 &)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z) already defined in CollisionManager.obj
-msvcprt.lib(MSVCP80.dll) : error LNK2005: "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> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z) already defined in BasicKeyListener.obj
-msvcprt.lib(MSVCP80.dll) : error LNK2005: "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 &)" (??$?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) already defined in OgreNewtApplication.obj
-msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in Action.obj
-msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in ActionFactory.obj
-MSVCRT.lib(MSVCR80.dll) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) already defined in LIBCMT.lib(stdexcpt.obj)
-MSVCRT.lib(MSVCR80.dll) : error LNK2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) already defined in LIBCMT.lib(stdexcpt.obj)
-MSVCRT.lib(MSVCR80.dll) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) already defined in LIBCMT.lib(stdexcpt.obj)
-MSVCRT.lib(MSVCR80.dll) : error LNK2005: "public: bool __thiscall type_info::operator==(class type_info const &)const " (??8type_info@@QBE_NABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
-MSVCRT.lib(MSVCR80.dll) : error LNK2005: __invalid_parameter_noinfo already defined in LIBCMT.lib(invarg.obj)
-MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
-MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
-LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
-SoundManager.obj : error LNK2019: unresolved external symbol _FMOD_System_Create referenced in function "enum FMOD_RESULT __cdecl FMOD::System_Create(class FMOD::System * *)" (?System_Create@FMOD@@YA?AW4FMOD_RESULT@@PAPAVSystem@1@@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::release(void)" (?release@System@FMOD@@QAE?AW4FMOD_RESULT@@XZ) referenced in function "public: __thiscall SoundManager::~SoundManager(void)" (??1SoundManager@@QAE@XZ)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::close(void)" (?close@System@FMOD@@QAE?AW4FMOD_RESULT@@XZ) referenced in function "public: __thiscall SoundManager::~SoundManager(void)" (??1SoundManager@@QAE@XZ)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Sound::release(void)" (?release@Sound@FMOD@@QAE?AW4FMOD_RESULT@@XZ) referenced in function "public: void __thiscall SoundManager::stopSound(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?stopSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Channel::stop(void)" (?stop@Channel@FMOD@@QAE?AW4FMOD_RESULT@@XZ) referenced in function "public: void __thiscall SoundManager::stopSound(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?stopSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::init(int,unsigned int,void *)" (?init@System@FMOD@@QAE?AW4FMOD_RESULT@@HIPAX@Z) referenced in function "private: __thiscall SoundManager::SoundManager(void)" (??0SoundManager@@AAE@XZ)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Channel::setPaused(bool)" (?setPaused@Channel@FMOD@@QAE?AW4FMOD_RESULT@@_N@Z) referenced in function "public: void __thiscall SoundManager::load2DSound(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> >,float,bool)" (?load2DSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M_N@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Channel::setVolume(float)" (?setVolume@Channel@FMOD@@QAE?AW4FMOD_RESULT@@M@Z) referenced in function "public: void __thiscall SoundManager::load2DSound(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> >,float,bool)" (?load2DSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M_N@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::playSound(enum FMOD_CHANNELINDEX,class FMOD::Sound *,bool,class FMOD::Channel * *)" (?playSound@System@FMOD@@QAE?AW4FMOD_RESULT@@W4FMOD_CHANNELINDEX@@PAVSound@2@_NPAPAVChannel@2@@Z) referenced in function "public: void __thiscall SoundManager::load2DSound(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> >,float,bool)" (?load2DSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M_N@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Sound::setMode(unsigned int)" (?setMode@Sound@FMOD@@QAE?AW4FMOD_RESULT@@I@Z) referenced in function "public: void __thiscall SoundManager::load2DSound(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> >,float,bool)" (?load2DSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M_N@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::createSound(char const *,unsigned int,struct FMOD_CREATESOUNDEXINFO *,class FMOD::Sound * *)" (?createSound@System@FMOD@@QAE?AW4FMOD_RESULT@@PBDIPAUFMOD_CREATESOUNDEXINFO@@PAPAVSound@2@@Z) referenced in function "public: void __thiscall SoundManager::load2DSound(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> >,float,bool)" (?load2DSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M_N@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Channel::set3DAttributes(struct FMOD_VECTOR const *,struct FMOD_VECTOR const *)" (?set3DAttributes@Channel@FMOD@@QAE?AW4FMOD_RESULT@@PBUFMOD_VECTOR@@0@Z) referenced in function "public: void __thiscall SoundManager::load3DSound(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> >,float)" (?load3DSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::Sound::set3DMinMaxDistance(float,float)" (?set3DMinMaxDistance@Sound@FMOD@@QAE?AW4FMOD_RESULT@@MM@Z) referenced in function "public: void __thiscall -SoundManager::load3DSound(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> >,float)" (?load3DSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M@Z)
-SoundManager.obj : error LNK2019: unresolved external symbol "public: enum FMOD_RESULT __thiscall FMOD::System::set3DSettings(float,float,float)" (?set3DSettings@System@FMOD@@QAE?AW4FMOD_RESULT@@MMM@Z) referenced in function "public: void __thiscall SoundManager::load3DSound(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> >,float)" (?load3DSound@SoundManager@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M@Z)
-D:\ProgCPP\DevRep\Release\GameEngine.exe : fatal error LNK1120: 14 unresolved externals

walaber

23-05-2006 17:54:47

if you are using MSVC, make sure you go into the project settings (with "release" configuration selected), and set C++ -> code generation to "Multithread DLL".

clashy

24-05-2006 16:44:55

For the Runtime Librairy : Oops :oops:
Shame on me :roll:

But still not working for the sound problem, even after checking if the Linker input is correct

I'm working on it, through help from the Ogre3D.org forum section.
I will let you know how it is going, in case others are using FMod and having same kind of problem