Re: Objective C errors when compiling for 64 bit?
Re: Objective C errors when compiling for 64 bit?
- Subject: Re: Objective C errors when compiling for 64 bit?
- From: David Dunham <email@hidden>
- Date: Thu, 16 Sep 2010 09:48:38 -0700
On 16 Sep 2010, at 08:07, Jon Hodgson wrote:
> Looking at the code I'm compiling it looks like the cause of the
> errors is that it includes Carbon for 32 bit apps, but Cocoa for 64
> bit ones.
>
> #ifndef __LP64__
> #include <Carbon/Carbon.h>
> #else
> #include <Cocoa/Cocoa.h>
> #include <CoreFoundation/CoreFoundation.h>
> #endif
>
> Is that necessary? Also is there a way of doing this that doesn't
> include Objective C headers? Or is cocoa objective C only?
Yes, Cocoa is Objective-C only.
This seems like a pretty big bug in your app, though perhaps it's not doing much GUI? I mean, using an entirely different API for a 64-bit version seem odd.
What is the "this" you're actually trying to do (and no, don't say "compile for 64 bit")?
David Dunham A Sharp, LLC http://a-sharp.com
_______________________________________________
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