cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: undefined symbols, cross compile

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 14 Feb 2011 10:29:25 +0100 (CET)

On Sun, 13 Feb 2011, Olav wrote:

> I am doing a cross-compile, and I'm getting some undefined symbols.

> main.c:(.text+0x194): undefined reference to `__strdup'
> main.c:(.text+0x808): undefined reference to `__ctype_b_loc'
> main.c:(.text+0xb9c): undefined reference to `__ctype_b_loc'

To me it looks like your compiler/linker doesn't use libc automatically, so
you probably need to add -lc to the link command line.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-14