View Single Post
  #1  
Old 08-11-2012, 11:32 PM
dew1960
Sarnak
 
Join Date: Feb 2008
Posts: 80
Default Overcoming fatal error unable to open "Zlib.lib"

Success!

Just a Heads up for anyone encountering annyoing fatal errors about not being able to open zlib.lib file when compiling:

I Used VS 2008 Express, MySQL Server ver 5.1.61-win32,and ActivePerl-5.12.4.1205-MSWin32-x86-294981.

I installed to the c:\ root directory and also unzipped the zlib compressed file download.


Note: The "zlib.lib" file was missing from the posted source. I obtained a copy from a previous server I had set up (I saved my old installation files to the server folder after I compiled it).

I opened up the file with and editor and posted the code here for anyone that is missing that file and getting the fatal error's related to being unable to access 'zlib.lib".

Go to your zlilb\lib\ folder and start a new txt file but save it as "zlib.lib" and choose "all files for the file type" (in Windows). Then if that was your only compile error, you should be able to compile with no more errors. Ignore the warnings, it is only errors you have to be concerned with.


I hope this helps. I know how frustrating it can be when you keep trying to compile and get errors every time. :(

With Any luck your result will be like mine:


6>Build log was saved at "file://c:\Source\trunk\EQEmuServer\ucs\Debug\BuildLog.htm "
6>ucs - 0 error(s), 85 warning(s)
========== Build: 6 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Code:

LIBRARY
; zlib data compression library

EXPORTS
; basic functions
    zlibVersion
    deflate
    deflateEnd
    inflate
    inflateEnd
; advanced functions
    deflateSetDictionary
    deflateCopy
    deflateReset
    deflateParams
    deflateBound
    deflatePrime
    inflateSetDictionary
    inflateSync
    inflateCopy
    inflateReset
    inflateBack
    inflateBackEnd
    zlibCompileFlags
; utility functions
    compress
    compress2
    compressBound
    uncompress
    gzopen
    gzdopen
    gzsetparams
    gzread
    gzwrite
    gzprintf
    gzputs
    gzgets
    gzputc
    gzgetc
    gzungetc
    gzflush
    gzseek
    gzrewind
    gztell
    gzeof
    gzclose
    gzerror
    gzclearerr
; checksum functions
    adler32
    crc32
; various hacks, don't look :)
    deflateInit_
    deflateInit2_
    inflateInit_
    inflateInit2_
    inflateBackInit_
    inflateSyncPoint
    get_crc_table
    zError

Have a Happy Day!
Reply With Quote