Blame | Last modification | View Log | RSS feed
Frequently Asked Questions about zlibIf your question is not there, please check the zlib home pagehttp://www.cdrom.com/pub/infozip/zlib/ which may have more recent information.1) I need a Windows DLL2) I need a Visual Basic interface to zlib3) compress() returns Z_BUF_ERROR4) deflate or inflate returns Z_BUF_ERROR5) Where is the zlib documentation (man pages, etc...)?6) Why don't you use GNU autoconf, libtool, etc...?7) There is a bug in zlib.8) I get "undefined reference to gzputc"1) I need a Windows DLLThe zlib sources can be compiled without change to produce a DLL.If you want a precompiled DLL, see http://www.winimage.com/zLibDll2) I need a Visual Basic interface to zlibSee http://www.tcfb.com/dowseware/cmp-z-it.ziphttp://web2.airmail.net/markn/articles/zlibtool/zlibtool.htmand contrib/visual-basic.txt3) compress() returns Z_BUF_ERRORMake sure that before the call of compress, the length of thecompressed buffer is equal to the total size of the compressed bufferand not zero. For Visual Basic, check that this parameter is passedby reference ("as any"), not by value ("as long").4) deflate or inflate returns Z_BUF_ERRORMake sure that before the call avail_in and avail_out are not zero.5) Where is the zlib documentation (man pages, etc...)?It's in zlib.h for the moment. Volunteers to transform thisto man pages, please contact jloup@gzip.org. Examples of zlib usageare in the files example.c and minigzip.c.6) Why don't you use GNU autoconf, libtool, etc...?Because we would like to keep zlib as a very small and simple package.zlib is rather portable and doesn't need much configuration.7) There is a bug in zlib.Most of the time, such problems are due to an incorrect usageof zlib. Please try to reproduce the problem with a smallprogram and send us the corresponding source at zlib@quest.jpl.nasa.govDo not send multi-megabyte data files without prior agreement.8) I get "undefined reference to gzputc"If "make test" produces something likeexample.o(.text+0x174):check that you don't have old files libz.* in /usr/lib, /usr/local/libor /usr/X11R6/lib. Remove old versions then do "make install".