Re: Creating and loading a shared library bundle?
Re: Creating and loading a shared library bundle?
- Subject: Re: Creating and loading a shared library bundle?
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 15 Jan 2004 17:04:34 -0800
On Jan 15, 2004, at 9:22 AM, Colsher, William wrote:
I am currently trying to create a CFM shared library to be used from a
Cocoa
front end created in XCode.
Using CodeWarrior 8.3 I appear to be successfully creating the shared
library (N.B. There is no opportunity to switch out of CW8 for this
development cycle.)
Back in the nifty new Cocoa front end, I am able to create a URL to the
bundle and successfully call CFBundleCreate(). Then when I call
CFBundleLoadExecutable() the application crashes silently with no
indication
from the debugger or in the console log that anything bad had happened.
1. You can not load shared libraries using CFBundle. The linker will
load the code's linked shared libraries at startup time. CFBundle and
NSBundle are used to load plug-in-style bundles.
2. You can not link CFM shared libraries to Mach-O executables, nor can
you write CFM Cocoa programs.
So try converting that CFM shared library into a Mach-O framework, and
then include that framework in the Xcode project. I don't know if CW8
can create Mach-O frameworks or not, but if it can't, then you'll have
to switch the library project over to Xcode...
Nick Zitzmann
<http://seiryu.home.comcast.net/>
<http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request
UNIX: Where /sbin/init is Job #1.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.