D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17999 - UCRTVersion not properly set for Visual Studio Community 2017
Summary: UCRTVersion not properly set for Visual Studio Community 2017
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: installer (show other issues)
Version: D2
Hardware: x86_64 Windows
: P2 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-21 14:01 UTC by Bastiaan Veelo
Modified: 2022-12-17 10:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Bastiaan Veelo 2017-11-21 14:01:30 UTC
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 Bastiaan Veelo 2017-11-21 14:03:39 UTC
dmd-2.077.0
Comment 2 Bastiaan Veelo 2017-11-21 15:38:23 UTC
Use of the -m32mscoff option needs the same change under the [Environment32mscoff] section.