cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [Bulk] Re: Trying to cross compile libcurl with MinGW 32-bit from Ubuntu, for Win32 Executables

From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Mon, 17 Feb 2014 19:17:11 +0100

<libcurl_at_double.net23.net> wrote:

> ../lib/curl-strtoofft.o ../lib/curl-strdup.o ../lib/curl-rawstr.o
> ../lib/curl-nonblock.o -L/path/to/mingw32/lib ../lib/.libs/libcurl.a
> -lgdi32 -lssl -lcrypto -lwldap32 -lz -lws2_32
> /path/to/mingw32/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0x1070):
> undefined reference to `_imp__CreateDCW_at_16'

The '-lgdi32' must come after '-lcrypto' since ld is a one-pass linker.
Not sure why it isn't. Then again, I don't trust autotools.

BTW. define youself an alias
  alias ma= nm --defined-only --demangle --print-file-name \
  /path/to/mingw32/lib/*.a | grep

Thus issuing 'ma CreateDCW_at_16' you can easily see where that symbols is
present.

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-17