簡體   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