I'm trying to compile opendx-4.2 on MacOSX 10.2 (Jaguar) with gcc-3.1 (Apple Computer, Inc. GCC version 1151, based on gcc version 3.1)

Many source files elicit the following error:

In file included from /usr/include/math.h:24,
                 from bspline.c:10:
/usr/include/architecture/ppc/math.h:283: parse error before "float"

The preprocessor indictates that the line in question is processed as
extern double ((float)((int)(double x)));

rather than

extern double trunc ( double x );

If <math.h> is included before <dx/dx.h> the source files compile.

Further investigation reveals that

<dx/dx.h> contains the following definition

#ifdef macos
#define trunc(value) ((float)((int)(value)))
...

Obviously, this no longer holds.

Jeremy

Reply via email to