【发布时间】:2021-05-22 10:53:21
【问题描述】:
我在尝试在 Windows 中使用 MinGW (msys2) 编译开源库时收到此警告
*** Warning: linker path does not have real file for library -lcrypt32.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libcrypt32 and none of the candidates passed a file format test
*** using a file magic. Last file checked: C:/msys64/mingw32/i686-w64-mingw32/lib/libcrypt32.a
由于这个错误,我不能只编译静态共享库。
文件C:/msys64/mingw32/i686-w64-mingw32/lib/libcrypt32.a存在且正常链接在同一环境下的另一个库中
【问题讨论】: