• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Loading dynamic libraries with dlopen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Loading dynamic libraries with dlopen
      • From: "Peter O'Gorman" <email@hidden>
  • Prev by Date: Re: Using cross-development SDKs in command line builds
  • Next by Date: PasswordService source code
  • Previous by thread: Re: Using cross-development SDKs in command line builds
  • Next by thread: Re: Loading dynamic libraries with dlopen
  • Index(es):
    • Date
    • Thread