• 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
[TIP] Re: pre-processing options
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TIP] Re: pre-processing options


  • Subject: [TIP] Re: pre-processing options
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 18 Jan 2006 17:03:04 -0800

On Jan 18, 2006, at 4:51 PM, Mark Thomas wrote:

Hi All,

  Does anybody happen to know how to get the pre-processing options if there

any to also output #define’s as well, as I’m getting a problem when moving

from gcc33 to gcc4, and a #define somewhere is causing a problem. And

presently default behavior for preprocessing is to resolve #define’s.


  As I'm getting a #define name clashing with a enum name, and this didn't

seem to cause any problems in gcc33.


1) Disclose your Target in the Groups and FIles list, and disclose Compile Sources, and find the source file you want.
2) Select it and choose Get Info.  Click the Build tab.
3) Add "-dD" to the Other C Flags field and close the inspector.
4) Choose "Preprocess" from the Build menu.

The preprocessed source will show all #defines, their values, and where they come from.

Chris
 _______________________________________________
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:
    • TraceEventByName
      • From: "James Larcombe" <email@hidden>
References: 
 >pre-processing options (From: Mark Thomas <email@hidden>)

  • Prev by Date: Folder image tool
  • Next by Date: Re: XCode on Intel/Mac
  • Previous by thread: pre-processing options
  • Next by thread: TraceEventByName
  • Index(es):
    • Date
    • Thread