This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Cannot execute .exe files from home directory
- From: "Conrad Scott" <Conrad dot Scott at dsl dot pipex dot com>
- To: <cygwin-xfree at cygwin dot com>
- Date: Sat, 21 Sep 2002 09:21:26 +0100
- Subject: Re: Cannot execute .exe files from home directory
- References: <Pine.A41.4.44.0209210020030.21928-100000@aix16.unm.edu>
- Reply-to: cygwin-xfree at cygwin dot com
"gareth m jones" <lobster2@unm.edu> wrote:
> I have dowloaded cygwin and I wrote the quick code for hello world
> and compiled it under gcc. It compiled and I tried to execute the
> a.exe file and the error message said it could not find the a.exe.
> It will work if I copy the file into the bin directory. Does anyone
> know how I can set my path to avoid copying my executable to bin
always.
> Thanks
Try ./a.exe (or /the/full/path/to/your/program/a.exe) rather than just
a.exe.
You could also read some introductory material on the Unix shell or
search the cygwin mailing list archives: this is a FAQ I'm pretty sure.
Also, wrong mailing list: use cygwin@cygwin.com for such questions.
Good luck and HTH,
// Conrad