This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gnu


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]