[ODE] Quick one for you..
Sorce Code
sorcecode at hotmail.com
Fri May 2 06:20:02 2003
#include "ode/ode.h"
#ifdef dDOUBLE
#define dsDrawBox dsDrawBoxD
#define dsDrawSphere dsDrawSphereD
#define dsDrawCylinder dsDrawCylinderD
#define dsDrawCappedCylinder dsDrawCappedCylinderD
#endif
#define NUM 10 // number of boxes
#define SIDE (0.2) // side length of a box
#define MASS (1.0) // mass of a box
#define RADIUS (0.1732f) // sphere radius
dWorld world;
world.setGravity(0,0,-9.81);
And I get this error...
c:\vampire2\main.cpp(21) : error C2143: syntax error : missing ';' before
'.'
c:\vampire2\main.cpp(21) : error C2501: 'world' : missing storage-class or
type specifiers
c:\vampire2\main.cpp(21) : error C2371: 'world' : redefinition; different
basic types
c:\vampire2\main.cpp(20) : see declaration of 'world'
c:\vampire2\main.cpp(21) : error C2143: syntax error : missing ';' before
'.'
Intresting... The test files compile ok and I have included the ode.lib
files..
Thanks in advance.
_________________________________________________________________
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile