2016-11-23 32 views
1

当我建立在Visual Studio 2017年RC一个C++项目中,我不断收到一个错误无法打开文件“ucrtd.lib”。LINK:致命错误LNK1104:可以在VS2017 RC

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

我搜索了我的整个机器的文件,但coul d没有找到它。 我已经安装了Windows SDK 8.1

更新: 从@ user1336087

的评论后,我试图安装Windows SDK 10I得到一个错误:

[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并重新安装。

+0

这也许[链接](https://social.msdn.microsoft.com/Forums/en-US/7a2f61b7-3c01-4767-9a30-e897dc240e60/lnk1104-can not-open-file-ucrtdlib?forum = vssetup)会有帮助! – user1336087

+0

其实您获得的Windows SDK 10安装错误与您在链接中提到的错误不同。您的错误表明该文件已损坏。请尝试重新下载Windows SDK 10并尝试重新安装。 –

+0

它是从互联网上下载,当我安装它.. – Damian

回答

1

它可以在Visual Studio中的最终版本2017年

相关问题