Loading dynamic libraries with dlopen
Loading dynamic libraries with dlopen
- Subject: Loading dynamic libraries with dlopen
- From: Tron Thomas <email@hidden>
- Date: Sat, 07 May 2005 10:19:31 -0700
I am involved in a cross platform project that uses API's like dlopen to
dynamically loaded needed libraries. On Mac OS X, these libraries are
implemented with the dynamic library style as opposed to bundle library
style. I have found that when I load a dynamic library using dlopen I
cannot close the library using dlclose, and a call to dlerror explicitly
says "dynamic libraries cannot be closed".
I know I should be able to close the libraries if they used the bundle
style instead. I have found, however, that if I convert the style of
the libraries from dynamic to bundle, the application will hang while
loading. Right I'm not familiar enough with everything that happens
when the application starts up to figure out why it doesn't work. Also,
getting the program working on the Macintosh is lower priority than
other projects. So, I'm would like to leave the libraries as dynamic if
I can, and I'm not sure if this is the best thing to do.
What are the implications of loading dynamic style libraries with
dlopen? How does the fact that these libraries can't be closed affect
the system?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden