Reputation: 87
after compiling files using gcc on windows 10 while executing using ./a.out says '.' not recognised.
I have already set gcc path in environment
Upvotes: 6
Views: 11850
Reputation: 1568
The ./a.out
command would work on a linux system.
Here is a good explanation of how and why that works.
As the message was saying the .
command does not exist in the windows command line.
On windows just type the name, a.out
of your file and hit return.
If your application was properly built and is executable, it should run without any problem. Otherwise it will try to open it with the default application for that extension.
Upvotes: 2