curl-library
Re: Build problems for WIN64.
Date: Sat, 11 May 2013 16:07:18 +0200
I turned out to be a linker problem with GCC 4.8.
There were similar strange link errors when building other shared libraries.
When changing to gcc 4.6.3 it worked fine so this issue is resolved.
On Fri, May 10, 2013 at 3:35 PM, Vuurvlieg <vuurvlieg_at_gmail.com> wrote:
> 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-11