KMDF驱动编写遇到的第一个编译问题

Windows驱动开发,刚开始学习,Fuck,VS2022 IDE默认生成的项目,居然报错,于是乎Google答案解决办法:

生成开始于 1:04...

1>------ 已启动生成: 项目: HelloMe, 配置: Debug x64 ------

1>Building 'HelloMe' with toolset 'WindowsKernelModeDriver10.0' and the 'Universal' target platform.

1>Stamping x64\Debug\HelloMe.inf

1>Stamping Version section with DriverVer=09/26/2025,1.4.46.908

1>HelloMe.vcxproj -> D:\Study\HelloMe\x64\Debug\HelloMe.sys

1>Driver is 'Universal'.

1>.........................

1>Signability test failed.

1>

1>Errors:

1>22.9.7: DriverVer set to a date in the future (postdated DriverVer not allowed) in HelloMe\hellome.inf.

1>

1>Warnings:

1>None

1>x64\Debug\inf2catOutput.log : Inf2Cat error -2: "Inf2Cat, signability test failed." Double click to see the tool output.

1>已完成生成项目"HelloMe.vcxproj"的操作 - 失败。

========== 生成: 0 成功,1 失败,0 最新,0 已跳过 ==========

解决办法:项目属性设置:Configuration Properties->Inf2Cat->General->Use Local Time.

相关推荐
clint4563 天前
C++进阶(1)——前景提要
c++
夜悊3 天前
C++代码示例:进制数简单生成工具
c++
郝学胜_神的一滴3 天前
CMake 021: IF 条件判据详诠
c++·cmake
_wyt0014 天前
洛谷 B3930 [GESP202312 五级] 烹饪问题 题解
c++·gesp
玖玥拾4 天前
C/C++ 数据结构(七)栈、容器适配器
c语言·数据结构·c++··容器适配器
один but you4 天前
constexpr函数
c++
凡人叶枫4 天前
Effective C++ 条款41:了解隐式接口和编译期多态
java·开发语言·c++·effective c++
凡人叶枫4 天前
Effective C++ 条款42:了解 typename 的双重意义
java·linux·服务器·c++
小胖xiaopangss4 天前
BRpc使用
c++·rpc
-森屿安年-4 天前
63. 不同路径 II
c++·算法·动态规划