FAQ revision 42468
1
2		Frequently Asked Questions about zlib
3
4
5If your question is not there, please check the zlib home page 
6http://www.cdrom.com/pub/infozip/zlib/ which may have more recent information.
7
8
91) I need a Windows DLL
102) I need a Visual Basic interface to zlib
113) compress() returns Z_BUF_ERROR
124) deflate or inflate returns Z_BUF_ERROR
135) Where is the zlib documentation (man pages, etc...)?
146) Why don't you use GNU autoconf, libtool, etc...?
157) There is a bug in zlib.
168) I get "undefined reference to gzputc"
17
18
19
201) I need a Windows DLL
21
22  The zlib sources can be compiled without change to produce a DLL.
23  If you want a precompiled DLL, see http://www.winimage.com/zLibDll
24
25
262) I need a Visual Basic interface to zlib
27
28  See http://www.tcfb.com/dowseware/cmp-z-it.zip
29      http://web2.airmail.net/markn/articles/zlibtool/zlibtool.htm
30  and contrib/visual-basic.txt
31
323) compress() returns Z_BUF_ERROR
33
34  Make sure that before the call of compress, the length of the
35  compressed buffer is equal to the total size of the compressed buffer
36  and not zero.  For Visual Basic, check that this parameter is passed
37  by reference ("as any"), not by value ("as long").
38
39
404) deflate or inflate returns Z_BUF_ERROR
41
42  Make sure that before the call avail_in and avail_out are not zero.
43
44
455) Where is the zlib documentation (man pages, etc...)?
46
47  It's in zlib.h for the moment. Volunteers to transform this
48  to man pages, please contact jloup@gzip.org. Examples of zlib usage
49  are in the files example.c and minigzip.c.
50
51
526) Why don't you use GNU autoconf, libtool, etc...?
53
54  Because we would like to keep zlib as a very small and simple package.
55  zlib is rather portable and doesn't need much configuration.
56
57
587) There is a bug in zlib.
59
60  Most of the time, such problems are due to an incorrect usage
61  of zlib. Please try to reproduce the problem with a small
62  program and send us the corresponding source at zlib@quest.jpl.nasa.gov
63  Do not send multi-megabyte data files without prior agreement.
64
65
668) I get "undefined reference to gzputc"
67
68  If "make test" produces something like
69     example.o(.text+0x174): 
70  check that you don't have old files libz.* in /usr/lib, /usr/local/lib
71  or /usr/X11R6/lib. Remove old versions then do "make install".
72
73