missing header file on a new installation of visual studio 2012

前端 未结 2 1570
庸人自扰
庸人自扰 2020-12-06 11:38

I just installed visual studio 2012 and tried running my C++ project on it. compilation fails due to missing \"SDKDDKVer.h\", \"windows.h\", etc.

I installed the win

2条回答
  •  旧时难觅i
    2020-12-06 11:58

    It's a bug caused by VS2012 using the configuration of VS2010.

    You have to manually fix the include libraries to get around this (through the property manager).

    The substantial modifications needed are :

    1. adding $(WindowsSDK_IncludePath) to the include paths

    2. adding $(WindowsSDK_LibraryPath_x86) or $(WindowsSDK_LibraryPath_x64) to the library path depending if your building for x84 or x64.

提交回复
热议问题