Re: std::log10() problem
Re: std::log10() problem
- Subject: Re: std::log10() problem
- From: j o a r <email@hidden>
- Date: Fri, 31 Mar 2006 08:04:47 +0200
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:
This email sent to email@hidden