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 Mar 30, 2006, at 2:27 PM, Dirk Stegemann wrote:


Am 30.03.2006 um 19:24 schrieb Chris Espinosa:

On Mar 30, 2006, at 6:33 AM, Clark Cox wrote:

So, let me check my understanding. If, for instance, I build something
using the 10.4 SDK, but I set the deployment version to 10.2, then my
app will be able to access the newer symbols in 10.4, but those
symbols will be NULL when my app is running on 10.2 or 10.3.


But, if on the other hand, I build using the 10.2 SDK, then I simply
won't have access to symbols introduced in 10.3 and 10.4.

Am I understanding this correctly?

Absolutely right.

Is "won't have access to symbols" true because the compiler doesn't know about these newer symbols due to missing headers at compile time (could be fixed by manually adding the prototypes in question), or due to some architectual reasons...?

The compiler will not see the header files that define the entry point, because it's only looking at the headers in the SDK. The linker will not link against the entry points, even if you define them yourselves.


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.

Chris

_______________________________________________
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>)



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.