gpt4 book ai didi

c++ - 无法打开包含文件 : 'ntddk.h'

转载 作者:可可西里 更新时间:2023-11-01 15:08:53 27 4
gpt4 key购买 nike

我一直在尝试进入驱动程序开发(排队“不要那样做”)我一直在看this msdn page安装 WDK (Windows Driver Kit) 10 之后我仍然无法编译他们在该页面上使用的示例。

我看过其他SO questions但是我找不到WDK的安装目录。当我尝试运行设置时,我看到了这个: WDK Setup image

我该如何解决这个问题?

最佳答案

您需要将 WDK header 路径添加到您的 vcxproj 包含目录:
vcxproj 属性 -> C/C++ -> 常规 -> 附加包含目录

C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\km\

P.S.:确保将 SDK 10 与 WDK 10 一起安装。
P.P.S:如果没有 SDK,您将得到 Cannot open include file: 'ntdef.h' 错误

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

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com