• Advertisement
Sign in to follow this  

zlib help

This topic is 4689 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement