On a Linux system. Reference : https://www.swarminglogic.com/index.php?/article/2014_11_crosscompile
@@ -0,0 +1,2 @@
+# Ignore generated binaries
+hello*
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+g++ -o hello-linux main.cpp
+x86_64-w64-mingw32-g++ -o hello-windows main.cpp --static
@@ -0,0 +1,8 @@
+#include <iostream>
+int main()
+{
+ std::cout << "Hello World!" << std::endl;
+ return 0;
+}