VS 2015 C++ Cannot find corecrt.h and cannot open file ‘ucrtd.lib‘

VS 2015 C++ Cannot find corecrt.h and cannot open file ‘ucrtd.lib‘,第1张

VS 2015 C++ Cannot find corecrt.h and cannot open file ‘ucrtd.lib‘

目录
  • 问题
  • 解决
  • 参考

问题

创建VS 2015 CLR Console Application项目,进行编译,出现以下两个错误:
1,Cannot find corecrt.h
2,link : fatal error LNK1104: cannot open file ‘ucrtd.lib’
对项目进行配置可解决问题。

解决

VS 2015 --> Debug --> Project Properties --> VC++ Directories

在 'Include Directores’里添加corecrt.h在我的电脑所在的目录:

C:Program Files (x86)Windows Kits10Include10.0.10150.0ucrt

在Library Directories里添加’ucrtd.lib’在我的电脑所在的目录:

C:Program Files (x86)Windows Kits10Lib10.0.10150.0ucrtx64

重新编译,问题解决。

参考

Cannot find corecrt.h: $(UniversalCRT_IncludePath) is wrong
link : fatal error LNK1104: cannot open file ‘ucrtd.lib’ in VS2017 RC

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/4949061.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-13
下一篇2022-11-13

发表评论

登录后才能评论

评论列表(0条)

    保存