Code: Select all
gcc -o gzlib.o -c ../sources/thirdpartylibs/zlib/gzlib.c -O3 -I../sources/ -I ../../../libhxcadaptor/trunk/sources -Wall -DNO_VIZ
In file included from C:/msys64/usr/include/sys/fcntl.h:3,
from C:/msys64/usr/include/fcntl.h:12,
from ../sources/thirdpartylibs/zlib/gzguts.h:32,
from ../sources/thirdpartylibs/zlib/gzlib.c:6:
C:/msys64/usr/include/sys/_default_fcntl.h:186:8: error: redefinition of 'struct flock'
186 | struct flock {
| ^~~~~
In file included from C:/msys64/usr/include/sys/types.h:224,
from C:/msys64/usr/include/stdio.h:61,
from ../sources/thirdpartylibs/zlib/gzguts.h:21,
from ../sources/thirdpartylibs/zlib/gzlib.c:6:
C:/msys64/usr/include/machine/types.h:46:8: note: originally defined here
46 | struct flock {
| ^~~~~
../sources/thirdpartylibs/zlib/gzlib.c: In function 'gz_open':
../sources/thirdpartylibs/zlib/gzlib.c:244:20: warning: implicit declaration of function '_wopen'; did you mean 'fwopen'? [-Wimplicit-function-declaration]
244 | fd == -2 ? _wopen(path, oflag, 0666) :
| ^~~~~~
| fwopen
make: *** [Makefile:748: gzlib.o] Error 1
My goal is just to get a 64-bit dll (ideally with a def file so I can create a MSVC import lib, but I think I can extract a .def file using dumpbin). The supplied libs which I found are 32-bit only, so I am imagining that I need to build this myself. I may be missing some critical package, but AFAICT my toolchain is complete.
Thank you!