• 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: Other C Flags. Some confusion..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Other C Flags. Some confusion.. (From: Stephen Northcott <email@hidden>)

  • Prev by Date: Re: Other C Flags. Some confusion..
  • Next by Date: Re: How to use gcc-4.3 (or 4.4) in Xcode?
  • Previous by thread: Re: Other C Flags. Some confusion..
  • Next by thread: Re: How to use gcc-4.3 (or 4.4) in Xcode?
  • Index(es):
    • Date
    • Thread