• 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: Trying to link with non-Mach-O file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to link with non-Mach-O file


  • Subject: Re: Trying to link with non-Mach-O file
  • From: Dave Thorup <email@hidden>
  • Date: Thu, 27 Apr 2006 16:47:10 -0400

On Apr 27, 2006, at 3:40 PM, Chris Espinosa wrote:

This is most likely a CFM shared library.  You cannot link with it using Xcode, but you can write code that dynamically loads it and calls its entry points, using Apple's sample code CFM_MachO_CFM.

If it is a CFM shared library and you want to access it from a Mach-o application then the following article that I wrote recently might be of some help to you:

http://cutterpillow.com/content/view/24/1/

It describes how to go from Mach-o -> CFM -> Mach-o (likely what you need to do) which is the opposite of how the CFM_MachO_CFM sample works.  That is, I explain how to access a CFM library from a Mach-o application while the CFM_MachO_CFM sample describes how to access a Mach-o library from a CFM application.  Most of the steps are the same, but there are a few differences.

This library will not work on an Intel-based Mac.

It would work under Rosetta, but you could never use a CFM library with a native Intel application.
_____________________________

Dave Thorup
Software Engineer
email@hidden

http://www.kuwan.net
HyperSpell - Check spelling in Mac OS X from any application.


 _______________________________________________
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: 
 >Re: .pbxuser in version control (was Re: Executables stored in .pbxuser? (From: David Catmull <email@hidden>)
 >Trying to link with non-Mach-O file (From: "Chuck Connell" <email@hidden>)
 >Re: Trying to link with non-Mach-O file (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Building SQLite universal
  • Next by Date: Displaying fixed point in XCode debugger
  • Previous by thread: Re: Trying to link with non-Mach-O file
  • Next by thread: Building SQLite universal
  • Index(es):
    • Date
    • Thread