我正在尝试将zlib-1.2.11编译为Windows中的静态库,但是 出现以下错误
C:\ temp \ zlib-1.2.11.tar \ zlib-1.2.11> mingw32-make install -f win32 \ Makefile.gcc
gcc -shared -Wl,-out-implib,libz.dll.a
-o zlib1.dll win32 / zlib.def adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o zlibrc.o gzlib.o:gzlib.c :(。text + 0xa4b):对_wopen' gzlib.o:gzlib.c:(.text+0xa4b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol
_ wopen'的未定义引用 gzlib.o:gzlib.c :(。text + 0xbf9):对_wopen' gzlib.o:gzlib.c:(.text+0xbf9): relocation truncated to fit: R_X86_64_PC32 against undefined symbol
_ wopen'collect2的未定义引用:错误:ld 返回1个退出状态mingw32-make:*** [zlib1.dll]错误1