• 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: iPhone Platform Compiler Symbol?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone Platform Compiler Symbol?


  • Subject: Re: iPhone Platform Compiler Symbol?
  • From: Peter O'Gorman <email@hidden>
  • Date: Thu, 14 May 2009 20:38:58 -0500

Philip Aker wrote:

> # gcc -dM -E -x c /dev/null > gccdefs.txt
>
> and
>
> # cpp -dM < /dev/null > cppdefs.txt
>
> Show no difference in the output files.
> I think cpp is currently a call through to gcc so theoretically they
> should always produce the same set of defines given equivalent options.
>
> True or false?

At the risk of really annoying Chris...

/usr/bin/cpp is a shell script that does indeed end up calling
/usr/bin/gcc -E -x c, the differences are, cpp does not take -arch flags
(well, it happily takes the -arch flag, but thinks the argument is a
file), and does not do languages other than c, and, in this case, does
not call a completely different cross-compiler.

Anyway, Availability.h really is the right answer.

Peter
--
Peter O'Gorman
http://pogma.com
 _______________________________________________
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: 
 >iPhone Platform Compiler Symbol? (From: "K. Chen" <email@hidden>)
 >Re: iPhone Platform Compiler Symbol? (From: Chris Espinosa <email@hidden>)
 >Re: iPhone Platform Compiler Symbol? (From: Michael Crawford <email@hidden>)
 >Re: iPhone Platform Compiler Symbol? (From: Philip Aker <email@hidden>)
 >Re: iPhone Platform Compiler Symbol? (From: Peter O'Gorman <email@hidden>)
 >Re: iPhone Platform Compiler Symbol? (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: iPhone Platform Compiler Symbol?
  • Next by Date: creating a project with three connected sub projects.
  • Previous by thread: Re: iPhone Platform Compiler Symbol?
  • Next by thread: Number appended to filenames in English.lproj
  • Index(es):
    • Date
    • Thread