• 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: Seeing preprocessor defines with -dM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seeing preprocessor defines with -dM


  • Subject: Re: Seeing preprocessor defines with -dM
  • From: Scott Tooker <email@hidden>
  • Date: Wed, 18 Feb 2004 16:50:52 -0800

On Feb 16, 2004, at 5:17 PM, Chris Espinosa wrote:

> On Feb 16, 2004, at 3:30 PM, Andrew Duncan 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)

Scott

> Chris
> _______________________________________________
> 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.

[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.

  • Follow-Ups:
    • Re: Seeing preprocessor defines with -dM
      • From: Chris Espinosa <email@hidden>
References: 
 >Seeing preprocessor defines with -dM (From: Andrew Duncan <email@hidden>)
 >Re: Seeing preprocessor defines with -dM (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Setting a build dir relative to the top level of a project
  • Next by Date: Re: Rez files and dependencies?
  • Previous by thread: Re: Seeing preprocessor defines with -dM
  • Next by thread: Re: Seeing preprocessor defines with -dM
  • Index(es):
    • Date
    • Thread