curl-library
Re: Building libcurl 7.57 on Windows
Date: Fri, 2 Feb 2018 16:04:26 -0500
On 2/2/2018 3:03 PM, Alex Chen wrote:
>
> version.obj : error LNK2019: unresolved external symbol _zlibVersion
> referenced in function _curl_version
>
> content_encoding.obj : error LNK2001: unresolved external symbol
> _zlibVersion
>
> content_encoding.obj : error LNK2019: unresolved external symbol
> _inflate referenced in function _inflate_stream
>
> content_encoding.obj : error LNK2019: unresolved external symbol
> _inflateEnd referenced in function _exit_zlib
>
> content_encoding.obj : error LNK2019: unresolved external symbol
> _inflateInit_ referenced in function _inflate_stream
>
> content_encoding.obj : error LNK2019: unresolved external symbol
> _inflateInit2_ referenced in function _inflate_stream
>
> ..\builds\libcurl-vc14-x86-debug-dll-ssl-dll-zlib-dll-ipv6-sspi-obj-lib\libcurl_debug.dll
> : fatal error LNK1120: 5 unresolved externals
>
> I have been using the same zlibwapi library to build libcurl in
> 7.38.0, 7.44.0 and 7.51.0.
>
>
>
> Maybe the compiler/linker flags have been changed or previous version
> that uses specific make file, e.g. curl-7.51.0\lib\Makefile.vc14, has
> different settings?
>
IIRC zlibwapi is stdcall and requires ZLIB_WINAPI to be defined,
otherwise the header is going to include cdecl prototypes.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-02-02