Cross Compiling With LDC Under Single OS

Elina Küçükay elinakucukay at gmail.com
Wed Dec 16 16:30:07 UTC 2020


Hi, I'm new started the Dlang. I want to cross compile with LDC 
on a single operating system but when I follow the steps in the 
link below, I get a problem:

https://wiki.dlang.org/Cross-compiling_with_LDC

Under Linux;

ldc -mtriple = x86_64-windows-msvc -c foo.d -of = foo.exe

The exe file I created with the command, doesn't work in Windows 
10. Likewise, my Linux code that I compiled under Windows doesn't 
work on Linux.

Can you help me?


More information about the Digitalmars-d mailing list