2013-04-08 100 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文章可能证明是有用的。

相关问题