简体   繁体   English

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

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

Ive got the following message trying to compile sqlite3 on MingW64 我收到以下消息试图在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.

What does it mean? 这是什么意思? Do I need libpthread.dll? 我需要libpthread.dll吗? Where I can get it? 在哪里可以买到?

It must not necessarily mean that you don't have libpthread.dll , but the paths that the linker is searching do not contain this library. 它不一定表示您没有libpthread.dll ,但是链接程序正在搜索的路径不包含该库。 You must either 你必须

  • locate the file and it ist path to the linking Options or 找到文件及其链接选项的路径,或
  • if it not exists, gather the library and install it. 如果不存在,请收集该库并进行安装。

Search for the file on you computer and if it does not exist, you will need to acquire it. 在计算机上搜索文件,如果该文件不存在,则需要获取它。

This article might prove useful. 文章可能证明是有用的。

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

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