Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preprocessor define for Xcode




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:
http://lists.apple.com/mailman/options/xcode-users/ 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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >preprocessor define for Xcode (From: walterw <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.