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.

相关推荐
安全二次方security²10 小时前
CUDA C++编程指南(7.25)——C++语言扩展之DPX
c++·人工智能·nvidia·cuda·dpx·cuda c++编程指南
爱装代码的小瓶子10 小时前
【c++与Linux基础】文件篇(4)虚拟文件系统VFS
linux·开发语言·c++
疯狂的喵15 小时前
C++编译期多态实现
开发语言·c++·算法
2301_7657031415 小时前
C++中的协程编程
开发语言·c++·算法
m0_7487080515 小时前
实时数据压缩库
开发语言·c++·算法
小魏每天都学习15 小时前
【算法——c/c++]
c语言·c++·算法
m0_7482331717 小时前
30秒掌握C++核心精髓
开发语言·c++
风清扬_jd17 小时前
libtorrent-rasterbar-2.0.11编译说明
c++·windows·p2p
u01092727117 小时前
C++中的RAII技术深入
开发语言·c++·算法
彷徨而立18 小时前
【C/C++】strerror、GetLastError 和 errno 的含义和区别?
c语言·c++