cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Linker errors in pre-compiled static library for windows

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Thu, 22 Aug 2013 12:33:55 +0200

"Garrick Mason" <gtm.mason_at_gmail.com> wrote:

> lib\libcurl.a(url.o):(.text.unlikely+0x1a4): undefined reference to
> `stringprep_check_version'
> lib\libcurl.a(sendf.o):(.text+0x147): undefined reference to `recv_at_16'

Try adding 'libidn.a' and '-lws2_32' to the link command.
libidn.a should be in the .zip Gunter has provided.
You may have to add some more libs depending on what
features is built into that static libcurl.a.

To see what the linker is looking for or is pulling in, tell
g++ to make a .map file. Add something like this to the
link command:
  mingw32-g++.exe {...} -Wl,--print-map,--sort-common > my_app.map

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