cURL / Mailing Lists / curl-library / Single Mail

curl-library

Using libcurl with zlib

From: east2006 east2006 <east2006_at_gmail.com>
Date: Thu, 10 May 2012 13:58:17 +0300

Hi.

When building my project in MSVC 2010 with static libcurl (7.24.0) I get
the following errors:

1>libcurl.lib(content_encoding.obj) : error LNK2019: unresolved external
symbol _inflateEnd_at_4 referenced in function _exit_zlib
1>libcurl.lib(content_encoding.obj) : error LNK2019: unresolved external
symbol _inflateInit2__at_16 referenced in function _inflate_stream
1>libcurl.lib(content_encoding.obj) : error LNK2019: unresolved external
symbol _inflate_at_8 referenced in function _inflate_stream
1>libcurl.lib(content_encoding.obj) : error LNK2019: unresolved external
symbol _inflateInit__at_12 referenced in function _Curl_unencode_deflate_write
1>libcurl.lib(content_encoding.obj) : error LNK2019: unresolved external
symbol _zlibVersion_at_0 referenced in function _Curl_unencode_gzip_write
1>.\Standalone-D\MelodoContent.exe : fatal error LNK1120: 5 unresolved
externals

I'm staticly compiling libcurl with zlib (1.2.3) by including zlib.lib and
adding preprocessors:

HAVE_ZLIB_H
HAVE_ZLIB
HAVE_LIBZ

I'm also using HTTP_ONLY

Does anybody know why I'm getting this errors?

Thank You!

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-10