错误 LNK2019:未解析的外部符号 __stdio_common_vfprintf 在函数 _vfprintf_l 中引用

问题描述

由于链接错误,我一直遇到构建驱动程序的问题。该驱动程序已在过去构建,但从那以后我重置了我的电脑并更新到 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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...