home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 August / GSSH0804.iso / Geschicklichkeit / DeadlyRoomsOfDeath / zlib121-dll.exe / USAGE.txt < prev    next >
Text File  |  2003-09-23  |  3KB  |  89 lines

  1.  
  2. Installing ZLIB1.DLL
  3. ====================
  4.   Copy ZLIB1.DLL to the SYSTEM or the SYSTEM32 directory.
  5.  
  6.  
  7. Using ZLIB1.DLL with Microsoft Visual C++
  8. =========================================
  9.    1. Install the supplied header files "zlib.h" and "zconf.h"
  10.       into a directory found in the INCLUDE path list.
  11.  
  12.    2. Install the supplied library files "zdll.exp" and "zdll.lib"
  13.       into a directory found in the LIB path list.
  14.  
  15.    3. Add "zdll.exp" or "zdll.lib" to your project.
  16.  
  17.  
  18. Using ZLIB1.DLL with Borland C++
  19. ================================
  20.    1. Install the supplied header files "zlib.h" and "zconf.h"
  21.       into a directory found in the INCLUDE path list.
  22.  
  23.    2. Build the import library using the IMPLIB tool:
  24.         implib -a -c -f lib\zdllbor.lib zlib1.dll
  25.  
  26.       OR
  27.  
  28.    2' Convert the supplied library file "zdll.lib" to OMF format,
  29.       using the COFF2OMF tool:
  30.         coff2omf lib\zdll.lib lib\zdllbor.lib
  31.  
  32.    3. Install "zdllbor.lib" into a directory found in the LIB path
  33.       list.
  34.  
  35.    4. Add "zdllbor.lib" to your project.
  36.  
  37.   Note:
  38.   The modules that are linked with "zdllbor.lib" must be compiled
  39.   using a 4-byte alignment (option -a):
  40.         bcc32 -a -c myprog.c
  41.         bcc32 myprog.obj zdllbor.lib
  42.  
  43.  
  44. Using ZLIB1.DLL with gcc/MinGW
  45. ==============================
  46.    1. Install the supplied header files "zlib.h" and "zconf.h"
  47.       into the INCLUDE directory.
  48.  
  49.    2. Build the import library from the supplied "zlib.def":
  50.         dlltool -D zlib1.dll -d lib/zlib.def -l lib/libzdll.a
  51.  
  52.       OR
  53.  
  54.    2' Copy the supplied library file "zdll.lib" to "libzdll.a":
  55.         cp lib/zdll.lib lib/libzdll.a
  56.  
  57.    3. Install "libzdll.a" into the LIB directory.
  58.  
  59.    4. Add "libzdll.a" to your project, or use the -lzdll option.
  60.  
  61.  
  62. Using ZLIB1.DLL with gcc/Cygwin
  63. ===============================
  64.   ZLIB1.DLL is not designed to work with Cygwin.  The Cygwin
  65.   system has its own DLL build of zlib, named CYGZ.DLL.
  66.  
  67.  
  68. Rebuilding ZLIB1.DLL
  69. ====================
  70.   Depending on your build environment, use the appropriate
  71.   makefile from the win32/ directory, found in the zlib source
  72.   distribution.
  73.  
  74.   Your custom build has to comply with the requirements stated
  75.   in DLL_FAQ.txt, including (but not limited to) the following:
  76.     - It must be built from an unaltered zlib source distribution.
  77.     - The macros that compile out certain portions of the zlib
  78.       code (such as NO_GZCOMPRESS, NO_GZIP) must not be enabled.
  79.     - The ZLIB_WINAPI macro must not be enabled.
  80.     - It must be linked to MSVCRT.DLL.
  81.  
  82.   Furthermore, it has to run successfully with the test suite
  83.   found in this package.
  84.  
  85.   It is recommended, however, to use the supplied ZLIB1.DLL,
  86.   instead of rebuilding it yourself.  You should rebuild it
  87.   only if you have a special reason.
  88.  
  89.