Visual Studio 2017 errors on standard headers

后端 未结 5 1107
一向
一向 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:24

    This problem may also happen if you have a unit test project that has a different C++ version than the project you want to test.

    Example:

    • EXE with C++ 17 enabled explicitly
    • Unit Test with C++ version set to "Default"

    Solution: change the Unit Test to C++17 as well.

提交回复
热议问题