cURL / Mailing Lists / curl-library / Single Mail


Re: undefined symbols, cross compile

From: Daniel Stenberg <>
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.

List admin:
Received on 2011-02-14