try build mingw from linux, get this error: ldc2 -mtriple=x86_64-w64-mingw32 -betterC test.d import core.stdc.stdio; extern(C) int main(){ return 0; } To fix this in druntime, we need a new version like: CRuntime_Mingw ? or should reuse CRuntime_Glibc ?