說明
使用交叉編譯工具 i586-mingw32msvc-g++。
安裝方法
步驟為:添加源(如果能直接安裝就不用)、更新源、安裝。
echo "deb http://us.archive.ubuntu.com/ubuntu trusty main universe" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install mingw32
使用
i586-mingw32msvc-g++ test.c -o test.exe