繁体   English   中英

警告:链接器路径没有库-lpthread的真实文件

[英]Warning: linker path does not have real file for library -lpthread

我收到以下消息试图在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吗? 在哪里可以买到?

它不一定表示您没有libpthread.dll ,但是链接程序正在搜索的路径不包含该库。 你必须

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

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

文章可能证明是有用的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM