user1182183
user1182183

Reputation:

C/C++ Windows+Linux ZIP Library for only unpacking?

Continuation of: Standalone Cross Platform (Windows/Linux)) File Compression for C/C++?

After many attempts on ZLIB ZZLIB LIBZIP MINIZIP I always get many problems at the compilation stage. Many google searches turned out OS-specific libraries and I can't really find anything that fit my 'simple' needs.

I reduced my needs for the library (Or wrapper?) to this:

I've checked many stackoveflow threads too with the words "Windows Linux ZIP C C++" but all the results seem so have libraries which I OR don't know how to compile OR is too difficult to use OR it has too many 'needed stuff' for just simple zip extract and check if file exists.

I had put that project away for a later date and begun it now, and all those compilation errors came up (especially that VC++2010 doesn't have the C-99 inttypes.h)

Upvotes: 5

Views: 3511

Answers (1)

Marek Szanyi
Marek Szanyi

Reputation: 2328

I have had very good experience with Zipstream C++ library which gives you a nice OOP way of handling zip files.

If your project already uses some of the bigger libs like Boost , then you could try to use the boost::iostreams with the gzip filter, however the functionality is somehow limited.

Or if you happen to use Poco take a look at they're implementation Poco::Zip

Upvotes: 1

Related Questions