Looking for a c++ compression library/libraries that can decompress rar, 7z, bz2, zip etc

4.8k Views Asked by At

Not sure if a unified library like this exist or if the algorithms are even open-sourced. I Need to be able to decompress as many types as possible without having to install any other applications.

2

There are 2 best solutions below

0
On BEST ANSWER

7zip has all its required functions to handle archives in a separate library and it can be found at http://sourceforge.net/projects/sevenzip/

It will handle

7z, XZ, BZIP2, GZIP, TAR, ZIP, WIM, ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR, Z

.

0
On

Zlib will do this all for you: http://gnuwin32.sourceforge.net/packages/zlib.htm.