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

Target issue: Preprocessor Macros Not Used in Precompiled Headers


  • Subject: Target issue: Preprocessor Macros Not Used in Precompiled Headers
  • From: Ulf Dunkel <email@hidden>
  • Date: Tue, 18 Dec 2007 10:02:20 +0100
  • Organization: invers Software

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

Any hint is appreciated. Thanks in advance, Ulf
_______________________________________________
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: Chris Espinosa <email@hidden>
    • Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
      • From: Ulf Dunkel <email@hidden>
  • Prev by Date: Re: DEVELOPER_SDK_DIR - where documented?
  • Next by Date: Re: Custom View refuses to pop up for editing in IB 3.0
  • Previous by thread: Re: Custom View refuses to pop up for editing in IB 3.0
  • Next by thread: Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
  • Index(es):
    • Date
    • Thread