• 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: How to link with zlib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to link with zlib?


  • Subject: Re: How to link with zlib?
  • From: Gord Peters <email@hidden>
  • Date: Mon, 7 Mar 2005 16:53:03 -0500

On Mar 7, 2005, at 3:54 PM, Gord Peters wrote:

First issue is that I don't know how to add libz.dylib to my XCode projects (since you can't just browse to /usr/lib in the Finder).

ok, I figured this one out from the archives: Shift-Command-G

The second issue is that I'm not sure where I should link against libz: in the library, or in the application? If I add -lz to the "Other Linker Flags" setting in the library project, then I get an error like this:

Still a bit confused on this one. One thing to note here is that my wrapper library is build as a static library. I tried using the -dylib_file option of libtool, but that only works when you're building a dynamic library. Perhaps I need to find a static version of zlib? Is it possible to have a static library be linked to a dynamic one?


	Gord

_______________________________________________
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: 
 >How to link with zlib? (From: Gord Peters <email@hidden>)

  • Prev by Date: How to link with zlib?
  • Next by Date: Re: How to link with zlib?
  • Previous by thread: How to link with zlib?
  • Next by thread: Re: How to link with zlib?
  • Index(es):
    • Date
    • Thread