• 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: Stephen Northcott <email@hidden>
  • Date: Tue, 15 Sep 2009 22:31:20 +0700

Hi Jens,

Thanks. I'll check out the Preprocessor Macros. It's just that everything I have read about XCode project setup had suggested the Other C Flags. Also I have found that when you set the Other C Flags it gets duplicated into the C++ ones, and visa versa.
So I thought I had that covered.


But your explanation suggests another question. Could it have anything to do with using .mm files?
I predominantly code in C++, but keep most of the project code in .mm files.
Although, having said that, the most notable file it is specifically ignored in is an .h file!


Kind regards,
Stephen.

On Sep 15, 2009, at 10:20 PM, Jens Alfke wrote:


On Sep 15, 2009, at 7:59 AM, Stephen Northcott wrote:

I am using Other C Flags to try and define a value for conditional builds. (Xcode 3.1)
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.

Maybe they're C++ files? You have to put the flags in "Other C++ Flags" to expose them to the C++ compiler.


BTW, if all you're doing is adding some project-wide #defines, it's easier to use the "Preprocessor Macros" setting.

—Jens

_______________________________________________ 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: Other C Flags. Some confusion..
      • From: Jens Alfke <email@hidden>
References: 
 >Other C Flags. Some confusion.. (From: Stephen Northcott <email@hidden>)
 >Re: Other C Flags. Some confusion.. (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Other C Flags. Some confusion..
  • Next by Date: Re: Other C Flags. Some confusion..
  • Previous by thread: Re: Other C Flags. Some confusion..
  • Next by thread: Re: Other C Flags. Some confusion..
  • Index(es):
    • Date
    • Thread