Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Can I cross compile on Linux to run on Windows?

jpburke
Beginner
651 Views
Hello - Was wondering if I could use the Linux version of the compiler to create executables that could be run on Windows ?

Thanks.
0 Kudos
3 Replies
TimP
Honored Contributor III
651 Views
Basically, no, you would need a cross compiler, and there is no such Intel cross-compiler. You may be able to make gcc cross compilers which could do this; e.g. compile on linux with cygwin as target.
0 Kudos
Om_S_Intel
Employee
651 Views
I do not think if such a compiler is available. You make use mingw compiler to develop the code under linux and use mingw windows version of compiler to port the code and make executable on Windows. You would need both a linux box and a windows box.

Om
0 Kudos
aazue
New Contributor I
651 Views
Hi
For 32 Show this link, for 64 I don't know ???
http://powdertoy.co.uk/Wiki.html?id=linux_cross_compilation_guide
More easy you use two machines different or (VM Xen ,qemu etc ...) i think ....
search more about this package
mingw32-binutils (Linux side)
Regards
0 Kudos
Reply