Thread: Zip Compression Library

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    35

    Zip Compression Library

    I need a portable c++ zip compression library, it should be free and windows/ *nix compatible. Oh, and preferably as small in size as possible but this is a minor requirement.

    If anyone has a suggestion I'd love to hear it.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    I use google for my compression needs
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    http://www.zlib.net/
    If you want to wrap some C++ classes around it to make it "easier" to use for the rest of your projects, then that's possible as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    zlib doesn't support zip format, i reckon
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    I'm wondering if the OP meant zip as just any kind of data compression kind of jazz, or specifically zipping

  6. #6
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    I'm assuming one supporting zip. Or he could have left "zip" out of it, since "compression" is well understood enough. zlib is my choice too for compression. However, I just found that there's a zip wrapper for zlib.

    http://www.winimage.com/zLibDll/minizip.html

    But I only found this after wasting endless hours on google with "c++ zip library".
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  7. #7
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    But who can beat either pkzip or pkunzip?

  8. #8
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    http://www.codeproject.com/cpp/unzip.asp

    This uses the API that Mario linked to, if you need to see how to use it (or to have a C++ wrapper for the API).

    Internally these do use zlib.
    Last edited by Cat; 09-01-2006 at 01:35 PM.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 05:00 PM
  2. Audio Compression Library in C++
    By peyman_k in forum C++ Programming
    Replies: 1
    Last Post: 07-24-2008, 08:27 PM
  3. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  5. Problem using a compression library
    By abu in forum C++ Programming
    Replies: 8
    Last Post: 07-18-2004, 12:54 PM