This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cannot execute .exe files from home directory


"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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]