安装了VS2015加WDK10,新建了KMDF工程时编译时报了上述错误。是需要下载安装windows10的SDK。
出现这种情况,你可能是缺少了第三步,检查下面的各项安装是否完备:
- 安装 Visual Studio 2015
- 安装 Visual C++ (Not installed by default)
- 安装 Windows SDK for Windows 10 (Not installed by default)(https://dev.windows.com/en-us/downloads/windows-10-sdk)
- 安装 WDK 10 (Download separately)(https://msdn.microsoft.com/en-us/windows/hardware/hh852365.aspx)
- Upgrade project from WDK 8.1
(for more detail: https://msdn.microsoft.com/en-us/library/windows/hardware/mt270257%28v=vs.85%29.aspx )
一般来说, Visual Studio 2015 支持 WDK 10. Visual Studio 2013 支持 WDK 8.1.在我的环境下, Visual Studio 2015 可能不支持 WDK 8.1. 当编译在Windows UserModeDriver8.1 用 VS2015, 将出现一个错误: prop is not found.
WDK 10 支持编译驱动在 Windows 10 / 8.1 / 8 (/ 7sp1).
To build Windows 8.1 driver, follow below.
- Open project properties
- Navigate to Configuration Properties > General
- Check: Platform Toolset Windows****ModeDriver10.0
- Navigate to Configuration Properties > Driver settings
- Check: Target OS Version: Windows 8.1
- Check: Target Platform: Desktop (Default: Universal)