• 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: using zlib on OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using zlib on OS X


  • Subject: Re: using zlib on OS X
  • From: Will Mason <email@hidden>
  • Date: Sat, 24 Sep 2005 17:22:13 -0700 (PDT)

#include  is correct, but the linker option is "-lz". Also, if you're using Xcode, just add /usr/lib/libz.dylib to your project and it will do the rest. More information about using it can be found at http://www.zlib.net. There is nothing special about using zlib on OS X as opposed to the other platforms on which it runs.

 Will

----- Original Message ----
From: Michael Rothwell <email@hidden>
To: Ian was here <email@hidden>
Cc: Apple Mailing List <email@hidden>
Sent: Sat Sep 24 19:12:07 2005
Subject: Re: using zlib on OS X


Just #include <zlib.h> and add "-l zlib" to the linker flags and you  
should be good to go.

If you want to find files that Spotlight won't normally show you, use  
locate from the terminal.

$ locate zlib
/Developer/ADC Reference Library/documentation/DeveloperTools/Tcl/Trf/
crc-zlib.html
/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/bzlib.h
/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/zlib.h
/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/bzlib.h
/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/zlib.h
/Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/include/X11/extensions/
lbxzlib.h
/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/bzlib.h
/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/zlib.h
/Developer/SDKs/MacOSX10.4.0.sdk/usr/X11R6/include/X11/extensions/
lbxzlib.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/bzlib.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/zlib.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/X11/extensions/
lbxzlib.h
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/encodings/zlib_codec.py
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/encodings/zlib_codec.pyc
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/encodings/zlib_codec.pyo
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/lib-dynload/zlib.so
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/test/test_zlib.py
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/test/test_zlib.pyc
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/test/test_zlib.pyo
/System/Library/Tcl/Img1.3/libzlibtcl1.0.dylib
/System/Library/Tcl/Img1.3/libzlibtclstub1.0.a
/usr/include/bzlib.h
/usr/include/zlib.h
/usr/lib/ruby/1.8/powerpc-darwin8.0/zlib.bundle
/usr/lib/zlibtclConfig.sh
/usr/share/man/man3/zlib.3
/usr/share/man/mann/crc-zlib.n
/usr/share/ri/1.8/system/Zlib/zlib_version-i.yaml
/usr/X11R6/include/X11/extensions/lbxzlib.h


On Sep 24, 2005, at 7:20 PM, Ian was here wrote:

> Has anyone successfully used zlib for compression and
> decompression? I understand that it's built into OS X,
> yet a spotlight search doesn't seem to reveal it. Is
> there a OS X specific example anywhere?
>
> Thanks.
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: using zlib on OS X
      • From: Ian was here <email@hidden>
References: 
 >Re: using zlib on OS X (From: Michael Rothwell <email@hidden>)

  • Prev by Date: Re: using zlib on OS X
  • Next by Date: NSPersistentDocument - where is setManagedObjectModel
  • Previous by thread: Re: using zlib on OS X
  • Next by thread: Re: using zlib on OS X
  • Index(es):
    • Date
    • Thread