c++ - Visual Studio 2015 c++ 无法打开包含文件错误

标签 c++ visual-studio-2015 include include-path

一段时间以来,我一直试图找出这个错误,但我找不到任何东西,每当我尝试构建我的程序时,我都会收到错误:

C1083:无法打开包含文件:'corecrt.h' 没有这样的文件或目录。

编辑:我将 $(UniversalCRT_IncludePath) 添加到其他包含目录中,但仍然出现错误。

Attempting to add into additional include directories

Code and Error Here

最佳答案

您应该为您的 C++ 项目检查 Additional Include Directories 参数。

为此,转到 Project -> Properties -> C/C++ 并将 $(UniversalCRT_IncludePath) 添加到 Additional Include Directories 参数。

可以找到有关通用 CRT 的更多信息 here .

关于c++ - Visual Studio 2015 c++ 无法打开包含文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38582857/

相关文章:

c++ - Opengl VAO 绘制不正确

c++ - 如何通过 linux 套接字将 UTF-8 文本放入 std::string

c++ - 查询从内存映射文件中检索到的 Rtree 时出现段错误

python - 我可以在 Tornado 中包含一个扩展另一个模板的模板吗?

c++ - 在 Qt 窗口中运行游戏循环

c++ - 无法在变量名称中放置空格 - Visual Studio 2015 (C++)

debugging - 尝试调试时Visual Studio 2015停止工作

php - 索引文件与包含文件冲突

PHP,是否可以在文件顶部包含一个 php 文件来绕过 header() 函数的限制?

c# - 比较 Visual Studio 2015 和 Blend for Visual Studio