使用Visual Studio 2015+SDK10+WDK10创建 WDF(Kernel Mode Driver)编译失败 RRS feed

  • 问题

  • 使用Visual Studio 2015/SDK10/WDK10创建了Visual C++ WDF(Kernel Mode Driver)工程,未添加其他任何代码,编译无法通过。错误如下图所示,请问是什么原因,如何解决。

    2015年6月24日 3:02


  • platform toolset 是v140吗?能找到warning.h 文件在哪吗?看看你的VC++的include路径有没有包含那个路径进去。


    “In Visual studio Project -> Properties -> C/C++ -> Advanced -> Forced Include file.

    There is a hardlink to warning.h here. This needs to be changed to  C:\Program Files (x86)\Windows Kits\8.1\Include\shared\warning.h and the error goes away!”


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • 已标记为答案 Shu 2017 2015年7月9日 5:16
    2015年6月25日 7:08