From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27601 invoked by alias); 15 Aug 2011 07:47:09 -0000 Received: (qmail 27542 invoked by uid 22791); 15 Aug 2011 07:46:46 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Mon, 15 Aug 2011 07:46:31 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 8234B2CCBFF; Mon, 15 Aug 2011 09:46:28 +0200 (CEST) Date: Mon, 15 Aug 2011 07:47:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: GCC dependencies (attn David Billinghurst) Message-ID: <20110815074628.GC25129@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <1311736317.5672.85.camel@YAAKOV04> <4E41804B.9060806@gmail.com> <1313150949.7828.18.camel@YAAKOV04> <4E454B52.2040801@gmail.com> <1313166071.7828.51.camel@YAAKOV04> <20110813112813.GD4098@calimero.vinschen.de> <4E46A43B.5010905@lysator.liu.se> <20110814112011.GL4098@calimero.vinschen.de> <4E4853CA.8050507@lysator.liu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4E4853CA.8050507@lysator.liu.se> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2011-08/txt/msg00175.txt.bz2 On Aug 15 01:01, Peter Rosin wrote: > Den 2011-08-14 13:20 skrev Corinna Vinschen: > > On Aug 13 18:20, Peter Rosin wrote: > >> Den 2011-08-13 13:28 skrev Corinna Vinschen: > >>> here's a minor nit, but that bugs me for a while now. > >>> > >>> $ cc hello.c > >>> $ ./a.out > >>> bash: ./a.out: No such file or directory > >>> > >>> I would like to see that GCC for Cygwin creates the output file > >>> "a.out.exe", so the result is the same on Unix/Linux and Cygwin: > >> > >> It's "a.exe" for cygwin native. > > > > I know. That was my point. On other systems it's called a.out, on > > Cygwin it's called a.exe. So, if you try to learn C using the good old > > K&R book from 1983, you're asked to compile hello.c and then call a.out. > > Doesn't work on Cygwin for obvious reasons. Why on earth didn't the GCC > > folks decide to name the output file a.out.exe, so you can run "hello, > > world" by running a.out as well? > > Oops, sorry for the noise. Here I was thinking you had suffered from a brain > fart or something. I did. The K&R book has been published in 1978, not 1983. That was the publishing date of the german translation which I purchased in a feeble moment way back when. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat