2

我收到以下消息,试图在 MingW64 上编译 sqlite3

*** Warning: linker path does not have real file for library -lpthread.
*** 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 libpthread and none of the candidates passed a file format test
*** using a file magic. Last file checked: d:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/lib//libpthread.dll.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

这是什么意思?我需要 libpthread.dll 吗?我在哪里可以得到它?

4

1 回答 1

2

它不一定意味着您没有libpthread.dll,但链接器正在搜索的路径不包含此库。你必须要么

  • 找到文件及其链接选项的路径或
  • 如果它不存在,请收集库并安装它。

在您的计算机上搜索该文件,如果它不存在,您将需要获取它。

这篇文章可能会被证明是有用的。

于 2013-04-08T19:25:54.597 回答