问题
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