Linking C library with a C++ dll: “unresolved external symbol __mingw_vsnprintf”

ⅰ亾dé卋堺 提交于 2021-01-07 01:37:27

问题


I've built a C++ Windows dll using Visual Studio - a.dll.

I used Cygwin and MinGW (x86_64-w64-mingw32-gcc) to build a helper C library - helper.lib.

The dll needs to use the helper library, so I modified Visual Studio project, tried to link with the library, but I get:

error LNK2019: unresolved external symbol __mingw_vsnprintf referenced in function inquiry where inquiry is one of the functions inside helper.lib.

What am I doing wrong?

来源:https://stackoverflow.com/questions/65494567/linking-c-library-with-a-c-dll-unresolved-external-symbol-mingw-vsnprintf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!