本文介绍了在WDK8.0和VS2011中都找不到ntdef.h,以前的驱动程序无法在新的WDK8.0 + VS2011环境中构建。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! 我正在尝试使用WDK8.0和VS2011来构建我的驱动程序。 以下是我的所作所为。 I am trying to use WDK8.0 and VS2011 to build my drivers. Here are what i have done. 1。安装WDK8220和SDK。 1. Install WDK8220 and SDK. 2。安装VS2011。2. Install VS2011. 3。使用nmake2msbuild.exe将我的驱动程序源转换为.vcxproj。3. Convert my driver sources to .vcxproj with nmake2msbuild.exe. 4。打开VS2011并打开转换后的.sln项目。4. Open VS2011 and open the .sln project converted. 5。配置项目属性以将WDK8.0 inc文件夹添加到"Include Directories"以及lib文件夹中。5. Configure the project property to add the WDK8.0 inc folder into "Include Directories", as well as the lib folder. 6。运行"Build Solution",现在我看到很多错误:" c:\ program Files(x86)\ Windows Home Kits \8.0 \ Incslude; \\ PKM \ wdm.h(61):致命错误C1083:无法打开包含文件:'ntdef.h" :没有这样的文件或目录"6. Run "Build Solution", now i see many errors: "c:\program Files (x86)\Windows Kits\8.0\Include\KM\wdm.h(61): fatal error C1083: cannot open include file: 'ntdef.h" :No such file or directory" 7。然后我搜索了整个磁盘,我终于发现没有"ntdef.h"。完全在Win8开发人员预览系统的WDK8.0 + VS2011中。 7. Then i searched the whole disk and i finally found that there is no "ntdef.h" at all in the WDK8.0 + VS2011 of Win8 developer preview system. 注意:我安装了x64 Win8系统。 我的驱动程序可以在以前的WDK环境中长时间在XP / Vista / Win7中成功构建。 Note: I am installed the x64 Win8 system. And my drivers can be built successfully in XP/Vista/Win7 always for a long time in previous WDK environment. 所以我的问题: So my questions: 1。到目前为止,有没有人在Win8 x64系统的WDK8.0 + VS2011中成功构建驱动程序?1. has anyone ever built driver successfully in WDK8.0+VS2011 in Win8 x64 system so far? 2。 MSFT曾经验证过这种环境吗?或者是否有任何我缺少的步骤并使ntdef.h丢失了? 2. Has MSFT ever verified this environment? Or is there any step I am missing and make the ntdef.h was lost? 3。有什么建议吗?我是否可以转到Win8 x86版本再试一次? 3. Any suggestion? Shall i move to Win8 x86 version to try again? 问候,推荐答案 这篇关于在WDK8.0和VS2011中都找不到ntdef.h,以前的驱动程序无法在新的WDK8.0 + VS2011环境中构建。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-08 15:09