• 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: Customers Machines missing /usr/lib/libltdl.3.dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customers Machines missing /usr/lib/libltdl.3.dylib


  • Subject: Re: Customers Machines missing /usr/lib/libltdl.3.dylib
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 18 Feb 2009 18:49:51 -0700


On Feb 18, 2009, at 5:16 PM, Matteo Centro wrote:

Can I fix something in XCode or the only option is to recompile libp11?


You've run into ld's static linking problem, which apparently happens quite often to people here. Here's the problem: The linker _always_ prefers dynamic libraries over static ones, so if you've included a static library in your project, and it has the same name (before the extension) as a dynamic one, then the linker will always use the dynamic one, which is probably not what you wanted.

There's no way to change this behavior, but there is a workaround - in the "other linker flags" build setting, include a direct path to the static library, and remove the static library from your target's library link list.

Nick Zitzmann
<http://seiryu.home.comcast.net/>



_______________________________________________
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: 
 >Customers Machines missing /usr/lib/libltdl.3.dylib (From: Matteo Centro <email@hidden>)

  • Prev by Date: How to run unit tests with Guard Malloc?
  • Next by Date: Unit Testing, code 127 error
  • Previous by thread: Customers Machines missing /usr/lib/libltdl.3.dylib
  • Next by thread: Re: Customers Machines missing /usr/lib/libltdl.3.dylib
  • Index(es):
    • Date
    • Thread