[Zlib-devel] error when compiling zlib 1.2.3 with MSYS/MinGW

Vincent Torri vtorri at univ-evry.fr
Sat May 5 06:06:55 EDT 2007



On Fri, 4 May 2007, Dan Nicholson wrote:

> On 5/4/07, Vincent Torri <vtorri at univ-evry.fr> wrote:
>>
>> Is there a way to test the shared lib of zlib created by gcc (with the
>> command above) ?
>
> Looks like you should just be able to run "make test" and "make
> testdll". It's pretty simple. It just runs the two demos: example and
> minigzip.

thank you. The results with my modification are:

vincent at TORRI ~/provi/zlib-1.2.3
$ make -f win32/Makefile.gcc test
./example
zlib version 1.2.3 = 0x1230, compile flags = 0x55
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek:  hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!
echo hello world | ./minigzip | ./minigzip -d
hello world

vincent at TORRI ~/provi/zlib-1.2.3
$ make -f win32/Makefile.gcc testdll
./example_d
zlib version 1.2.3 = 0x1230, compile flags = 0x55
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek:  hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!
echo hello world | ./minigzip_d | ./minigzip_d -d
hello world

So I guess that it is correct

Vincent Torri

PS: there is a library named 'check' that can be used to create easily 
unit tests. Maybe it might interest you to use it for creating such tests.




More information about the Zlib-devel mailing list