Must I compile on the target architecture?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Dec 25 06:09:33 PST 2015


On Friday, 25 December 2015 at 12:43:05 UTC, Jakob Jenkov wrote:
> If I write a program in D and I use Windows for development but 
> want it to run on Linux, do I have to copy the source code to 
> the target Linux machine and compile it there, to make an 
> executable for that machine? What is the standard process for 
> cross platform compilation?

For building Windows apps on Linux, I just run the Windows 
version of dmd on wine, right from the linux box.

For Linux programs built on Windows... you'll prolly just want to 
copy it to a linux box.


More information about the Digitalmars-d-learn mailing list