IrrODE Wrapper Errors

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
coderaider249
Posts: 9
Joined: Fri Nov 04, 2011 4:38 pm

IrrODE Wrapper Errors

Post by coderaider249 »

Hi, I tried to do the first tutorial at the Bulletbyte web site. but when I compile it shows some errors and won't run.
The output looks like this:

Code: Select all

1>------ Build started: Project: IrrlichtApp, Configuration: Debug Win32 ------
1>  main.cpp
1>c:\irrlicht-1.7.2\irrode\include\irrode\cserializer.h(148): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\irrlicht-1.7.2\irrode\include\irrode\cserializer.h(273): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\irrlicht-1.7.2\irrode\include\irrode\event\cirrodeeventbodymoved.h(50): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\irrlicht-1.7.2\irrode\include\irrode\event\cirrodeeventbodymoved.h(51): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\irrlicht-1.7.2\irrode\include\irrode\event\cirrodeeventbodymoved.h(52): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\irrlicht-1.7.2\irrode\include\irrode\event\cirrodeeventbodymoved.h(53): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\irrlicht-1.7.2\irrode\include\irrode\event\cirrodeeventbodymoved.h(54): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libIrrOde.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol "public: __thiscall irr::ode::CIrrOdeEventJointSlider::CIrrOdeEventJointSlider(class irr::ode::CIrrOdeJoint *,float,float)" (??0CIrrOdeEventJointSlider@ode@irr@@QAE@PAVCIrrOdeJoint@12@MM@Z) referenced in function "public: virtual class irr::ode::IIrrOdeEvent * __thiscall irr::ode::CIrrOdeDevice::writeEventFor(class irr::ode::IIrrOdeEventWriter *)" (?writeEventFor@CIrrOdeDevice@ode@irr@@UAEPAVIIrrOdeEvent@23@PAVIIrrOdeEventWriter@23@@Z)
1>libIrrOde.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol "public: __thiscall irr::ode::CIrrOdeEventJointHinge2::CIrrOdeEventJointHinge2(class irr::ode::CIrrOdeJoint *,float,float,float)" (??0CIrrOdeEventJointHinge2@ode@irr@@QAE@PAVCIrrOdeJoint@12@MMM@Z) referenced in function "public: virtual class irr::ode::IIrrOdeEvent * __thiscall irr::ode::CIrrOdeDevice::writeEventFor(class irr::ode::IIrrOdeEventWriter *)" (?writeEventFor@CIrrOdeDevice@ode@irr@@UAEPAVIIrrOdeEvent@23@PAVIIrrOdeEventWriter@23@@Z)
1>libIrrOde.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol "public: __thiscall irr::ode::CIrrOdeEventJointHinge::CIrrOdeEventJointHinge(class irr::ode::CIrrOdeJoint *,float,float)" (??0CIrrOdeEventJointHinge@ode@irr@@QAE@PAVCIrrOdeJoint@12@MM@Z) referenced in function "public: virtual class irr::ode::IIrrOdeEvent * __thiscall irr::ode::CIrrOdeDevice::writeEventFor(class irr::ode::IIrrOdeEventWriter *)" (?writeEventFor@CIrrOdeDevice@ode@irr@@UAEPAVIIrrOdeEvent@23@PAVIIrrOdeEventWriter@23@@Z)
1>C:\Users\Githanjana Ishara\documents\visual studio 2010\Projects\IrrlichtApp\Debug\IrrlichtApp.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
I even tried pasting the code but no luck.

Help? :|
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: IrrODE Wrapper Errors

Post by randomMesh »

Compilation is ok (besides the warnings). This is a linker error.

Code: Select all

 
unresolved external symbol "public: __thiscall irr::ode::CIrrOdeEventJointSlider::CIrrOdeEventJointSlider(class irr::ode::CIrrOdeJoint *,float,float)"
 
Make sure you linked in both the ODE and IrrOde library. The order might be important.
"Whoops..."
coderaider249
Posts: 9
Joined: Fri Nov 04, 2011 4:38 pm

Re: IrrODE Wrapper Errors

Post by coderaider249 »

never mind. I fixed it. I've downloaded the wrong package of irrode. the right one is something like "irrode_1"
Brainsaw
Posts: 1242
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE Wrapper Errors

Post by Brainsaw »

Hi,

the irrode_1 package is a old branched version I uploaded to keep it compatible with old projects (like my "Stunt Marble Racers"). As I don't use VC for performance reasons (I get way better performance using MinGW) I never stumbled upon that problem, but I'll take a look once I have time for that. I'll post any news on that issue here.
Image
Dustbin::Games on the web: https://www.dustbin-online.de/
Post Reply