Visual Studio 2017 errors on standard headers

后端 未结 5 1219
一向
一向 2020-11-30 02:37

I just upgraded to Visual Studio 2017 Community Edition and I have trouble loading standard header files. I get 507 errors from various header files. Here are some snippets:

5条回答
  •  清歌不尽
    2020-11-30 03:22

    I got the errors to go away by installing the Windows Universal CRT SDK component, which adds support for legacy Windows SDKs. You can install this using the Visual Studio Installer:

    If the problem still persists, you should change the Target SDK in the Visual Studio Project : check whether the Windows SDK version is 10.0.15063.0.

    In : Project -> Properties -> General -> Windows SDK Version -> select 10.0.15063.0.

    Then errno.h and other standard files will be found and it will compile.

提交回复
热议问题