missing header file on a new installation of visual studio 2012

前端 未结 2 1561
庸人自扰
庸人自扰 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条回答
  • 2020-12-06 11:54

    The same problem also exists when you upgrade a VS2010 project to VS2012.

    To me, manually fixing the include dirs (see step 1 in previous answer) took care of the problem.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题