• 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: Link to zlib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link to zlib


  • Subject: Re: Link to zlib
  • From: email@hidden
  • Date: Wed, 11 Jun 2008 16:55:09 +0200


On 11 Jun 2008, at 16:48, Jens Alfke wrote:

You can avoid that by adding the library file that doesn't have a version number in it, i.e. "libz.dylib" not "libz.1.2.3.dylib". This is a symlink that always points to the current version, and it's the same file the linker would use if you added "-lz".

(Xcode used to have a bug where if you did this it would "helpfully" resolve the symlink and actually add the specific version file; but that's been fixed for years.)

Yes, that was the problem I had many years ago, so maybe my recommendation is well past its Sell-by date.


On the other hand, the advantage of the linker flags is it simplifies using the same libraries in a bunch of projects (when used in combination with xcconfig files).

Matt
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Link to zlib (From: Trygve Inda <email@hidden>)
 >Re: Link to zlib (From: email@hidden)
 >Re: Link to zlib (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Link to zlib
  • Next by Date: Re: Garbage collector vs variable lifetime
  • Previous by thread: Re: Link to zlib
  • Next by thread: Re: Link to zlib
  • Index(es):
    • Date
    • Thread