Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:


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

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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.