Problem while linking with ODE

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
petra999
Posts: 10
Joined: Sat May 31, 2008 5:54 am

Problem while linking with ODE

Post by petra999 »

Hello!
I tried to compile something with ODE and i've some error:

Code: Select all

C:\cpp\irrlicht\ODE_IRRLICHT_TRY\main.cpp|2|warning: ignoring #pragma comment |
||warning: auto-importing has been activated without --enable-auto-import specified on the command line.|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"libcpmt" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
||Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\ode.obj):\Code\ode\trunk\to:(.text[_dBodySetAutoDisableAverageSamplesCount]+0x3b)||undefined reference to `??3@YAXPAX@Z'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\ode.obj):\Code\ode\trunk\to:(.text[_dBodySetAutoDisableAverageSamplesCount]+0x54)||undefined reference to `??3@YAXPAX@Z'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\ode.obj):\Code\ode\trunk\to:(.text[_dBodySetAutoDisableAverageSamplesCount]+0x70)||undefined reference to `??2@YAPAXI@Z'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\ode.obj):\Code\ode\trunk\to:(.text[_dBodySetAutoDisableAverageSamplesCount]+0x85)||undefined reference to `??2@YAPAXI@Z'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\ode.obj):\Code\ode\trunk\to:(.text[_dJointGroupEmpty]+0x37)||undefined reference to `__alloca_probe'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\ode.obj):\Code\ode\trunk\to:(.text[_dBodyDestroy]+0xa6)||undefined reference to `??3@YAXPAX@Z'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\ode.obj):\Code\ode\trunk\to:(.text[_dBodyDestroy]+0xbf)||undefined reference to `??3@YAXPAX@Z'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\ode.obj):\Code\ode\trunk\to:(.text[_dWorldDestroy]+0x3f)||undefined reference to `??3@YAXPAX@Z'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\ode.obj):\Code\ode\trunk\to:(.text[_dWorldDestroy]+0x58)||undefined reference to `??3@YAXPAX@Z'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\error.obj):\Code\ode\trunk\to:(.text[_dError]+0x7)||undefined reference to `___security_cookie'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\error.obj):\Code\ode\trunk\to:(.text[_dDebug]+0x7)||undefined reference to `___security_cookie'|
8]+0x0)||undefined reference to `??_7type_info@@6B@'|
8]+0x0)||undefined reference to `??_7type_info@@6B@'|
XZ]+0x9)||undefined reference to `__except_list'|
XZ]+0x11)||undefined reference to `__except_list'|
XZ]+0x6c)||undefined reference to `__except_list'|
8]+0x0)||undefined reference to `??_7type_info@@6B@'|
8]+0x0)||undefined reference to `??_7type_info@@6B@'|
Z]+0x80)||undefined reference to `__alloca_probe'|
Z]+0x104)||undefined reference to `__ftol2'|
Z]+0x15d)||undefined reference to `__alloca_probe'|
Z]+0x1b5)||undefined reference to `__alloca_probe'|
Z]+0x22f)||undefined reference to `__alloca_probe'|
8]+0x0)||undefined reference to `??_7type_info@@6B@'|
8]+0x0)||undefined reference to `??_7type_info@@6B@'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\matrix.obj):\Code\ode\trunk\to:(.text[_dSolveCholesky]+0x55)||undefined reference to `__alloca_probe'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\matrix.obj):\Code\ode\trunk\to:(.text[_dLDLTAddTL]+0x61)||undefined reference to `__alloca_probe'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\matrix.obj):\Code\ode\trunk\to:(.text[_dLDLTAddTL]+0x7d)||undefined reference to `__alloca_probe'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\matrix.obj):\Code\ode\trunk\to:(.text[_dFactorCholesky]+0x4f)||undefined reference to `__alloca_probe'|
C:\cpp\irrlicht\ODE_IRRLICHT_TRY\ode.lib(.\obj\ode\ReleaseLib\matrix.obj):\Code\ode\trunk\to:(.text[_dInvertPDMatrix]+0x64)||undefined reference to `__alloca_probe'|
XZ]+0x9)||undefined reference to `__except_list'|
XZ]+0x11)||undefined reference to `__except_list'|
XZ]+0x43)||undefined reference to `__except_list'|
XZ]+0x9)||undefined reference to `__except_list'|
XZ]+0x11)||undefined reference to `__except_list'|
XZ]+0x2e)||undefined reference to `??3@YAXPAX@Z'|
XZ]+0x59)||undefined reference to `__except_list'|
QAEXXZ]+0x26)||undefined reference to `??2@YAPAXI@Z'|
QAEXXZ]+0x48)||undefined reference to `??2@YAPAXI@Z'|
QAEXXZ]+0x4de)||undefined reference to `??3@YAXPAX@Z'|
Z]+0x9)||undefined reference to `__except_list'|
Z]+0x11)||undefined reference to `__except_list'|
Z]+0x176)||undefined reference to `__except_list'|
8]+0x0)||undefined reference to `??_7type_info@@6B@'|
XZ]+0x9)||undefined reference to `__except_list'|
XZ]+0x11)||undefined reference to `__except_list'|
XZ]+0x73)||undefined reference to `__except_list'|
Z]+0x11)||undefined reference to `??3@YAXPAX@Z'|
Z]+0x11)||undefined reference to `??3@YAXPAX@Z'|
Z]+0x11)||undefined reference to `??3@YAXPAX@Z'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 68 warnings ===|

Strange?

I'm use Code::Blocks on Windows

Do you know this problem?
What to do to fix it?

Thanks.
wyrmmage
Posts: 204
Joined: Sun Mar 16, 2008 3:12 am
Contact:

Post by wyrmmage »

What compiler? I've had problems using MingW (GNU toolset) that took awhile to work around.
-wyrmmage
Worlds at War (Current Project) - http://www.awkward-games.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
petra999
Posts: 10
Joined: Sat May 31, 2008 5:54 am

Post by petra999 »

yes, it's mingw, maybe just change compiler?
SG57
Posts: 66
Joined: Fri May 18, 2007 5:51 am

Post by SG57 »

god i'm having this problem as well

i really need a way around it >:(
wyrmmage
Posts: 204
Joined: Sun Mar 16, 2008 3:12 am
Contact:

Post by wyrmmage »

oh....this took me way too long to realize what the problem is, sorry :(
I think your problem is that the .lib files that come with ODE are built with MSVC; to correct this problem, you'll need to build the engine with mingw and I *think* your problems will be solved :)
-wyrmmage
Worlds at War (Current Project) - http://www.awkward-games.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
FlyingIsFun1217
Posts: 219
Joined: Fri Apr 13, 2007 8:29 pm
Location: Illinois
Contact:

Post by FlyingIsFun1217 »

Unless you *know* that they were built with your compiler, always build your own libs.

FlyingIsFun1217
Post Reply