m506 wrote:hey, i have a question.
Why does irrnewt need a lib and dll file to be able to be compiled if i added all the cpp source files from svn into my project?
I integrated all the cpp files with iphysics and it worked fine without the necessity of an iphysics lib and dll, but irrnewt is not letting me compile and keeps throwing unresolved functions to me.
im using the latest irrnewt svn + irrlicht 1.4.2 + newton 1.53
any ideas?
Hi, did you happen to get it working by compiling an IrrNewt lib file? I'm using the same versions of IrrNewt, Irrlicht, and Newton, and I'm having a problem compiling the demo.
I can sucessfully compile a lib for IrrNewt, but the demo causes linker errors:
Code: Select all
Linking...
demo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall irr::newton::IBody::setLinearDamping(float)" (__imp_?setLinearDamping@IBody@newton@irr@@QAEXM@Z) referenced in function "void __cdecl CreatePin(class irr::core::vector3d<float>)" (?CreatePin@@YAXV?$vector3d@M@core@irr@@@Z)
demo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall irr::newton::IBody::setMaterial(class irr::newton::IMaterial *)" (__imp_?setMaterial@IBody@newton@irr@@QAEXPAVIMaterial@23@@Z) referenced in function "void __cdecl CreatePin(class irr::core::vector3d<float>)" (?CreatePin@@YAXV?$vector3d@M@core@irr@@@Z)
demo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall irr::newton::IBody::setContinuousCollisionMode(bool)" (__imp_?setContinuousCollisionMode@IBody@newton@irr@@QAEX_N@Z) referenced in function "void __cdecl CreatePin(class irr::core::vector3d<float>)" (?CreatePin@@YAXV?$vector3d@M@core@irr@@@Z)
.
.
.
demo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall irr::newton::IBody::setFreeze(bool)" (__imp_?setFreeze@IBody@newton@irr@@QAEX_N@Z) referenced in function "public: virtual bool __thiscall MyEventReceiver::OnEvent(struct irr::SEvent const &)" (?OnEvent@MyEventReceiver@@UAE_NABUSEvent@irr@@@Z)
demo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class irr::newton::IBody * __thiscall irr::newton::IUtils::launchCube(void)" (__imp_?launchCube@IUtils@newton@irr@@QAEPAVIBody@23@XZ) referenced in function "public: virtual bool __thiscall MyEventReceiver::OnEvent(struct irr::SEvent const &)" (?OnEvent@MyEventReceiver@@UAE_NABUSEvent@irr@@@Z)
demo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class irr::newton::IUtils * __thiscall irr::newton::IWorld::getUtils(void)" (__imp_?getUtils@IWorld@newton@irr@@QAEPAVIUtils@23@XZ) referenced in function "public: virtual bool __thiscall MyEventReceiver::OnEvent(struct irr::SEvent const &)" (?OnEvent@MyEventReceiver@@UAE_NABUSEvent@irr@@@Z)
C:\dev\irrProject\Debug\irrProject.exe : fatal error LNK1120: 38 unresolved externals
Build log was saved at "file://c:\dev\irrProject\irrProject\Debug\BuildLog.htm"
irrProject - 39 error(s), 12 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I'm probably not creating the lib correctly (because I'm pretty darn sure I'm including it), but I have no idea what to do.
I also can't create an IrrNewt DLL for some reason - that causes 573 linker errors. Sorting out linker errors in Visual Studio (2005) is not at all my forte, and I have no idea where to start or what kind of information would be relevant.... help?? =p
[Edit]
Ok, I just tried the pre-compiled library from this thread:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=31113
and it gave the exact same linker errors upon compiling the demo. Now I'm pretty confused... I am SOOO bad at this
[Edit]
The linker errors I showed above were in Debug mode; here's what comes up in Release mode, if that makes any difference:
Code: Select all
Linking...
demo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class irr::newton::IWorld * __cdecl irr::newton::createPhysicsWorld(class irr::IrrlichtDevice *)" (__imp_?createPhysicsWorld@newton@irr@@YAPAVIWorld@12@PAVIrrlichtDevice@2@@Z)
demo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall irr::newton::ICharacterController::setRotationUpdate(bool)" (__imp_?setRotationUpdate@ICharacterController@newton@irr@@QAEX_N@Z)
demo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class irr::core::vector3d<float> __thiscall irr::newton::ICharacterController::FRIgetDirectionAbsolutePositionY(class irr::core::vector3d<float>)" (__imp_?FRIgetDirectionAbsolutePositionY@ICharacterController@newton@irr@@QAE?AV?$vector3d@M@core@3@V453@@Z)
.
.
.
demo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall irr::newton::ICharacterController::cantSetVelocityWhileMove(void)" (__imp_?cantSetVelocityWhileMove@ICharacterController@newton@irr@@QAEXXZ)
demo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class irr::core::vector3d<float> __thiscall irr::newton::IBody::getShapeSize(void)" (__imp_?getShapeSize@IBody@newton@irr@@QAE?AV?$vector3d@M@core@3@XZ)
C:\dev\irrProject\Release\irrProject.exe : fatal error LNK1120: 39 unresolved externals
Build log was saved at "file://c:\dev\irrProject\irrProject\Release\BuildLog.htm"
irrProject - 40 error(s), 12 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========