Re: makefile errors
Re: makefile errors
- Subject: Re: makefile errors
- From: Stefan Werner <email@hidden>
- Date: Fri, 13 Apr 2007 11:23:58 -0700
On 13.04.2007, at 11:05, Livio Isaia wrote:
I'm not sure this is the right list to write to, anyway...
In general, it's bad practice to post to multiple list at once. I'll
respond only on the Xcode list, I'm not subscribed to the X11 list.
I'm trying to build Open Inventor libraries with make (from shell
or X11) using command "make -C /Developer/inventor -f GNUmakefile".
The operation fails when trying to compile file ppp.c++.
The error is
/usr/include/architecture/ppc/math.h:361: error: declaration of C
function 'float acos(float)' conflicts with
/usr/include/architecture/ppc/math.h:360: error: previous
declaration 'double acos(double)' here
while in mat.h the second declaration is not "float acos(float)"
but "float acosf(float)". Why the letter "f" is not considered?
The same error is returned for many other declarations (sqrt, atan,
etc.).
Have any idea?
It sounds to me like you included something before math.h that
includes macros like these:
#define acosf acos
#define sqrtf sqrt
#define atanf atan
etc
You may be able to get around this by moving #include <math.h> to the
beginning of your #includes, but it'd be better in the long run to
eliminate those macros.
Stefan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden