Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7731 Discussions

Can I cross compile on Linux to run on Windows?

jpburke
Beginner
332 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
Black Belt
332 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.
Om_S_Intel
Employee
332 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
aazue
New Contributor I
332 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
Reply