Cross OS compilation.
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Wed Mar 28 09:16:07 PDT 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).
More information about the Digitalmars-d-learn
mailing list