I have a problem while executing a '.exe' file in git bash

987 Views Asked by At

It doesn't execute the command when I type it

enter image description here

2

There are 2 best solutions below

2
On

If the .exe file, that you want to execute, is in the current directory, you have to type

./command

Look for documentation for the environment variable PATH if you do not want to type ./ in front of your command.

0
On

There's nothing preventing execution of .exe files in msys-git/git-for-windows, which you seem to be using.

Your program oop1does not seem to output anything.