digitalmars.D.learn - Cross OS compilation.
Laurent Dubuisson <skaith_a yahoo.fr> writes:
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
Frits van Bommel <fvbommel REMwOVExCAPSs.nl> writes:
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
Laurent dubuisson <skaith_a yahoo.com> writes:
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