Re: ftpupload.c in SCO openserver
Date: Tue, 27 Jul 2004 08:37:17 -0500
Can I ask you for a favor?
can you please compile ftpupload or something similr for me,
I need a program which takes an ip address , a path, and a local file name connects to the computer designated by the ip and uploads the local file to the given path.
I need libcurl , because the program shoul infinitely try the transfer of the file and resume the transmission if the connection is lost.
I will be much obliged if you do me the favor
thanks in advance
----- Original Message -----
From: Ken Weinert <mc_at_quarter-flash.com>
Date: Tue, 27 Jul 2004 06:42:03 -0600
To: libcurl development <curl-library_at_cool.haxx.se>
Subject: Re: ftpupload.c in SCO openserver
> On Tue, 2004-07-27 at 02:18, behrouz zolfaghari wrote:
> > curl-config --libz
> > -L/curl/lib -lcurl -lnsl -lsocket -lz -L/usr/local/lib
> > curl-config --cflags
> > -L/curl/include
> Just a quick note here: the -L flag tells the compiler where to look
> for a library (if it isn't in one of the standard places) and the -l
> flag tells the compiler which libraries to look for.
> Note that curl-config has the -L first and the -l second - that's
> because the compiler needs to know that the curl library isn't located
> in a standard place (/lib, /usr/lib).
> In general, you should always have your -L flags before your -l flags in
> the command line.
> > the command line
> > cc -o ftpupload -lnsl -lcurl -lz -lsocket -I/curl/include -L/curl/lib
> You could just make your command line:
> cc `curl-config --cflags` ftpupload.c -o ftpupload `curl-config --libs`
> |o_o | Ken Weinert mc_at_quarter-flash.com
> ||_/ | 303-452-6603 (V) 303-705-4258 (F)
> // \ \
> (| | ) GnuPG: 9274F1CE GnuPG available at http://www.gnupg.org/
> /'\_ _/`\ 1D87 3720 BB77 4489 A928 79D6 F8EC DD76 9274 F1CE
> Right now I'm having amnesia and deja vu at the same time - I think
> I've forgotten this before. - Stephen Wright
<< signature.asc >>
-- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10Received on 2004-07-27