D语言新手问题 出现lld-link: error: could not open libcmt.lib

· Created · Last modified by Brian replied at · 203 times read

C:\d\dmd2\windows\bin\dmd.exe -of.dub\build\application-debug-windows-x86_64-dmd_2088-20B26A58BC158C5796DFB95FE32BF0C8\d1.exe .dub\build\application-debug-windows-x86_64-dmd_2088-20B26A58BC158C5796DFB95FE32BF0C8\d1.obj -m64 -g
lld-link: error: could not open libcmt.lib: no such file or directory
Error: linker exited with status 1
FAIL .dub\build\application-debug-windows-x86_64-dmd_2088-20B26A58BC158C5796DFB95FE32BF0C8\ d1 executable
C:\d\dmd2\windows\bin\dmd.exe failed with exit code 1.

应该是没安装 Windows SDK,你系统版本是啥?可以看看教程:
https://forums.dlangchina.com/thread/10008

Login to reply