• 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: Philip Aker <email@hidden>
  • Date: Thu, 14 May 2009 17:54:34 -0700

On 2009-05-14, at 16:16:43, Peter O'Gorman wrote:

touch foo.h; cpp -dM foo.h


# cpp -dM < /dev/null


saves some typing.

Although Chris has answered with the right way to check if building for iPhoneOS, you can get a list of the predefined macros with:

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch arm -dM -E -x c /dev/null

# 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?


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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


  • Follow-Ups:
    • Re: iPhone Platform Compiler Symbol?
      • From: Peter O'Gorman <email@hidden>
    • Re: iPhone Platform Compiler Symbol?
      • From: Gwynne Raskind <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>)

  • Prev by Date: Switching from Simulator to Device
  • Next by Date: Re: date-time info at compile time
  • Previous by thread: Re: iPhone Platform Compiler Symbol?
  • Next by thread: Re: iPhone Platform Compiler Symbol?
  • Index(es):
    • Date
    • Thread