问题描述
由于链接器错误,我一直遇到构建驱动程序的问题。该驱动程序已在过去构建,但从那以后我重置了我的电脑并更新到 Windows 10 版本 20H2。 (它以前建立在 1909 年,没有任何问题。)
我从 https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk(适用于 Windows 10 的 WDK,2004 版)下载了最新的 Windows SDK + WDK
我在构建时遇到的错误是:
1>Main.obj : error LNK2019: unresolved external symbol __acrt_iob_func referenced in function printf
1>Main.obj : error LNK2019: unresolved external symbol __stdio_common_vswprintf referenced in function _vswprintf_c_l
1>Main.obj : error LNK2019: unresolved external symbol __stdio_common_vfprintf referenced in function _vfprintf_l
这是通过使用 printf 和 swprintf 触发的。
以防万一,主要驱动程序代码在 .cpp 文件中,包含在 .h 文件中。
谁能帮我弄清楚如何解决这个问题?谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)