Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C/C++ Packing and Compression [closed]

I'm working on a commercial project that requires a couple of files to be bundled (packed) into an archive and then compressed. Right now we have zlib in our utility library, but it doesn't look like zlib has the functionality to compress multiple files into one archive. Does anyone know of free libraries I'd be able to use for this?

like image 906
Justin Avatar asked Aug 03 '09 20:08

Justin


3 Answers

7Zip has a full SDK for several languages including C and C++. The compression is extremely good, albeit not very fast. The code is licensed under the LGPL.

like image 139
jdisk Avatar answered Sep 22 '22 15:09

jdisk


Perhaps libtar? Also under a BSD license.

like image 21
Amber Avatar answered Sep 22 '22 15:09

Amber


You could use libzip - it's under a BSD-like licence so it should be usable in a commercial project.

like image 25
bdonlan Avatar answered Sep 21 '22 15:09

bdonlan