Re: dlopen and RTLD_LOCAL
Re: dlopen and RTLD_LOCAL
- Subject: Re: dlopen and RTLD_LOCAL
- From: j o a r <email@hidden>
- Date: Wed, 15 Mar 2006 21:12:46 +0100
On 15 mar 2006, at 20.10, Lyndsey D. Ferguson wrote:
Do you think I could accomplish the same thing if I call:
dlopen = CFBundleCreate
CFBundleLoadExecutable
dlsym = CFBundleGetFunctionPointerForName
dlclose = CFBundleUnloadExecutable
Using the same file path to my dynamic libraries? Or does each
dynamic library need to live within a *.bundle directory?
I'm going to outline the implementation we used before we migrated to
using the functions from dlfcn.h. I don't want to promote this
solution, as it's using deprecated API, and seems very unsupported
(read fragile). I hope that someone else will help you with a better
solution. You've been warned! :-)
We used "bundle style dynamic libraries" (with the MACH_O_TYPE set to
mh_bundle) and the NS* functions documented at the link below. You
don't need a bundle directory.
<http://developer.apple.com/documentation/DeveloperTools/Reference/
MachOReference/index.html>
Like I said, this type of library seems to be just barely supported
by Xcode. It's so uncommon and esoteric that Xcode engineers usually
claim that it doesn't work at all. It actually does, but it's tricky
to set up right, and it usually breaks with every major update to
Xcode, forcing you to figure out a new way to make it work... You can
probably get it working (on the API level it's very similar to
dlfcn), but I would prefer to not have to be your guide down that
path...
Here's one of my later post on that topic, you might need it:
<http://www.cocoabuilder.com/archive/message/xcode/2006/1/15/2883>
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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