beginner's problem

Scott Wallace saw@ternion.com
Wed Mar 14 12:00:00 GMT 2001


Try:
gcc hello.c -o hello

the "-o" specifies a filename to call the compiled program.  In your case it
was trying to write the compiled program on top of the hello.c source.

Hope that helps.
thanks,
Scott Wallace


-----Original Message-----
From: cygwin-owner@sources.redhat.com
[ mailto:cygwin-owner@sources.redhat.com]On Behalf Of Jason McCready
Sent: Wednesday, March 14, 2001 4:08 PM
To: cygwin@cygwin.com
Subject: beginner's problem


I'm very unfamiliar with compilers, so don't laugh at my question please.
Where should I save my text files that I want to be compiled?  I type "gcc
hello.c -o hello.c", but I get "no such file or directory", then
"no input files"

What am I doing wrong?
Thank you
Jason


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list