Re: 10.2.8 SDK won't compile <Carbon/Carbon.h>
Re: 10.2.8 SDK won't compile <Carbon/Carbon.h>
- Subject: Re: 10.2.8 SDK won't compile <Carbon/Carbon.h>
- From: "William H. Schultz" <email@hidden>
- Date: Fri, 14 Oct 2005 12:13:29 -0700
Did you include the Carbon framework in your project?
Also, yes you can use the 10.4 SDK with the 3.3 compiler and
deployment target of 10.2. If you do that, though, you have to weak-
link all of Apple's frameworks. Otherwise, the application won't
actually launch on anything older than 10.4. Instead of adding the
framework to the link phase of the target, you will need to add "-
weak_framework Carbon" to the "Other Linker Flags" variable. You can
then use newer OS features in your code, but you will have to check
the user's OS version before calling any functions that may not be
available. Check these out:
http://developer.apple.com/technotes/tn2002/tn2064.html
http://cocoadevcentral.com/articles/000067.php
Hank Schultz
Cedrus Corporation
http://www.cedrus.com/
On Oct 14, 2005, at 10:50 AM, David Dunham wrote:
I'm still in the process of transitioning a Carbon app from
CodeWarrior to Xcode. I need to support 10.2.8, so I'm using the
SDK. However, it won't get as far as precompiling my prefix,
choking on <Carbon/Carbon.h> with a number of error messages such as:
In file included from /usr/include/machine/_types.h:26,
from /usr/include/sys/_types.h:27,
from /usr/include/_types.h:27,
from /usr/include/string.h:60,
from /Developer/SDKs/MacOSX10.2.8.sdk/System/
Library/Frameworks/CoreFoundation.framework/Headers/
CoreFoundation.h:46,
from /Developer/SDKs/MacOSX10.2.8.sdk/System/
Library/Frameworks/CoreServices.framework/Frameworks/
CarbonCore.framework/Headers/CarbonCore.h:20,
from /Developer/SDKs/MacOSX10.2.8.sdk/System/
Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
from /Developer/SDKs/MacOSX10.2.8.sdk/System/
Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
from /Volumes/david-3/GameHouse/Acropolis/
AcropolisPrefix.h:1:
/usr/include/ppc/_types.h:73: error: conflicting types for `typedef
union __mbstate_t __mbstate_t'
/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/ppc/ansi.h:95: error:
previous declaration as `typedef union __mbstate_t __mbstate_t'
I didn't see a fix for this when I searched. And switching to the
10.3.9 SDK didn't help either.
Is it safe enough to use 10.4u with gcc 3.3 and a deployment target
of 10.2?
And what's the point of SDKs if they can't actually be used?
--
David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
Efficiency is intelligent laziness.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40cedrus.com
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:
This email sent to email@hidden