• 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: Thu, 20 Dec 2007 08:47:33 +0100
  • Organization: invers Software

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.

I found that my problem using Preprocessor Macros has two parts, one of which is already solved. Entering my desired identifier in the application target's "Preprocessor Macros Not Used in Precompiled Headers" works fine for a source file which belongs to the application source itself.


But there are some frameworks and plugins of our own which are used in the app. Another file in which I want to use a preprocessor macro FOO belongs to a framework source.

I also added the macro to this Framework target now. When it is compiled, I can drag the "Compiling foo.m" line from the Build view into a TextEdit document and see that the option -DFOO is used for compilation. Looks fine - but whatever I do, it has no effect on this framework .m source file when I run the app.

Are there any restrictions for Preprocessor Macros, e.g. can they be used only in Application targets?
_______________________________________________
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>
References: 
 >Target issue: Preprocessor Macros Not Used in Precompiled Headers (From: Ulf Dunkel <email@hidden>)
 >Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Running app with localized resources
  • Next by Date: Re: Running app with localized resources
  • 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