Tutorial :Creating a zip archive in C++


Is there a simple way to create a zip archive in C++? I'm writing a GPL app and I looked in to minizip but it seems too complicated. Is there a simple library to do this? I already have the files on the disk, I just want to make a zip from them.


Use zlib as a compression library in your C++ app (zlib.net). I've used it before and I believe it's the best option. If you look around you may also find some C++ wrappers that simplify the code.


Try the 7-zip library, it's LGPL.


E.g. Infozip


It is C, but possibly still a good option: http://libarchive.github.com/

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »