Re: Using gcc 4.0 to target 10.3.9 which SDK do I use?
Re: Using gcc 4.0 to target 10.3.9 which SDK do I use?
- Subject: Re: Using gcc 4.0 to target 10.3.9 which SDK do I use?
- From: Shawn Erickson <email@hidden>
- Date: Wed, 06 Sep 2006 19:16:24 -0700
On Sep 6, 2006, at 3:56 PM, Mike Lazear wrote:
I'm currently compiling a universal binary that uses gcc 4.0 with
the MacOSX10.4u.sdk for the Intel side. I've been using gcc 3.3
with the MacOSX10.3.9.sdk to target 10.3.9 which is what I thought
I had to do for the ppc side. But after reading thru some of the
other posts I'm seeing that a target of 10.3.9 can use gcc 4.0.
But every time I see that comment it doesn't talk about what sdk to
use.
Read the following...
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/
cross_development/index.html>
...and review...
<http://developer.apple.com/documentation/MacOSX/Conceptual/
universal_binary/universal_binary_compiling/chapter_2_section_3.html
So the question:
When using gcc 4.0 and wanting to run on 10.3.9 (ppc)
which SDK do I use MacOSX10.4u.sdk or MacOSX10.3.9.sdk?
It depends on what you want to use in your code... the SDK defines
what API is available to your application when it is built which may
or may not be able to it at runtime.
For example... if you select the 10.4u SDK and you set your
deployment target to 10.3 then 10.4 specific API with be weak linked
into your application. This allows you to run on 10.3 while utilizing
10.4 API when running on 10.4 (assuming you check at runtime if the
API you want to use available before attempting to use it).
The cross development documentation covers all of this. Make sure to
read it fully.
should my deployment target be 10.3 or 10.4?
If you want to target 10.3 (10.3.9) or later then set it to 10.3.
-Shawn
_______________________________________________
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