views:

594

answers:

5

Please recommend a C++ compression (zip) library for a commercial, closed-source application. So, not a GPL license.

This is for my day job...

+9  A: 

7 Zip is LGPL, meaning so long as you treat it like a 3rd-party library, your usage of it is fine in a closed-source app.

http://www.7-zip.org/

Doug T.
From wikipedia: The LZMA SDK 4.62 was placed in the public domain in December 2008. http://en.wikipedia.org/wiki/7z
grieve
+14  A: 

I know you said C++, but zlib is a very permissively licensed C library that you could use directly from a C++ app.

If I recall correctly, there are various "iostream-like" wrappers around zlib available, too.

leander
A: 

If you need fast decompression, the best you can find is probably LZO. Be aware you need a separate (paid) commercial license when using in a closed source project. Still, if you need the fast decompression it may be well worth the money.

Suma
A: 

libbzip2 is BSD-licensed and should compress better, although slower, than zlib.

Michael Myers
A: 

Try this:

http://zziplib.sourceforge.net/

BastiBense