[ODE] ODE on MSVC

anon dev at charliex.net
Tue Nov 27 15:26:02 MST 2001


One more change, just for drawstuff

since the header contains
void dsDrawBox (const float pos[3], const float R[12], const float sides[3]);
void dsDrawBoxD (const double pos[3], const double R[12],const double sides[3]);

and the test files 

#ifdef dDOUBLE
#define dsDrawBox dsDrawBoxD
#define dsDrawSphere dsDrawSphereD
#define dsDrawCylinder dsDrawCylinderD
#define dsDrawCappedCylinder dsDrawCappedCylinderD
#endif

when in dDOUBLE mode the compiler complains of not being able to have overloaded
functions in c mode, since the prototype effectively becomes

void dsDrawBoxD (const float pos[3], const float R[12], const float sides[3]);
void dsDrawBoxD (const double pos[3], const double R[12],const double sides[3]);

which msvc doesn't like since its invalid in C.

a quick dirty fix is just to say 

#ifdef dDOUBLE around the protoypes in drawstuff.h
...
#endif

charlie





More information about the ODE mailing list