I compiled a C++ program under Linux:
make -f mymakefile
This will generate an executable, a.out
. It seems this executable cannot be run in the Windows command prompt.
linuxwindows
I compiled a C++ program under Linux:
make -f mymakefile
This will generate an executable, a.out
. It seems this executable cannot be run in the Windows command prompt.
Best Answer
You cannot natively run a program for Linux under Windows. They are completely different operating systems.
However, there are methods you can try to run the program:
Granted, depending on the nature of the program and its dependencies, it might not be possible to run in another environment without additional software, modifications to the source code, or at all.