2013-04-08 99 views
1

Ive得到了如下信息試圖編譯上MingW64警告:連接路徑並沒有真正的文件庫-lpthread

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嗎?我能在哪裏得到它?

回答

1

這不一定意味着您沒有libpthread.dll,但鏈接器搜索的路徑不包含此庫。您必須

  • 找到該文件,並將其北京時間的連接選項 或
  • 如果不存在的話,收集庫,並安裝它的路徑。

在您的計算機上搜索該文件,如果該文件不存在,則需要獲取該文件。

This文章可能證明是有用的。

相關問題