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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jason McCready
Sent: Wednesday, March 14, 2001 4:08 PM
To: [EMAIL PROTECTED]
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

Reply via email to