This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: beginner's problem
- To: <cygwin at cygwin dot com>, "'Jason McCready'" <jasonmccready at worldnet dot att dot net>
- Subject: RE: beginner's problem
- From: "Scott Wallace" <saw at ternion dot com>
- Date: Wed, 14 Mar 2001 13:58:19 -0600
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