delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/20/12:22:51

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4E4FDF28.7020109@cs.umass.edu>
Date: Sat, 20 Aug 2011 12:22:00 -0400
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT edu
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: problem with bash recognizing c-file with cygwin under eclipse
References: <CAB5V_nbRAFs-OhFLetF8+cCnQutV0+kyx_30c-ECr4cOXnR4Jg AT mail DOT gmail DOT com> <CAB5V_nYFTrTx8bp9CftSkJW=mS9xv3NC3OgiS4n5-3jzn5y=Qw AT mail DOT gmail DOT com>
In-Reply-To: <CAB5V_nYFTrTx8bp9CftSkJW=mS9xv3NC3OgiS4n5-3jzn5y=Qw@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 8/20/2011 11:12 AM, Bram Kouwenberg wrote:
> Hello,
>
> I am using Cygwin under Eclipse C/C++. I am trying to compile/run a
> simple c program with gcc, but the file is not found by the bash
> shell. Neither gcc or ls -la can find the .c file but ls does show the
> other contents of the project directory. I'm going crazy not being
> able to find out why the file is not recognized. Its there in the
> eclipse tree and in windows explorer..

I can't think of anything about test.c, but I do suggest that that
is not a very good name to use.  You see, test (under Unix) /
test.exe (under Cygwin) is the name of a built-in file (do "man
test" to find out about it), so compiling and trying to run the
resulting file is not a great idea because of that clash. And
if you were trying to run it and the current directory came after
the directory containing the usual test.exe, you would be surprised
that your file did not run (unless you ran it by typing ./test).
Etc.

Best wishes - Eliot Moss

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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