compiler error

gugus

05-01-2007 14:51:31

Hello,i am newbie.
I compiled OgreOde with Code::block,and the demos,no probleme with it.
But when i try to do my own project,i gave me many error:

..\include\OgreOdeJoint.h:44: error: `dJointTypePlane2D' was not declared in this scope
..\include\OgreOdeJoint.h:44: error: enumerator value for `Type_PlanarJoint' not integer constant
..\include\OgreOdeGeometry.h:24: error: `dCapsuleClass' was not declared in this scope
..\include\OgreOdeGeometry.h:24: error: enumerator value for `Class_Capsule' not integer constant
..\include\OgreOdeGeometry.h:29: error: `dHeightfieldClass' was not declared in this scope
..\include\OgreOdeGeometry.h:29: error: enumerator value for `Class_Terrain' not integer constant
..\include\OgreOdeGeometry.h:30: error: `dConvexClass' was not declared in this scope
..\include\OgreOdeGeometry.h:30: error: enumerator value for `Class_Convex' not integer constant
..\prefab\include\OgreOdeObject.h:29: warning: no newline at end of file
:: === Build finished: 8 errors, 1 warnings ===


and the project propertie and build option are the same.

PS:excuse my poor english.

gugus

10-01-2007 11:59:59

Nobody has an idea?

tuan kuranes

12-01-2007 15:45:07

you have an include order problem, as it include an old ODE library (suremy the one that ships with Ogre) on your disk prior to the latest ONE.

gugus

13-01-2007 07:25:10

thank a lot!It works now. :D :D