【发布时间】:2019-05-25 14:21:44
【问题描述】:
我正在处理一个大型 MASM 项目(我已经使用 VS 2019 下的 ML 编译器编译了我的 MASM 代码),我想在我的 MASM 代码中调用我编写的 C 函数。我用谷歌搜索了很多,但我找不到任何有用的东西。我怎样才能做到这一点?
当我刚刚尝试将我的 C 源代码添加到项目中并重新构建它时,我遇到了一堆链接错误 (LNK2019),如下所示:
LNK2019 unresolved external symbol __CrtDbgReport referenced in function __CRT_RTC_INIT
LNK2019 unresolved external symbol __CrtDbgReportW referenced in function __CRT_RTC_INITW
LNK2019 unresolved external symbol ___stdio_common_vsprintf_s referenced in function __vsprintf_s_l
【问题讨论】:
-
可能与此有关? stackoverflow.com/questions/44083907/… 和这个:stackoverflow.com/questions/33721059/…。这是一个猜测,因为您没有提供您的代码。
标签: c windows visual-studio linker masm