【问题标题】:boost - adding path to 'corecrt.h'boost - 添加路径到“corecrt.h”
【发布时间】:2016-01-21 16:47:36
【问题描述】:

我有一个 hello.cpp 文件,我使用了来自 here 的关于 boost 安装的教程。 我按照他们说的做了所有事情,但我在尝试运行它时遇到了问题。

我明白了:

...found 9 targets...
...updating 3 targets...
compile-c-c++ bin\msvc-14.0\debug\hello.obj
hello.cpp
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory

call "C:\Users\Paula\AppData\Local\Temp\b2_msvc_14.0_vcvarsall_x86.cmd" >nul
cl /Zm800 -nologo @"bin\msvc-14.0\debug\hello.obj.rsp"

...failed compile-c-c++ bin\msvc-14.0\debug\hello.obj...
...skipped <pbin\msvc-14.0\debug>hello.exe for lack of <pbin\msvc-14.0\debug>hello.obj...
...skipped <pbin\msvc-14.0\debug>hello.pdb for lack of <pbin\msvc-14.0\debug>hello.obj...
...failed updating 1 target...
...skipped 2 targets...

我有 corecrt.h 在: C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt 并在: C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt

我尝试设置包含和库,例如Unable to compile and link simple C++ program with Visual Studio 2015 command line tools,但它对我不起作用。我试图在这里寻求帮助:Introducing the Universal CRT,但我没有在 VS 中创建任何项目,只是尝试使用命令提示符运行一个项目,我不确定在我的情况下该怎么做。我对这个话题完全陌生,我知道我的问题可能很愚蠢,但我真的需要它。我花了很多时间试图解决它,但我一无所获。

【问题讨论】:

    标签: c++ visual-studio boost


    【解决方案1】:

    在这里找到解决方案:https://svn.boost.org/trac/boost/ticket/11487

    1) 转到 %TEMP% 文件夹

    2) 删除所有 b2_*.cmd 文件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-17
      • 1970-01-01
      • 1970-01-01
      • 2021-02-25
      • 2012-09-07
      • 1970-01-01
      • 2014-04-18
      • 2017-08-11
      相关资源
      最近更新 更多