Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
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