delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/14/15:42:14

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Scott Wallace" <saw AT ternion DOT com>
To: <cygwin AT cygwin DOT com>, "'Jason McCready'" <jasonmccready AT worldnet DOT att DOT net>
Subject: RE: beginner's problem
Date: Wed, 14 Mar 2001 13:58:19 -0600
Message-ID: <000401c0acc1$1e56bb40$27f3cfd8@pcsaw.ternion.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <005101c0acd3$4251ade0$512d4f0c@pavilion>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Importance: Normal

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 AT sources DOT redhat DOT com
[mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Jason McCready
Sent: Wednesday, March 14, 2001 4:08 PM
To: cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019