2016-01-21 154 views
0

我有一个hello.cpp文件,我使用了一个关于从here升压安装的教程。 我做了他们所说的一切,我尝试运行它时遇到问题。boost - 将路径添加到'corecrt.h'

我得到:

...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套件\ 10 \包含\ 10.0.10150.0 \ ucrt 和: C: \ Program Files文件(x86)\ Windows工具包\ 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中创建任何项目,只是试图用命令提示符运行一个项目,我不知道在我的情况下该怎么做。我在这个话题中是全新的,我知道我的问题可能很愚蠢,但我真的需要它。我花了好几个小时试图解决它,而我什么都没有。

回答