zlib help

Started by
4 comments, last by JohnHurt 18 years, 11 months ago
Been trying to find a tutorial on zlib on the net but don't seem to be having any luck. All i want to know how to do is compress/decomress iostream or a char array. Anyone got any simple examples of this or know of any sites i might have missed?
Advertisement
Thanks for reminding me about zlib - something I've been meaning to use for a while, but like you, couldn't find any examples. Anyway, not had chance to read through this yet, but it may be of help.

clicky

You could also try THIS, which is a c++ wrapper for zlib.

[Edited by - JohnHurt on April 25, 2005 5:20:58 PM]
Have you checked out the manual?

Also here's a usage example that might be of some use.
Ohhh! [grin]
Now im getting the following error when trying the usage example.

[Linker error] undefined reference to `deflate'

Dosn't make any sence. I looked in the zlib.h header file and the function deflate exists. Anyone got any ideas?
you need to link your project to the zlib.lib file. go to your projects linker options and add the file there

Quote:Original post by Drew_Benton
Ohhh! [grin]

hehe, thats the tutorial i was looking at. didn't notice the code at the bottom, that page was so long i physically slumped in my chair as a scrolled down it!

This topic is closed to new replies.

Advertisement