Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
This is example 1, and one of the solutions of answering the Qt FAQ How to cross-compile a Qt Creator project from Ubuntu to a windows executable?, thanks to [1].
Operating system: Ubuntu 10.04 LTS Lucid Lynx
IDE: Qt Creator 2.0.0
Project type: console application
Libraries used:
#------------------------------------------------- |
#include <iostream> |
In an Ubuntu terminal, go to the folder containing main.cpp. Then type the following:
i586-mingw32msvc-g++ -o MyWin.exe main.cpp |
This successfully creates a Windows executable called MyWin.exe. I have confirmed this to work on my old Windows computer.
llonesmiz |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.