• 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: Chris Espinosa <email@hidden>
  • Date: Wed, 18 Feb 2004 16:58:02 -0800

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
_______________________________________________
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: Scott Tooker <email@hidden>
References: 
 >Seeing preprocessor defines with -dM (From: Andrew Duncan <email@hidden>)
 >Re: Seeing preprocessor defines with -dM (From: Chris Espinosa <email@hidden>)
 >Re: Seeing preprocessor defines with -dM (From: Scott Tooker <email@hidden>)

  • Prev by Date: Re: Rez files and dependencies?
  • Next by Date: Re: Seeing preprocessor defines with -dM
  • Previous by thread: Re: Seeing preprocessor defines with -dM
  • Next by thread: Re: Seeing preprocessor defines with -dM
  • Index(es):
    • Date
    • Thread