• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Objective C errors when compiling for 64 bit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Objective C errors when compiling for 64 bit? (From: Jon Hodgson <email@hidden>)
 >Re: Objective C errors when compiling for 64 bit? (From: Jon Hodgson <email@hidden>)
 >Re: Objective C errors when compiling for 64 bit? (From: Jon Hodgson <email@hidden>)

  • Prev by Date: Re: Can't change SDK
  • Next by Date: Tracepoint Action List
  • Previous by thread: Re: Objective C errors when compiling for 64 bit?
  • Next by thread: Tracepoint Action List
  • Index(es):
    • Date
    • Thread