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 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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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