digitalmars.D.learn - Cross OS compilation.
- Laurent Dubuisson (8/8) Mar 28 2007 Hello,
- Frits van Bommel (13/20) Mar 28 2007 IIRC it's possible to compile GDC with the mingw sources on Linux. That
- Laurent dubuisson (5/5) Apr 02 2007 Hello,
Hello, Does anyone have a solution to : Build D code on linux; Compile it in a .exe for windows. I dont exepect to setup a windows partition only to compile my code on windows if possible. Cheers, Laurent.
Mar 28 2007
Laurent Dubuisson wrote:Does anyone have a solution to : Build D code on linux; Compile it in a .exe for windows. I dont exepect to setup a windows partition only to compile my code on windows if possible.IIRC it's possible to compile GDC with the mingw sources on Linux. That should enable you to cross-compile from Linux to Windows. Alternatively, you could also try running one of the Windows binary distributions (of DMD or GDC) through something like Wine. Assuming your Linux box can run x86 code, of course. Neither of these would require setting up a Windows partition, though Wine will IIRC set up a directory tree that looks like the one created by Windows. As a last resort, you could run Windows in a virtual machine (VMWare/QEMU/Bochs/VirtualBox/whatever). That would require installing Windows, but on a virtual disk instead of a partition (though they may also allow raw disks instead of files).
Mar 28 2007
Hello, Thanks. The wine seems to work and easier than to move from gdc/mingw/gcc for me at this time. Regards, Laurent.
Apr 02 2007