This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


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

RE: beginner's problem


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


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