SRL Archive - C/C++ Help and Tutorials

cross compileing


Shuttleu

2009-05-27 01:25:50

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

2009-05-27 01:41:54

install g++ for windows

Shuttleu

2009-05-27 01:58:49

so i cant cross compile through linux?

~shut

Smartzkid

2009-05-27 02:09:57

I'm sure it would run in wine, no?

Shuttleu

2009-05-27 02:20:10

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

2009-05-27 03:42:23

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)