• 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: Ulf Dunkel <email@hidden>
  • Date: Tue, 18 Dec 2007 12:29:01 +0100
  • Organization: invers Software

Addition:

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?

The GCC doc in <http://developer.apple.com/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/build_setting_ref/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW19> tells me:


---snip---

GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS
(Preprocessor Macros Not Used In Precompiled Headers)

Description:
Space-separated list of option specifications. Specifies preprocessor macros in the form foo (for a simple #define) or foo=1 (for a value definition). This list is passed to the compiler through the gcc -D option only when compiling implementation files; they are not passed when compiling precompiled headers.


Prerequisite:
Definitions used only in implementation files, not precompiled headers.

Default value:
None.

Example value:
test_mode=1 copious_logging=1

---snap---

But I have no idea how I should set the -D option for gcc or even check if it is set or not. when I set it e.g. in "Other C flags", I get an error "macro name must be an identifier". My real macro name isn't foo, but DSD_ICALAMUS_DISTRIBUTOR_PHOTOBOOX.

Please help me to get on the horse's back. :-)
_______________________________________________
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: Xcode Build numbers and versioning
  • Next by Date: Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
  • Previous by thread: 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