[ODE] problem while compiling

Timothy J. Wood tjw at omnigroup.com
Sun Jul 6 16:12:02 2003


   Modify configurator.c by adding the following two lines:

#include <stdlib.h>
#include <unistd.h>

   (I added them right after the include of <stdio.h>)

   I don't know if this is the 'approved' way of fixing this, but it 
worked for me :)

-tim


On Sunday, July 6, 2003, at 3:54 PM, Thomas Renou wrote:

> hello everybody i'am trying to compile ODE for MacOS X, i downloaded 
> the last version by CVS, and when i try to compile, it send me :
>
> [Ordinateur-de-Thomas-Renou:~/ode] thomas% make
> g++ -DdDOUBLE  -DdNODEBUG  -o configurator.exe configurator.c
> configurator.c: In function `void fatal_error(char*)':
> configurator.c:125: `exit' undeclared (first use this function)
> configurator.c:125: (Each undeclared identifier is reported only once 
> for each
>    function it appears in.)
> configurator.c: In function `void delete_file(char*)':
> configurator.c:175: `unlink' undeclared (first use this function)
> configurator.c: In function `void compile(char*, char*)':
> configurator.c:193: `system' undeclared (first use this function)
> make: *** [configurator.exe] Error 1