Re: Other C Flags. Some confusion..
Re: Other C Flags. Some confusion..
- Subject: Re: Other C Flags. Some confusion..
- From: Chris Espinosa <email@hidden>
- Date: Tue, 15 Sep 2009 09:01:53 -0700
On Sep 15, 2009, at 7:59 AM, Stephen Northcott <email@hidden> wrote:
I am using Other C Flags to try and define a value for conditional
builds. (Xcode 3.1)
I just assumed this worked. Obviously I am missing something!
It works throughout the project more or less, but there are a few
specific files that seem to ignore the setting, and I then have to
work around that by providing the appropriate #define there manually.
It occurs to me I don't know why, or even where to look / what to
type into Google to find a solution to this problem.
Can anyone throw some ideas at me that I could look at to find the
root of the problem.
It's not a show stopper but it's irritating, and I assume some
stupid oversight on my part.
Generally you should use the Preprocessor Macros build setting, not
the Other C Flags build setting, to define values for preprocessor
macros at build time. Use the syntax MACRO=value OTHER_MACRO=value
As always, make sure you're setting the macro in the appropriate
configuration(s) of the desired target. Settings you make in the
Project inspector can be overridden at the Target level, and this is
often the cause if problems like yours.
If that diesn't work for you, reply, select the "Compiling" line from
the Build Results window, and drag it into the reply. This will show
what's going on.
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