X-Recipient: archive-cygwin@delorie.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@cs.umass.edu>
Reply-To: moss@cs.umass.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@cygwin.com
Subject: Re: problem with bash recognizing c-file with cygwin under eclipse
References: <CAB5V_nbRAFs-OhFLetF8+cCnQutV0+kyx_30c-ECr4cOXnR4Jg@mail.gmail.com> <CAB5V_nYFTrTx8bp9CftSkJW=mS9xv3NC3OgiS4n5-3jzn5y=Qw@mail.gmail.com>
In-Reply-To: <CAB5V_nYFTrTx8bp9CftSkJW=mS9xv3NC3OgiS4n5-3jzn5y=Qw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

