c++ - 链接 : fatal error LNK1104: cannot open file 'ucrtd.lib' in VS2017 RC

标签 c++ linker linker-errors visual-studio-2017

我在 Visual Studio 2017 RC 中构建 C++ 项目时不断收到错误。

1>------ Build started: Project: test, Configuration: Debug x64 ------
1>Source.cpp
1>LINK : fatal error LNK1104: cannot open file 'ucrtd.lib'
1>Done building project "test.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

操作系统:Windows 8.1、Visual Studio 2017 候选发布版

这是我的程序:

int main()
{
}

我没有将语言设置成任何特殊的

enter image description here

我在我的整个机器上搜索了这个文件,但没找到。 我已经安装了 Windows SDK 8.1

更新: 来自@user1336087 的评论后

我尝试安装 Windows SDK 10,但出现错误:

[14f0:0009][2016-11-23T09:22:20] Package 'Win10SDK_10.0.14393.33,version=10.0.14393.3300' failed to install. Command executed: "C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.14393.33,version=10.0.14393.3300\packages\Win10SDK\10.0.14393.33\sdksetup.exe" /features OptionId.WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit /quiet /norestart, Return code: -2146889721, Details: The hash value is not correct.

这里似乎描述了一种解决方法:link 但是解决方法仍然失败,即使我卸载所有 SDK 并重新安装也是如此。

最佳答案

它适用于 Visual Studio 2017 的最终版本

关于c++ - 链接 : fatal error LNK1104: cannot open file 'ucrtd.lib' in VS2017 RC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40757804/

相关文章:

c++ - 模板转发对成员方法的调用

c++ - 路径树到树结构

c++ - 函数中的链接器错误

linux - 为什么链接器修改了--defsym "absolute address"

c++ - "library has no symbol"是什么意思?

C++ 修复链接器 [错误]

ios - QuickBlox:错误!!框架更新后无法在设备中运行应用程序

c++ - 在 Borland C++ 中编码的哪个编辑器

c++ - 使用 MFCreateSourceReaderFromByteStream 时,我必须在 Makefile 中包含什么库?

c++ - 链接使用 i686-w64-mingw32 编译的 POCO 库时出错