Problem with fixing VS2015 in VC_IncludePath

I had a problem trying to compile a simple hello world C ++ program.

#include <iostream>

int main()
{
    std::cout << "hello world" << std::endl;
    return 0;
}

Among the errors:
cannot open the source file "errno.h"

A quick search using the console ( c:\> dir errno.h /s) shows that the file is located in several directories:
C: \ LegacyApp \ VisualStudio2013 \ VC \ crt \ SRC
C: \ LegacyApp \ VisualStudio2013 \ VC \ include
C: \ Program Files (x86) \ Microsoft Visual Studio 11.0 \ VC \ crt \ src
C: \ Program Files (x86) \ Microsoft Visual Studio 11.0 \ VC \ include
C: \ Program Files (x86) \ Windows Kits \ 10 \ Include \ 10.0.10150.0 \ ucrt

My Project Default Properies Include the following macro: $(VC_IncludePath);$(WindowsSDK_IncludePath);

:
C:\LegacyApp\VisualStudio2015\VC\
C:\LegacyApp\VisualStudio2015\VC\atlmfc\
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt
C:\Program Files (x86)\Windows Kits\8.1\Include\um
C:\Program Files (x86)\ Windows\8.1\Include\shared
C:\Program Files (x86)\Windows Kits\8.1\Include\winrt

C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt .

, 10.0.10240.0 10.0.10150.0

VC_IncludePath?

?

+4
2

, ​​ Windows 10 SDK 10.0.10240.0. , .

Windows 10 SDK 10.0.10150.0 ​​, V++. , Target Platform Version General 10.0.10150.0. .

Windows 10 SDK .

+6

, .

SO Visual Studio 2015? ,

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Common.props

.

+5

Source: https://habr.com/ru/post/1658327/


All Articles