Setup application to use OgreODE

v0id

07-04-2009 21:43:25

I have a tiny problem, compiling an Ogre application to work with OgreODE. I have successfully compiled both ODE (version 0.11) and OgreODE (from this link: http://ogreaddons.svn.sourceforge.net/viewvc/ogreaddons/trunk/ogreode/), under Visual Studio 2008.

In my project, I include the following directories: "ogreode\include" and "ode\include", and and I link to "OgreOde_Core_d.lib", at "ogreode\lib".
In my application, the only thing I do is: #include "OgreOde_Core.h". And on compilation, I get the following error several times:

c:\ogresdk\include\ode\common.h(127) : error C2872: 'uint32' : ambiguous symbol
could be 'c:\ogresdk\include\ode\config.h(158) : unsigned int uint32'
or 'c:\ogresdk\include\ogreplatform.h(213) : Ogre::uint32'
c:\ogreode\include\ogreodejoint.h(46) : error C2065: 'dJointTypePU' : undeclared identifier


I guess somewhere I / or OgreODE includes something twice, but I know if that's it. Maybe I compiled OgreODE wrong... dunno...

Any help appreciated.

Fumero

12-05-2009 18:45:51

I have teh same problem with differents errors
C:\Program Files\OgreSDK\include\ode/common.h(127) : error C2872: 'uint32' : ambiguous symbol
could be 'C:\Program Files\OgreSDK\include\ode/config.h(158) : unsigned int uint32'
or 'c:\program files\ogresdk\include\OgrePlatform.h(213) : Ogre::uint32'

I NEED YOUR HELPS PLEASE....

marc_antoine

15-05-2009 04:37:09

before all i compiled ogreODE using Shoggoth(1.6) + ODE 0.11+ SVN ogreODE VC++2008 express , using te SVN version is better since it is patched,and for the error telling you about the uint32, i got it solved by changing iunt23 to Ogre::uint32


oh and by the way for that "joint" error, always remmeber that u still have to add the include to ODE..
in the tools->options->VC++Directories i have added this : $(ODE)\include...

als dont forget to add the ODE lib, and the path to it..

kamaliang

07-12-2009 16:28:19

It seems that you have linked to the ODE lib int the OGRE SDK's dependencies lib.... :wink: