I've started planning and working on a game project of mine. I happened upon the Irrlicht engine due to it's terrain system working just like I want it to, unlike other engines. Anyway, to the problem at hand.
I wanted to incoperate the irrBullet physics engine into my game, to add some dynamics. However, all I get are some linker errors each time I try to compile. I've tried everything that came up in my mind, but nothing helped.
I'm using Irrlicht 1.7.2 and irrBullet 0.1.71
These are the errors I get:
- cpp Code: Select all
1>------ Build started: Project: IrrZombieGame, Configuration: Debug Win32 ------
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>irrBullet.lib(softbody.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) 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 &)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) referenced in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>irrBullet.lib(softbody.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) 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)" (__imp_??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) referenced in function "public: virtual __thiscall std::logic_error::~logic_error(void)" (??1logic_error@std@@UAE@XZ)
1>irrBullet.lib(softbody.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) 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 *)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) referenced in function "protected: static void __cdecl std::vector<int,class std::allocator<int> >::_Xlen(void)" (?_Xlen@?$vector@HV?$allocator@H@std@@@std@@KAXXZ)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Documents and Settings\lkpit09dsfr\mina dokument\visual studio 2010\Projects\IrrZombieGame\Debug\IrrZombieGame.exe : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Lib load order(Although changing anything in it doesn't seam to matter):
- cpp Code: Select all
irrBullet.lib
BulletSoftBody.lib
BulletDynamics.lib
BulletCollision.lib
GIMPACTUtils.lib
LinearMath.lib
Irrlicht.lib
The only thing I'm doing ATM moment with the irrBullet library is to create it and set the gravity, nothing else. Tell me if you need any more info.
Some help with this would be great
EDIT:
Nevermind, I solved it. Apparently all the libraries but the main irrBullet.lib was compiled as debug while irrBullet.lib was compiled as release. Converting them all into debug builds solved the issue.
Regards, Deekkarn
