Bug 17999 – UCRTVersion not properly set for Visual Studio Community 2017

Status
NEW
Severity
major
Priority
P2
Component
installer
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2017-11-21T14:01:30Z
Last change time
2025-01-02T15:46:45Z
Assigned to
No Owner
Creator
Bastiaan Veelo
Moved to GitHub: installer#689 →

Comments

Comment #0 by Bastiaan — 2017-11-21T14:01:30Z
When Visual Studio Community is the only version present on Windows 10, with the minimal set of options that satisfies the dmd installer (https://wiki.dlang.org/File:Visual_Studio_Installer.png) then dmd -m64 will fail to link: LINK : fatal error LNK1104: cannot open file 'libucrt.lib' Error: linker exited with status 1104 The problem goes away after changing UCRTVersion in C:\D\dmd2\windows\bin\sc.ini: ;UCRTVersion=winv6.3 UCRTVersion=10.0.10240.0 (Fresh dmd install.)
Comment #1 by Bastiaan — 2017-11-21T14:03:39Z
dmd-2.077.0
Comment #2 by Bastiaan — 2017-11-21T15:38:23Z
Use of the -m32mscoff option needs the same change under the [Environment32mscoff] section.
Comment #3 by robert.schadek — 2025-01-02T15:46:45Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/installer/issues/689 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB