cURL / Mailing Lists / curl-library / Single Mail

curl-library

Build problems for WIN64.

From: Vuurvlieg <vuurvlieg_at_gmail.com>
Date: Fri, 10 May 2013 15:35:54 +0200

Trying to build curl for WIN64 but run into some problems:
I got warnings about redefinitions of fstat/stat.
I could fix those by adding the follow lines to curl_setup.h:371 and
curl_setup.h:388
# undef fstat
# undef stat

The second problem is that I am unable to build the shared version of curl.
If I build with --disable-shared it compiles and work as expected but when
I want to build the shared library I get strange link errors:
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x7f): undefined reference to
`__imp_curl_strequal'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x147): undefined reference to
`__imp_curl_msnprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x177): undefined reference to
`__imp_curl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x2e7): undefined reference to
`__imp_curl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x340): undefined reference to
`__imp_curl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x3b0): undefined reference to
`__imp_curl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x40d): undefined reference to
`__imp_curl_mfprintf'

I checked the generated libcurl.a it links against and the strequal.o and
mprintf.o objects are both in there.
I am using the latest git master to build.
Any ideas what could cause this?

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