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: std::log10() problem




On 31 mar 2006, at 00.45, Chris Espinosa wrote:

If you manually add the prototypes, then call them, the link will fail. That is, unless you add the prototypes and conditionally define them weak. In which case you've just ended up doing what the SDK does.

So, there are two ways to go about this:

1) Set both SDK and deployment target to the baseline OS.
[+] Can access functionality from all supported OS versions.
[-] You'll have to "manually" add support for functionality not present in the baseline OS.
[+] Safer, because you get compile time warnings / errors when you access functionality that's not available on all supported versions.


2) Set the deployment target to the baseline OS, and the SDK to the current OS.
[+] Can access functionality from all supported OS versions.
[+] More convenient as you don't have to create your own weak prototypes, et.c.
[-] Less safe, as you can't be sure that your code will work on earlier OS versions unless you "manually" check for compatibility with the baseline OS.


#2 is the approach recommended by Apple.

Correct?

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >std::log10() problem (From: Rolf Nilsson <email@hidden>)
 >Re: std::log10() problem (From: "Clark Cox" <email@hidden>)
 >Re: std::log10() problem (From: "Roni Music" <email@hidden>)
 >Re: std::log10() problem (From: "Clark Cox" <email@hidden>)
 >Re: std::log10() problem (From: j o a r <email@hidden>)
 >Re: std::log10() problem (From: Chris Espinosa <email@hidden>)
 >Re: std::log10() problem (From: "Clark Cox" <email@hidden>)
 >Re: std::log10() problem (From: Chris Espinosa <email@hidden>)
 >Re: std::log10() problem (From: "Clark Cox" <email@hidden>)
 >Re: std::log10() problem (From: Chris Espinosa <email@hidden>)
 >Re: std::log10() problem (From: Dirk Stegemann <email@hidden>)
 >Re: std::log10() problem (From: Chris Espinosa <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.