2016-01-21 2 views
0

У меня есть файл hello.cpp, и я использовал учебник по установке boost от 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 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, просто пытаюсь запустить его с помощью командной строки, и я не уверен, что делать в моем случае. Я совершенно новый в этой теме, и я знаю, что мой вопрос может быть глупым, но мне это действительно нужно. Я потратил много часов, пытаясь его решить, и у меня ничего нет.

ответ

Смежные вопросы