Re: linking with a PEF stub library
Re: linking with a PEF stub library
- Subject: Re: linking with a PEF stub library
- From: George Warner <email@hidden>
- Date: Wed, 17 Nov 2004 09:12:30 -0800
On Tue, 16 Nov 2004 19:32:59 -0700, Nick Zitzmann <email@hidden>
wrote:
> On Nov 16, 2004, at 4:41 PM, Craig Knelsen wrote:
>> I'm trying to build a Carbon application in Xcode 1.2 that calls a C
>> function in a PEF shared library. I added the associated PEF stub
>> library to the project as an External Framework but when I build the
>> application in deployment mode, it fails because it cannot find that C
>> function implemented by the PEF shared library. The library is
>> provided by a third party that does not provide an equivalent dyld
>> library. How do I make this work?
>
> You can't directly link to it. The linker can not link Mach-O and PEF
> code together, and neither GCC nor the linker support generating PEF
> files. You may, however, be able to load the library in code using
> CoreFoundation's CFBundle API. Good luck.
What he said plus take a look at the CFM_MachO_CFM sample code at:
<http://developer.apple.com/samplecode/CFM_MachO_CFM/CFM_MachO_CFM.html>.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
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