cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Problem with -static -lcurl

From: James Dennett <jdennett_at_technocom-wireless.com>
Date: Fri, 26 Jan 2007 15:01:22 -0800

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-
> bounces_at_cool.haxx.se] On Behalf Of Kamil Porembinski
> Sent: Friday, January 26, 2007 2:24 PM
> To: curl-library_at_cool.haxx.se
> Subject: Problem with -static -lcurl
>
> Hi,
> When I try build my program:
> g++ -static -lcurl sysinfo.o uptime.o meminfo.o cpuinfo.o qbs.o
update.o -
> o
> sysinfo

Move -lcurl to the end of your command line and see if that helps. This
isn't a curl-specific thing. You can also use nm on your libcurl.a to
confirm that the appropriate symbols are present.

-- James
Received on 2007-01-27