Unable to compile any example files for IrrNewt.
Posted: Mon Jun 08, 2009 2:53 am
As a last resort, (I should have done this earlier) I am posting here to ask for your helping hand.
I spent hours today trying to work out tons of syntax errors that I was getting for IrrNewt examples. I even had to change some of the scripture in the included files for IrrNewt, but I just plain have no idea what a solution or alternative could be for this last linker error that I've been trying to work out..
I'm using Dev-C++.
The example file I am attempting to compile is ragdoll.cpp. (Though I have this same problem for anything that uses createBody() or createBodyAuto())
------------Here is the related code:----------------
----CODE:--------------------------------------------
---- //INI PHYSICS
---- p_world = irr::newton::createPhysicsWorld(device);
---- ragdoll_material = p_world->createMaterial();
---- world_material = p_world->createMaterial();
---- cube_material = p_world->createMaterial();
----
---- p_world->createBodyAuto(world_node, world_mesh)->setMaterial(world_material);
-------------------------------------------------------
------------Here is the linker error:-----------------
----CODE:--------------------------------------------
---- [Linker error] undefined reference to `_imp___ZN3irr6newton6IWorld14createBodyAutoEPNS_5scene10ISceneNodeEPNS2_5IMeshEfjNS_4core8CMatrix4IfEENS7_8vector3dIfEENS0_18E_CALCULATE_OFFSETENS0_16E_CALCULATE_SIZEE'
---- ld returned 1 exit status
-------------------------------------------------------
I bolded the function name in the linker error to show that they are related.
Here's what I tried:
Compiling with the latest version of Irrlicht as well as Irrlicht v1.2.
Using the createBody() function instead of createBodyAuto() with the same parameters.
If more information is needed to troubleshoot, feel free to request that I give it.
Any help/suggestions would be greatly appreciated!
- CheeseKeg.
By the way, the reason I didn't put the code in code blocks is because I wanted to highlight createBodyAuto in both.
I spent hours today trying to work out tons of syntax errors that I was getting for IrrNewt examples. I even had to change some of the scripture in the included files for IrrNewt, but I just plain have no idea what a solution or alternative could be for this last linker error that I've been trying to work out..
I'm using Dev-C++.
The example file I am attempting to compile is ragdoll.cpp. (Though I have this same problem for anything that uses createBody() or createBodyAuto())
------------Here is the related code:----------------
----CODE:--------------------------------------------
---- //INI PHYSICS
---- p_world = irr::newton::createPhysicsWorld(device);
---- ragdoll_material = p_world->createMaterial();
---- world_material = p_world->createMaterial();
---- cube_material = p_world->createMaterial();
----
---- p_world->createBodyAuto(world_node, world_mesh)->setMaterial(world_material);
-------------------------------------------------------
------------Here is the linker error:-----------------
----CODE:--------------------------------------------
---- [Linker error] undefined reference to `_imp___ZN3irr6newton6IWorld14createBodyAutoEPNS_5scene10ISceneNodeEPNS2_5IMeshEfjNS_4core8CMatrix4IfEENS7_8vector3dIfEENS0_18E_CALCULATE_OFFSETENS0_16E_CALCULATE_SIZEE'
---- ld returned 1 exit status
-------------------------------------------------------
I bolded the function name in the linker error to show that they are related.
Here's what I tried:
Compiling with the latest version of Irrlicht as well as Irrlicht v1.2.
Using the createBody() function instead of createBodyAuto() with the same parameters.
If more information is needed to troubleshoot, feel free to request that I give it.
Any help/suggestions would be greatly appreciated!
- CheeseKeg.
By the way, the reason I didn't put the code in code blocks is because I wanted to highlight createBodyAuto in both.