Cannot open include file: 'ntddk.h': No such file or directory

后端 未结 2 961
小鲜肉
小鲜肉 2021-01-15 03:33

I am getting this error when I am trying to build my driver:

Driver.cpp(7): fatal error C1083: Cannot open include file: \'ntddk.h\': No such file or directory

相关标签:
2条回答
  • 2021-01-15 03:42

    Go to project properties -> C/C++ -> General, and add ddk headers path to Additional Include Directories tab. It should be sth like $(WDKPATH)\inc\ddk where $(WDKPATH) is ofc a directory where You have installed WDK.

    0 讨论(0)
  • 2021-01-15 04:05

    You need Visual Studio 2013 for WDK 8.1

    Quote :

    Important: Before installing WDK 8.1 Update, you need to install Visual Studio 2013. See the Visual Studio links on this page.

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