Should I compile program D on Linux for Windows?

Is there a way to compile program D under Linux for the Windows operating system?

+4
source share
2 answers

The easiest way to do this is probably to run the dmd version for windows under wine . You can configure the cross-compiler, but there will be a lot of trouble for this effect.

+4
source

Answer your first question ("Should I ..."): it depends mainly on your development environment. If you work exclusively with Linux, itโ€™s nice to set up a cross-compiler and create Windows applications on Linux.

The answer to the second question ("Is it ..."): Yes, it is - using a cross-compiler capable of the Windows platform.

Both GDC and LDC can be built in such a way that they can focus on Windows 32bit or 64bit directly from your Linux box. You can find hundreds of resources on this topic on the Internet. Writing a tutorial on how to build a GDC cross-compiler takes a lot of time, but if you somehow donโ€™t do it yourself, Iโ€™ll write a simple step-by-step guide on how to do this.

+2
source

Source: https://habr.com/ru/post/1447589/


All Articles