Cannot execute .exe files from home directory
Conrad Scott
Conrad.Scott@dsl.pipex.com
Sat Sep 21 08:52:00 GMT 2002
"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
More information about the Cygwin-xfree
mailing list