c++ - 无法打开包含文件 : 'ntddk.h' : No such file or directory

标签 c++ visual-studio-2012 driver

当我尝试构建驱动程序时遇到此错误:

Driver.cpp(7): fatal error C1083:无法打开包含文件:“ntddk.h”:没有这样的文件或目录

我使用的是安装了 WDK 8.1 的 Visual Studio 2012(我没有在 VS 中配置任何内容)。

感谢任何帮助。

最佳答案

转到项目属性 -> C/C++ -> 常规,并将 ddk header 路径添加到“附加包含目录”选项卡。它应该类似于 $(WDKPATH)\inc\ddk,其中 $(WDKPATH) 是您安装 WDK 的目录。

关于c++ - 无法打开包含文件 : 'ntddk.h' : No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19608159/

相关文章:

unit-testing - 如何使用 visual studio 2012 执行系统或集成测试而不将它们包含在运行所有测试中?

windows - 没有在主机上运行的 Windows 调试器上打印 DbgPrintEx (Windows 10)

c - 在 8 秒内检测 16 GB 笔式驱动器上的内容更改

c++ - Visual Studio 版本之间的库 ABI 兼容性

c++ - 使用正则表达式为每个连续的大写字符附加一个 '.'

c++ - 这些在 string 和 wstring 之间转换的函数是否应该作为仅 header 实现?

c++ - glDrawArrays 上的 OpenGL 段错误

image - 保存 CImage 给出错误 : identifier "ImageFormatJPEG" is undefined

android - Android驱动开发的一些问题

asp.net-mvc - TFS 上的 Visual Studio 2013 构建错误