cross compiling linux -> windows

Oleg B via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed Mar 22 05:35:16 PDT 2017


Hello. I'm try to cross build example program and get some error.

% ldc2 -mtriple=i686-w32-mingw32.static print_void_array.d
/home/obutko/workspace/ldc2-1.2.0-beta1-linux-x86_64/bin/../import/core/stdc/wchar_.d(80): Error: undefined identifier 'FILE'
...
/home/obutko/workspace/ldc2-1.2.0-beta1-linux-x86_64/bin/../import/core/stdc/stdio.d(830): Error: undefined identifier 'FILE'
...

and I don't understand how to fix it. If I add flag 
`-d-version=CRuntime_Windows` compiler fails with `Error: version 
identifier 'CRuntime_Microsoft' is reserved and cannot be set`

Maybe I have fundamentally wrong logic for doing this?


More information about the digitalmars-d-ldc mailing list