[ODE] Newbie: linker error with dxWorld
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Fri Oct 13 18:25:45 MST 2006
Global variables do not have to be static, just because the functions
are static.
Ben Martin wrote:
> I apologize if this has been covered before but I tried to search the
> list archive and couldn't find anything.
>
> I tried to integrate ODE with Irrlicht by following a tutorial found
> online. The problem is that I get linker errors when trying to compile.
> I got the latest version of ODE from SVN and compiled it using VS2005. I
> am programming with VC++
>
> Errors:
>
>
>>> Error 31 error LNK2001: unresolved external symbol
>>>
> "private: static struct dxWorld * Irrlicht::m_TheWorld"
> (?m_TheWorld at Irrlicht@@0PAUdxWorld@@A) Irrlicht_test.obj
>
>>> Error 32 error LNK2001: unresolved external symbol
>>>
> "private: static struct dxSpace * Irrlicht::m_TheSpace"
> (?m_TheSpace at Irrlicht@@0PAUdxSpace@@A) Irrlicht_test.obj
>
>>> Error 33 error LNK2001: unresolved external symbol
>>>
> "private: static struct dxJointGroup * Irrlicht::m_TheJointGroup"
> (?m_TheJointGroup at Irrlicht@@0PAUdxJointGroup@@A)
> Irrlicht_test.obj
>
>>> Error 34 fatal error LNK1120: 3 unresolved externals
>>>
> F:\Projects\Irrlicht\Debug\Irrlicht_test.exe
>
> Code:
>
> #include <ode/ode.h>
> #pragma comment(lib, "ode.lib")
>
> static dWorldID m_TheWorld;
> static dSpaceID m_TheSpace;
> static dJointGroupID m_TheJointGroup
>
> I have to declare them as static because they are used in my Collision
> Callback function which is declared as static.
>
> Thanks a lot for your help
>
> Ben
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
>
>
More information about the ODE
mailing list