Re: FileManager for ppc64, #include <CoreServices/CoreServices.h> gives error.
Re: FileManager for ppc64, #include <CoreServices/CoreServices.h> gives error.
- Subject: Re: FileManager for ppc64, #include <CoreServices/CoreServices.h> gives error.
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 11 Mar 2008 20:30:20 +0100
Le 11 mars 08 à 20:18, Ruslan Zasukhin a écrit :
On 3/11/08 8:27 PM, "Jean-Daniel Dupas" <email@hidden>
wrote:
Hi List,
OS X 10.5.2, XCODE 3.0
--------------------------------------
I have try compile first time for 64-bit platforms, and getting
error
#if __ppc64__
#error 64-bit not supported
#endif
Right in the
#include <CoreServices/CoreServices.h>
QUESTION IS:
Why here present such error ??
In the docs of FileManager we can read that e.g. FSRef, OSType and
others
Must be available for 10.5 and 64 bit apps.
And <CoreServices/CoreServices.h> is mentioned as header for them.
What is wrong then ?
How I can make 32 and 64bit app that uses FileManager with FSRef ?
Probably because 64 bits is not support in 10.4 and your using the
10.4u SDK ?
This is right, Jean.
My project point 10.4u SDK.
So if I want 64bit then my build will run only on 10.5 ?
All of this can be configured using build settings.
Generaly, you use the SDK corresponding to the "max target
version" (10.5) and you set the "Deployment Target " to your minimum
target version (10.4 => MACOSX_DEPLOYMENT_TARGET = 10.4)
You can also add per architecture "build settings". Select "Deployment
Target" in the build settings window and clic on the gear button in
the bottom-left corner. Set the deployment target to 10.5 for 64 bits
archs (x86_64 and ppc64).
With thoses settings, you can build an Universal binary that will
contains 32 bits code that will run on 10.4 and 10.5 and 64 bits code
that will run on 10.5.
If you prefere to build your 32 bits code using the 10.4 SDK (for any
reason), you can set "SDK Root" to 10.5 for 64 bits archs and 10.4u
for 32 bits target.
_______________________________________________
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