cURL / Mailing Lists / curl-library / Single Mail


Re: ftpupload.c in SCO openserver

From: Linus Nielsen Feltzing <>
Date: Tue, 27 Jul 2004 10:29:05 +0200

behrouz zolfaghari wrote:

> curl-config --libz
> -L/curl/lib -lcurl -lnsl -lsocket -lz -L/usr/local/lib

Here it says you need /usr/local/lib, but you don't have that in your
command line.

> the command line
> cc -o ftpupload -lnsl -lcurl -lz -lsocket -I/curl/include -L/curl/lib

That wasn't the complete command line, was it? I'm missing ftpupload.c
in it.

Anyway, try this:

cc -o ftpupload ftpupload.c -L/curl/lib -L/usr/local/lib -lnsl -lcurl
-lz -lsocket -I/curl/include

Received on 2004-07-27