Re: Seeing preprocessor defines with -dM
Re: Seeing preprocessor defines with -dM
- Subject: Re: Seeing preprocessor defines with -dM
- From: Scott Tooker <email@hidden>
- Date: Wed, 18 Feb 2004 17:10:18 -0800
Oops, misread the original question. Sorry about that. Chris is right,
'Other C Flags' is your best option at this point.
Scott
On Feb 18, 2004, at 4:58 PM, Chris Espinosa wrote:
> On Feb 18, 2004, at 4:50 PM, Scott Tooker wrote:
>
>>>> The gcc command line interface provides the -dM option for sending
>>>> to stdout all symbols defined to the preprocessor for a given
>>>> compilation unit. Can I get this functionality in Xcode?
>>>
>>> As with all gcc command line options, you can put this in "Other C
>>> Flags" and it will take effect, as long as it doesn't cause
>>> conflicts with settings that Xcode defines (for this one, I doubt
>>> that it does conflict)
>>
>> There's an even better place for preprocessor defines, The
>> "Preprocessor Defines" build setting. You can find the setting under
>> the "Common Settings" or gcc collection of settings.
>>
>> For this setting you just provide a space separated list of the
>> defines. For example,
>>
>> foo=1 _DEBUG
>>
>> (Note you don't need the -D)
>
> Beware case sensitivity... -d is different than -D. Scott is right
> about -D, but that's not relevant in this case.
>
> Chris
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.