"gareth m jones" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] for such questions. Good luck and HTH, // Conrad
