compile

Compile Windows programs on Linux

Windows?? *GASP!* Sometimes you just have to compile Windows programs from the comfort of your Linux install. This is a relatively simple process that basically requires you to only install the following (Ubuntu) packages: To compile 32-bit programs mingw32 (swap out for gcc-mingw32 if you need 64-bit support) mingw32-binutils mingw32-runtime Additionally for 64-bit programs (*PLEASE SEE NOTE) mingw-w64 gcc-mingw32 Once you have those packages you just need to swap out “gcc” in your normal compile commands with either “i586-mingw32msvc-gcc” (for 32-bit) or “amd64-mingw32msvc-gcc” (for 64-bit).