portable zip library for C/C++ (not an application)
Solution 1
Take a look at Libarchive. I spent a lot of time seeking for a cross-platform and LGPL licensed library with convenient interface. This the best of all I've seen. Very easy and powerful tool. Originally designed for Unix-like systems but there's also the Windows version.
Solution 2
I've had great results with miniz: https://code.google.com/p/miniz/
For a simple compression of strings in c++, I also really like Timo Bingmann's solution.
Solution 3
I'd recommend ZipLib https://bitbucket.org/wbenny/ziplib/wiki/Home
Personal reasons why I love this project:
- built around c++11 stl streams (ex. decompresses into stl streams!)
- lightweight (no dependencies other than zlib)
- can be used on both windows & liunx
It took me a long time to find this project - hope this helps someone.
Solution 4
We've used zlib a couple times here. It's a fairly standard library that has implementations in most main languages.
Solution 5
How about this:
Admin
Updated on August 20, 2020Comments
-
Admin over 3 years
I want to be able to zip files from my non-gui C/C++ application, on several versions of Windows, Linux/Unix, and MacOS.
The user will compile and run using this app using Eclipse + makefile or VisualStudio. I don't want the user to have to install something separately, or have my makefile install executables.
Prefer open-source. I'm already looking at "Zip 3.0"...