aboutsummaryrefslogtreecommitdiff
path: root/FAQ
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:20:42 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:20:42 -0700
commita383133c4e7b93113cee912f213cf9502d785fa7 (patch)
treebb7c39ab38418fcab817accad1e625b3de0c8237 /FAQ
parent14763ac7c6c03bca62c39e35c03cf5bfc7728802 (diff)
downloadzlib-a383133c4e7b93113cee912f213cf9502d785fa7.tar.gz
zlib-a383133c4e7b93113cee912f213cf9502d785fa7.tar.bz2
zlib-a383133c4e7b93113cee912f213cf9502d785fa7.zip
zlib 1.1.4v1.1.4
Diffstat (limited to 'FAQ')
-rw-r--r--FAQ108
1 files changed, 68 insertions, 40 deletions
diff --git a/FAQ b/FAQ
index 0feb6d3..47a7d60 100644
--- a/FAQ
+++ b/FAQ
@@ -3,70 +3,98 @@
3 3
4 4
5If your question is not there, please check the zlib home page 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. 6http://www.zlib.org which may have more recent information.
7The lastest zlib FAQ is at http://www.gzip.org/zlib/zlib_faq.html
7 8
8 9
91) I need a Windows DLL 10 1. Is zlib Y2K-compliant?
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 11
12 Yes. zlib doesn't handle dates.
18 13
14 2. Where can I get a Windows DLL version?
19 15
201) I need a Windows DLL 16 The zlib sources can be compiled without change to produce a DLL. If you
17 want a precompiled DLL, see http://www.winimage.com/zLibDll/ . Questions
18 about the zlib DLL should be sent to Gilles Vollant (info@winimage.com).
21 19
22 The zlib sources can be compiled without change to produce a DLL. 20 3. Where can I get a Visual Basic interface to zlib?
23 If you want a precompiled DLL, see http://www.winimage.com/zLibDll
24 21
22 See
23 * http://www.winimage.com/zLibDll/cmp-z-it.zip
24 * http://www.dogma.net/markn/articles/zlibtool/zlibtool.htm
25 * contrib/visual-basic.txt in the zlib distribution
25 26
262) I need a Visual Basic interface to zlib 27 4. compress() returns Z_BUF_ERROR
27 28
28 See http://www.tcfb.com/dowseware/cmp-z-it.zip 29 Make sure that before the call of compress, the length of the compressed
29 http://web2.airmail.net/markn/articles/zlibtool/zlibtool.htm 30 buffer is equal to the total size of the compressed buffer and not
30 and contrib/visual-basic.txt 31 zero. For Visual Basic, check that this parameter is passed by reference
32 ("as any"), not by value ("as long").
31 33
323) compress() returns Z_BUF_ERROR 34 5. deflate() or inflate() returns Z_BUF_ERROR
33 35
34 Make sure that before the call of compress, the length of the 36 Before making the call, make sure that avail_in and avail_out are not
35 compressed buffer is equal to the total size of the compressed buffer 37 zero. When setting the parameter flush equal to Z_FINISH, also make sure
36 and not zero. For Visual Basic, check that this parameter is passed 38 that avail_out is big enough to allow processing all pending input.
37 by reference ("as any"), not by value ("as long").
38 39
40 6. Where's the zlib documentation (man pages, etc.)?
39 41
404) deflate or inflate returns Z_BUF_ERROR 42 It's in zlib.h for the moment, and Francis S. Lin has converted it to a
43 web page zlib.html. Volunteers to transform this to Unix-style man pages,
44 please contact Jean-loup Gailly (jloup@gzip.org). Examples of zlib usage
45 are in the files example.c and minigzip.c.
41 46
42 Make sure that before the call avail_in and avail_out are not zero. 47 7. Why don't you use GNU autoconf or libtool or ...?
43 48
49 Because we would like to keep zlib as a very small and simple
50 package. zlib is rather portable and doesn't need much configuration.
44 51
455) Where is the zlib documentation (man pages, etc...)? 52 8. I found a bug in zlib.
46 53
47 It's in zlib.h for the moment. Volunteers to transform this 54 Most of the time, such problems are due to an incorrect usage of
48 to man pages, please contact jloup@gzip.org. Examples of zlib usage 55 zlib. Please try to reproduce the problem with a small program and send
49 are in the files example.c and minigzip.c. 56 the corresponding source to us at zlib@gzip.org . Do not send
57 multi-megabyte data files without prior agreement.
50 58
59 9. Why do I get "undefined reference to gzputc"?
51 60
526) Why don't you use GNU autoconf, libtool, etc...? 61 If "make test" produces something like
53 62
54 Because we would like to keep zlib as a very small and simple package. 63 example.o(.text+0x154): undefined reference to `gzputc'
55 zlib is rather portable and doesn't need much configuration. 64
65 check that you don't have old files libz.* in /usr/lib, /usr/local/lib or
66 /usr/X11R6/lib. Remove any old versions, then do "make install".
56 67
6810. I need a Delphi interface to zlib.
57 69
587) There is a bug in zlib. 70 See the directories contrib/delphi and contrib/delphi2 in the zlib
71 distribution.
59 72
60 Most of the time, such problems are due to an incorrect usage 7311. Can zlib handle .zip archives?
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 74
75 See the directory contrib/minizip in the zlib distribution.
65 76
668) I get "undefined reference to gzputc" 7712. Can zlib handle .Z files?
67 78
68 If "make test" produces something like 79 No, sorry. You have to spawn an uncompress or gunzip subprocess, or adapt
69 example.o(.text+0x174): 80 the code of uncompress on your own.
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 81
8213. How can I make a Unix shared library?
83
84 make clean
85 ./configure -s
86 make
87
8814. Why does "make test" fail on Mac OS X?
89
90 Mac OS X already includes zlib as a shared library, and so -lz links the
91 shared library instead of the one that the "make" compiled. For zlib
92 1.1.3, the two are incompatible due to different compile-time
93 options. Simply change the -lz in the Makefile to libz.a, and it will use
94 the compiled library instead of the shared one and the "make test" will
95 succeed.
96
9715. I have a question about OttoPDF
98
99 We are not the authors of OttoPDF. The real author is on the OttoPDF web
100 site Joel Hainley jhainley@myndkryme.com.