Zip Compression Library

This is a discussion on Zip Compression Library within the C++ Programming forums, part of the General Programming Boards category; I need a portable c++ zip compression library, it should be free and windows/ *nix compatible. Oh, and preferably as ...

  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
    Portugal
    Posts
    7,535
    I use google for my compression needs
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,761
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,535
    zlib doesn't support zip format, i reckon
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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,262
    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
    Portugal
    Posts
    7,535
    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".
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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,262
    But who can beat either pkzip or pkunzip?

  8. #8
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    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 02: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, 06:00 PM
  2. Audio Compression Library in C++
    By peyman_k in forum C++ Programming
    Replies: 1
    Last Post: 07-24-2008, 09:27 PM
  3. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 07:04 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  5. Problem using a compression library
    By abu in forum C++ Programming
    Replies: 8
    Last Post: 07-18-2004, 01:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21