[ODE] ode 0.9.0 good to go

Chunky Kibbles chunky at icculus.org
Mon Oct 15 11:43:42 MST 2007


[Simple #include change]

I just downloaded 0.9 and tried to compile on my intel mac [OS 10.4.10,
XCode 2.1, gcc: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1]

Compiling with these flags:
./configure --enable-demos --with-trimesh=gimpact --disable-gyroscopic

I got this error:
/Users/chunky/src/ode/ode-0.9/GIMPACT/src/gim_memory.cpp:32:20: error:
malloc.h: No such file or directory
make[2]: *** [libGIMPACT_a-gim_memory.o] Error 1

According to the manpage on my mac, malloc and friends are defined
through stdlib.h, now, not malloc.h. Looking in that file, stdlib.h is
already included immediately above that line, this fixed it:

#if !defined(__APPLE__)
// malloc.h deprecated on apple
#include <malloc.h>
#endif

Gary (-;


More information about the ODE mailing list