• 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
Re: Simple question on locating dynamic libraries at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple question on locating dynamic libraries at runtime


  • Subject: Re: Simple question on locating dynamic libraries at runtime
  • From: Bill Cheeseman <email@hidden>
  • Date: Wed, 4 Aug 2010 16:33:27 -0400


On Aug 4, 2010, at 3:53 PM, Ken Thomases wrote:

The way it normally works: each library has an "install name" baked into it by the linker.  When you link something to that library, a reference to the library is baked into it -- but the reference does not use the path at which the library was found at link time, it uses the install name of the library.

Then, at load time, the dynamic loader uses the reference to find the library.  There are some ways to tell the dynamic loader about other places to look.  Those are documented in the dyld man page <http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/dyld.1.html>.

I found Mike Ash's blog post about all this very helpful: <http://www.mikeash.com/pyblog/friday-qa-2009-11-06-linking-and-install-names.html>.

--

Bill Cheeseman - email@hidden

 _______________________________________________
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

References: 
 >Simple question on locating dynamic libraries at runtime (From: Chris Goedde <email@hidden>)
 >Re: Simple question on locating dynamic libraries at runtime (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Simple question on locating dynamic libraries at runtime
  • Next by Date: Re: Absolute Paths
  • Previous by thread: Re: Simple question on locating dynamic libraries at runtime
  • Next by thread: Re: Simple question on locating dynamic libraries at runtime
  • Index(es):
    • Date
    • Thread