windows static zlib

Neal Alexander wqeqweuqy at hotmail.com
Fri Dec 28 21:48:12 PST 2007


mandel wrote:
> HI,
> 
> I like to link zlib into my application binary for windows (+mingw).
> 
> Where do I have to start, or can I just download some lib somewhere?
> 
> I tried to download libz1.dll, converted it with implib (from ftp.digitalmars.com/bup.zip) to libz1.lib.
> But when I run the exe the zlib1.dll have to be in the same folder
> or I get an error message instead.
> 
> Someone suggested building zlib statically with dmc.
> But that looks like an long time adventure to figure out in detail. :]
> 

nah it builds easily.

heres a lib i built months ago if youre lazy (no clue if it even works 
or its the right one heh): http://destroy.selfip.org/z_mars.lib

heres the script i used to build it (i probably copied dependencies around).

dmc -c adler32.c
dmc -c compress.c
dmc -c crc32.c
dmc -c deflate.c
dmc -c gzio.c
dmc -c infback.c
dmc -c inffast.c
dmc -c infflate.c
dmc -c inflate.c
dmc -c inftrees.c
dmc -c trees.c
dmc -c uncompr.c
dmc -c zutil.c
lib -c z_mars.lib *.obj



More information about the Digitalmars-d-announce mailing list