cURL / Mailing Lists / curl-library / Single Mail


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

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

"Garrick Mason" <> 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 >

List admin:
Received on 2013-08-22