• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: makefile errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >makefile errors (From: Livio Isaia <email@hidden>)

  • Prev by Date: Re: makefile errors
  • Next by Date: Re: architecture dependant problems with ResMerger
  • Previous by thread: Re: makefile errors
  • Next by thread: GCC visibility quirks
  • Index(es):
    • Date
    • Thread