[TIP] Re: pre-processing options
[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