Tutorial :Creating a zip archive in C++



Question:

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.


Solution:1

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.


Solution:2

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


Solution:3

E.g. Infozip


Solution:4

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
Previous
Next Post »