How to build a set of toolchains for cross-compiling for LDC?

Kai Nacke via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Jul 19 21:57:12 PDT 2015


On Friday, 17 July 2015 at 07:54:03 UTC, Majestio wrote:
> Just in case the attached file: https//yadi.sk/d/bdD44pMYhvEG8

Hi Majestio!

The files were helpful. You need to add 
-mtriple=i686-w64-mingw32.static to D_FLAGS variable in 
runtime/CMakeLists.txt and recompile the libraries.

What happened is that the object files in the library are ELF-64 
(compiled for x86-64 Linux) but hello.o is 80386 COFF. Therefore 
the unresolved references.

What I miss is the error message from the linker, complaining 
about the architecture mismatch...

Regards,
Kai


More information about the digitalmars-d-ldc mailing list