views:

86

answers:

2

Hi.
I've been googling for long time already, and I still dont know how to use zlib. Could someone just give exact instructions what I have to do to use it? (MS Visual C++ 2010 on Win7 32). Please not the DLL version. Thanks in advance!

EDIT: In case someone finds this with google, check the comments!

+2  A: 

The website has a usage example.

Ignacio Vazquez-Abrams
Well, thats how to use the Code, but I'm having probs with getting the lib somehow. I've tried compiling it but it throws linker errors.
aPoC
... Huh? http://gnuwin32.sourceforge.net/packages/zlib.htm
Ignacio Vazquez-Abrams
Create static zlib libraries and add it in project
Alien01
A by-the-way-question: does anyone know good examples of gzipping stuff (char* - arrays) with zlib ?
aPoC
zlib doesn't do gzip, it does deflate.
Ignacio Vazquez-Abrams
zlib does, really. I've solved my problem some other way, anyway :) Thank you guys. Is it possible to accept an answer? I'd like the #2 one :3
aPoC
A: 

I don't know it this will help but my coworker found this the other day when we were looking for a zip library. Looks pretty easy to use (there's an exemple at the end).

http://www.boost.org/doc/libs/1_43_0/libs/iostreams/doc/classes/zlib.html

You still need to have the external library though.

n1ck