PDA

View Full Version : cross compileing



Shuttleu
05-27-2009, 05:25 AM
i am in ubuntu 9.04 and i want to know which is the best C++ compiler which can compile for linux and windows
and hopefully instructions on how to use it
i currently use g++ but i dont think it compiles for windows :/
if it does could someone give me instructions on how to make it compile for windows
i currently do
g++ file.cpp
which then gives me a file called a.out but that cant be run in windows
rep++ to the most helpful

~shut

Yakman
05-27-2009, 05:41 AM
install g++ for windows (http://www.mingw.org/)

Shuttleu
05-27-2009, 05:58 AM
so i cant cross compile through linux?

~shut

Smartzkid
05-27-2009, 06:09 AM
I'm sure it would run in wine, no?

Shuttleu
05-27-2009, 06:20 AM
so i install MinGW in wine?
if so how would i get to the cmd in wine?

~shut

EDIT: dw i have found the CMD in wine
it works great :) thanks Yakman

boberman
05-27-2009, 07:42 AM
Don't get mingw for wine, just get mingw. Look it up in synaptec. It will compile files just like g++ will (you just need to run the MingW g++ instead of the regular one)