• 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: Question about dynamic and static libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Question about dynamic and static libraries


  • Subject: RE: Question about dynamic and static libraries
  • From: "Brant Sears" <email@hidden>
  • Date: Wed, 28 Dec 2005 09:49:26 -0500
  • Thread-topic: Question about dynamic and static libraries

Title: RE: Question about dynamic and static libraries

>If you're successfully linking against the .a and not pulling in the
>.dylib, your application can't be pulling in the .dylib on a system on
>which it exists unless you're dynamically loading the .dylib at runtime
>via dlopen or a similar API.

That's what I *would* think. However, when I remove all of the libraries from /usr/local/lib and then add the .a to the project and build, I get an application that is supposedly not linking to the .dylib. When I use otool -L to examine my app, I no longer see the .dylib listed in the libraries and frameworks it loads. Yet, when I take the app binary to another machine if the .dylib is present in /usr/local/lib, it loads that version of the library.

This is the part that has me totally confused.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Question about dynamic and static libraries
      • From: Daniel Jalkut <email@hidden>
References: 
 >Question about dynamic and static libraries (From: "Brant Sears" <email@hidden>)
 >Re: Question about dynamic and static libraries (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: C++ error in template of template class
  • Next by Date: Re: Question about dynamic and static libraries
  • Previous by thread: Re: Question about dynamic and static libraries
  • Next by thread: Re: Question about dynamic and static libraries
  • Index(es):
    • Date
    • Thread