IrrNewt 0.2 -> unresolved external symbol *SOLVED*

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Prott
Posts: 104
Joined: Sun Jan 14, 2007 12:01 pm

IrrNewt 0.2 -> unresolved external symbol *SOLVED*

Post by Prott »

Hello,
I have a problem with IrrNewt 0.2. I`m still getting linker error LNK2019 (unresolved external symbol), but when I tryed to compile sample aplications (Demo, Ragdoll, etc...) it worked. I included exactly same files in sample / my aplication (+ I have exactly same settings of VC++ .Net 2005).

Any ideas why I`m getting this error (on every line of irrnewt code) ?
Last edited by Prott on Mon Feb 26, 2007 4:54 pm, edited 1 time in total.
white tiger
Posts: 269
Joined: Tue Oct 31, 2006 3:24 pm
Contact:

Post by white tiger »

hi. i see your post now.

can you post all compiling log, please? also what compiler do you use? what OS?
Prott
Posts: 104
Joined: Sun Jan 14, 2007 12:01 pm

Post by Prott »

Compiler: Microsoft Visual C++ 2005 Express Edition Compiler
OS: Microsoft Windows XP 64-bit
Compiler Log:

Code: Select all

Compiling...
AlternateGEAR-MainCPP.cpp
Linking...
AlternateGEAR-MainCPP.obj : error LNK2019: unresolved external symbol "public: void __thiscall irr::newton::IBody::setContinuousCollisionMode(bool)" (?setContinuousCollisionMode@IBody@newton@irr@@QAEX_N@Z) referenced in function "bool __cdecl CreateNewtonWorld(void)" (?CreateNewtonWorld@@YA_NXZ)
AlternateGEAR-MainCPP.obj : error LNK2019: unresolved external symbol "public: void __thiscall irr::newton::IBody::autoCalcInertia(void)" (?autoCalcInertia@IBody@newton@irr@@QAEXXZ) referenced in function "bool __cdecl CreateNewtonWorld(void)" (?CreateNewtonWorld@@YA_NXZ)
AlternateGEAR-MainCPP.obj : error LNK2019: unresolved external symbol "public: void __thiscall irr::newton::IBody::setMass(float)" (?setMass@IBody@newton@irr@@QAEXM@Z) referenced in function "bool __cdecl CreateNewtonWorld(void)" (?CreateNewtonWorld@@YA_NXZ)
AlternateGEAR-MainCPP.obj : error LNK2019: unresolved external symbol "public: class irr::newton::ICharacterController * __thiscall irr::newton::IWorld::createCharacterController(class irr::newton::IBody *,bool)" (?createCharacterController@IWorld@newton@irr@@QAEPAVICharacterController@23@PAVIBody@23@_N@Z) referenced in function "bool __cdecl CreateNewtonWorld(void)" (?CreateNewtonWorld@@YA_NXZ)
AlternateGEAR-MainCPP.obj : error LNK2019: unresolved external symbol "public: class irr::newton::IBody * __thiscall irr::newton::IWorld::createBody(struct irr::newton::SBody)" (?createBody@IWorld@newton@irr@@QAEPAVIBody@23@USBody@23@@Z) referenced in function "bool __cdecl CreateNewtonWorld(void)" (?CreateNewtonWorld@@YA_NXZ)
AlternateGEAR-MainCPP.obj : error LNK2019: unresolved external symbol "class irr::newton::IWorld * __cdecl irr::newton::createPhysicsWorld(class irr::IrrlichtDevice *)" (?createPhysicsWorld@newton@irr@@YAPAVIWorld@12@PAVIrrlichtDevice@2@@Z) referenced in function "bool __cdecl CreateNewtonWorld(void)" (?CreateNewtonWorld@@YA_NXZ)
C:\moje veci\AG\Debug\Alternate Gear - Engine.exe : fatal error LNK1120: 6 unresolved externals
Build log was saved at "file://c:\moje veci\AG\Debug\BuildLog.htm"
Alternate Gear - Engine - 7 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
white tiger
Posts: 269
Joined: Tue Oct 31, 2006 3:24 pm
Contact:

Post by white tiger »

have you linked lib\irrnewt.lib ? try to insert this somewhere

#pragma comment(lib,"irrnewt.lib") and provide correct path to irrnewt.lib
Prott
Posts: 104
Joined: Sun Jan 14, 2007 12:01 pm

Post by Prott »

Thanks a lot for both help and whole IrrNewt 0.2 white tiger. :) Now it works.
Post Reply