• 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: Target issue: Preprocessor Macros Not Used in Precompiled Headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers


  • Subject: Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 18 Dec 2007 08:58:36 -0800


On Dec 18, 2007, at 1:02 AM, Ulf Dunkel wrote:

In an application target of my project, I wanted to use preprocessor stuff like

#ifdef FOO
  <FOO specific source code>
#endif

I have opened the target's info window. In "Build" I have scrolled to "Preprocessor Macros Not Used in Precompiled Headers", clicked on "Edit", left the already existing entry "$inherited)" and added a new one where I only entered "FOO".

As various documentations tell, this should be enough to have FOO defined for my sources. But I may have forgotten some magic powder or stuff. What else do I have to do in order to be able and use "FOO" in my sources like described above?

I also tried "FOO=BAR" or "FOO=1" and in my source files also

#if FOO
  <bla>
#endif

We can only tell if you provide the full compiler invocation line, just dragging the "Compiling foo.m" line from the Build Results window into the Mail reply will copy it in full.


My bet is that you're mistaking the "D" in "-D" as part of the macro name, not as part of the compiler switch.

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:
    • Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
      • From: Ulf Dunkel <email@hidden>
References: 
 >Target issue: Preprocessor Macros Not Used in Precompiled Headers (From: Ulf Dunkel <email@hidden>)

  • Prev by Date: Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
  • Next by Date: linking issue when attempting to create a universal binary
  • Previous by thread: Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
  • Next by thread: Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
  • Index(es):
    • Date
    • Thread