cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with -static -lcurl

From: Brian Dessent <brian_at_dessent.net>
Date: Fri, 26 Jan 2007 14:55:56 -0800

Kamil Porembinski wrote:

> When I try build my program:
> g++ -static -lcurl sysinfo.o uptime.o meminfo.o cpuinfo.o qbs.o update.o -o
> sysinfo

The order that you specify objects to the linker matters. Move -lcurl
to the end after the objects that use it.

Brian
Received on 2007-01-27