To execute the file in the current directory, the following syntax is used: ./foo
As allain mentioned, ./a.exe is the right way to execute a.exe in the working directory using Cygwin.
Note. You can use the -o option to cc to specify your own output file name. An example of this might be: cc helloworld.c -o helloworld.exe .
Jason Weathered Aug 30 '08 at 14:58 2008-08-30 14:58
source share