Can I compile for Linux from a Windows platform?
Jerome BENOIT
g6299304p at rezozer.net
Wed Oct 16 19:31:22 PDT 2013
If you want to play within a Linux environment on Windows, you can try CygWIN: http://www.cygwin.com/
On 17/10/13 04:24, Adam D. Ruppe wrote:
> On Thursday, 17 October 2013 at 01:18:42 UTC, Jonathan M Davis wrote:
>> In general, you can't cross-compile across operating systems.
>
> Linux to Windows is pretty easy. You can just run the Windows version of dmd under wine on linux to make exes, or you can compile gcc (and presumably gdc, though I've never tried) for linux to make exes.
>
> I'm sure similar techniques could be used, in theory at least, to do Windows to Linux, but I've never seen it done.... and you're absolutely right about the versions not matching up. Hell, it is hard enough to get a binary from one linux box working on another linux box!
More information about the Digitalmars-d-learn
mailing list