• 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: preprocessor define for Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preprocessor define for Xcode


  • Subject: Re: preprocessor define for Xcode
  • From: Andreas Grosam <email@hidden>
  • Date: Tue, 25 Oct 2005 11:20:01 +0200


On 25.10.2005, at 02:25, walterw wrote:

Is there an existing preprocessor define that I can use to conditionally compile my C++ source based on the version of Xcode?

Xcode is the IDE, not the compiler. The C++ sources shall be independent on the IDE.



Your sources may be conditioned regarding the compiler vendor and version and the version of the system headers/libraries. However, checking the compiler version may often too coarse grained or even inappropriate - for instance, when you just want to know whether the compiler creates code for little endian or big endian, or whether wchars are available in the system library.


How you can determine all imaginable features of the system, compiler and libraries is beyond this thread - but you may solve many of these easily, when checking the macros defined in
ConditionalMacros.h, TargetConditionals.h and AvailabilityMacros.h.



If you have a more detailed question, please ask again.


Regards Andreas



I'd like to prepare to move from 1.5 to 2.1 from the same sources and make the final transition when the source compiles & runs with both.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ 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: 
 >preprocessor define for Xcode (From: walterw <email@hidden>)

  • Prev by Date: Re: Gcc 3.3 build problem between Xcode 1.2 and 2.1, and OSX 10.3 and 10.4
  • Next by Date: Re: can xcodebuild use distributed compile?
  • Previous by thread: preprocessor define for Xcode
  • Next by thread: Build settings that are per-target and per-buildstyle?
  • Index(es):
    • Date
    • Thread