Jookia
Jookia

Reputation: 6880

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.

Upvotes: 0

Views: 3446

Answers (4)

user1095108
user1095108

Reputation: 14603

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

Upvotes: 0

Simon at LabSlice-com
Simon at LabSlice-com

Reputation: 3027

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.

Upvotes: 2

AndersK
AndersK

Reputation: 36082

E.g. Infozip

Upvotes: 1

Anthony
Anthony

Reputation: 12387

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

Upvotes: 2

Related Questions