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: Alastair Houghton <email@hidden>
- Date: Tue, 18 Dec 2007 13:38:28 +0000
On 18 Dec 2007, at 12:35, Ulf Dunkel wrote:
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. :-)
This also describes exactly my problem:
<http://www.cocoabuilder.com/archive/message/cocoa/2004/7/14/111727>
In fact, even setting adding "DDSD_ICALAMUS_DISTRIBUTOR_PHOTOBOOX=1"
to "Other C flags", like suggested in <http://www.cocoabuilder.com/archive/message/cocoa/2004/7/14/111733
>, didn't work.
Have you looked in the build log to see if your -D option is really
getting to the compiler? Have you checked the build options on the
target/project/source file individually? You can override many
settings, so it could be that you're accidentally overriding your own
setting in some other place.
Adding e.g. " FOO=1" to one of the preprocessor macros options
*should* work; it certainly does for me, so I think whatever problem
you're seeing is probably specific to your project.
(You might also try verifying that you aren't seeing a bug, by making
a new project and trying the same things in that. If it works there,
it's definitely your project, rather than anything else.)
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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