cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftpupload.c in SCO openserver

From: Linus Nielsen Feltzing <linus_at_haxx.se>
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

Linus
Received on 2004-07-27