Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I execute a file in Cygwin?

Tags:

c

gcc

cygwin

How can I execute a.exe using the Cygwin shell?

I created a C file in Eclipse on Windows and then used Cygwin to navigate to the directory. I called gcc on the C source file and a.exe was produced. I would like to run a.exe.

like image 868
Thomas Owens Avatar asked Aug 30 '08 14:08

Thomas Owens


2 Answers

./a.exe at the prompt

like image 197
Allain Lalonde Avatar answered Sep 20 '22 14:09

Allain Lalonde


you should just be able to call it by typing in the file name. You may have to call ./a.exe as the current directory is usually not on the path for security reasons.

like image 23
Kibbee Avatar answered Sep 21 '22 14:09

Kibbee