gnu

Andrea 'fwyzard' Bocci fwyzard@inwind.it
Sun Dec 22 08:15:00 GMT 2002


At 12.50 21/12/2002 -0500, reza afshar wrote:

>HI,
>CAN YOU HELP ME TO COMPILE THIS C PROGRAM WITH GCC COMPILER?
>I RUNNING WIN98 ON A PC.

I could compile it with no problems under the latest cygwin, with 
openssl-devel installed.
Cygwin is a GNU environment for Windows, and comes with gcc, openssl, and 
everything you would need.

>/* fileSaveAs.c
>
>Compile with:
>gcc -g -o fileSaveAs -lssl -lcrypto fileSaveAs.c
>
>*/

Here's the problem. It compiled just fine with

gcc -g -o fileSaveAs fileSaveAs.c -lssl -lcrypto

IIRC, the order of the libraries IS important.

fwyzard




More information about the Gcc-help mailing list