I'm using the Linux Subsystem to compile an executable for Windows and the executable does not run and shows up with an error saying a DLL is missing.
This is the command I used to compile the executable: i686-w64-mingw32-g++ -o test.exe main.cpp
And this is the code inside main.cpp:
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
return 0;
}
How do I allow my program to run on Windows?