VS2012 C++ warning C4005: '__useHeader': macro redefinition

前端 未结 11 1842
一生所求
一生所求 2020-12-15 16:55

While migrating an old C++ project from Visual Studio 6 up to Visual Studio 2012, we came across an odd set of warnings from inside the standard Microsoft platform headers:<

11条回答
  •  隐瞒了意图╮
    2020-12-15 17:37

    For me another solution worked.

    In project PropertiesConfiguration propertiesC/C++General, I changed the field Addition Include Directories path to SDK with this macro:

    $(WindowsSDK_IncludePath)
    

    Before that, this field had the path to my SDK v7.1, and I had the same warnings.

提交回复
热议问题