DMD 2.114 ucrt linking

Ssenni ssenni at gmail.com
Mon Aug 31 06:35:43 UTC 2026


Because there's some nice goodies in the 2.114 nightly, I wanted 
to try it out. One of the changes is using UCRT as the C runtime. 
But despite running vcvars64.bat and passing LIBPATH to the 
linker and libcmt.lib/libucrt.lib via -mscrtlib and/or -L 
switches, lld-link complains about undefined symbols (printf, 
sscanf etc) or duplicates. I think I've tried every combination 
at this point.

The only thing that works for me is -mscrtlib=msvcrt120.lib.

Anyone had success?


More information about the Digitalmars-d-learn mailing list