Re: ftpupload.c in SCO openserver
Date: Tue, 27 Jul 2004 06:42:03 -0600
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
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
- application/pgp-signature attachment: This is a digitally signed message part