Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
3.5 KiB

  1. Frequently Asked Questions about zlib
  2. If your question is not there, please check the zlib home page
  3. http://www.zlib.org which may have more recent information.
  4. The lastest zlib FAQ is at http://www.gzip.org/zlib/zlib_faq.html
  5. 1. Is zlib Y2K-compliant?
  6. Yes. zlib doesn't handle dates.
  7. 2. Where can I get a Windows DLL version?
  8. The zlib sources can be compiled without change to produce a DLL. If you
  9. want a precompiled DLL, see http://www.winimage.com/zLibDll/ . Questions
  10. about the zlib DLL should be sent to Gilles Vollant ([email protected]).
  11. 3. Where can I get a Visual Basic interface to zlib?
  12. See
  13. * http://www.winimage.com/zLibDll/cmp-z-it.zip
  14. * http://www.dogma.net/markn/articles/zlibtool/zlibtool.htm
  15. * contrib/visual-basic.txt in the zlib distribution
  16. 4. compress() returns Z_BUF_ERROR
  17. Make sure that before the call of compress, the length of the compressed
  18. buffer is equal to the total size of the compressed buffer and not
  19. zero. For Visual Basic, check that this parameter is passed by reference
  20. ("as any"), not by value ("as long").
  21. 5. deflate() or inflate() returns Z_BUF_ERROR
  22. Before making the call, make sure that avail_in and avail_out are not
  23. zero. When setting the parameter flush equal to Z_FINISH, also make sure
  24. that avail_out is big enough to allow processing all pending input.
  25. 6. Where's the zlib documentation (man pages, etc.)?
  26. It's in zlib.h for the moment, and Francis S. Lin has converted it to a
  27. web page zlib.html. Volunteers to transform this to Unix-style man pages,
  28. please contact Jean-loup Gailly ([email protected]). Examples of zlib usage
  29. are in the files example.c and minigzip.c.
  30. 7. Why don't you use GNU autoconf or libtool or ...?
  31. Because we would like to keep zlib as a very small and simple
  32. package. zlib is rather portable and doesn't need much configuration.
  33. 8. I found a bug in zlib.
  34. Most of the time, such problems are due to an incorrect usage of
  35. zlib. Please try to reproduce the problem with a small program and send
  36. the corresponding source to us at [email protected] . Do not send
  37. multi-megabyte data files without prior agreement.
  38. 9. Why do I get "undefined reference to gzputc"?
  39. If "make test" produces something like
  40. example.o(.text+0x154): undefined reference to `gzputc'
  41. check that you don't have old files libz.* in /usr/lib, /usr/local/lib or
  42. /usr/X11R6/lib. Remove any old versions, then do "make install".
  43. 10. I need a Delphi interface to zlib.
  44. See the directories contrib/delphi and contrib/delphi2 in the zlib
  45. distribution.
  46. 11. Can zlib handle .zip archives?
  47. See the directory contrib/minizip in the zlib distribution.
  48. 12. Can zlib handle .Z files?
  49. No, sorry. You have to spawn an uncompress or gunzip subprocess, or adapt
  50. the code of uncompress on your own.
  51. 13. How can I make a Unix shared library?
  52. make clean
  53. ./configure -s
  54. make
  55. 14. Why does "make test" fail on Mac OS X?
  56. Mac OS X already includes zlib as a shared library, and so -lz links the
  57. shared library instead of the one that the "make" compiled. For zlib
  58. 1.1.3, the two are incompatible due to different compile-time
  59. options. Simply change the -lz in the Makefile to libz.a, and it will use
  60. the compiled library instead of the shared one and the "make test" will
  61. succeed.
  62. 15. I have a question about OttoPDF
  63. We are not the authors of OttoPDF. The real author is on the OttoPDF web
  64. site Joel Hainley [email protected].