当前位置: 技术问答>linux和unix
编译ACE时出现错误
来源: 互联网 发布时间:2016-08-30
本文导语: 编译ACE时出现错误,显示信息如下,请各位大哥,帮忙解决。谢谢,急。。。 *** Warning: linker path does not have real file for library -lgcc. *** I have the capability to make that library automatically link in when *** you link t...
编译ACE时出现错误,显示信息如下,请各位大哥,帮忙解决。谢谢,急。。。
*** Warning: linker path does not have real file for library -lgcc.
*** 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 libgcc and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/local/lib/gcc/ia64-hp-hpux11.31/4.2.3/libgcc.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.
/.. /usr/local/lib/libstdc++.so -lunwind -lm
ld: Unrecognized argument: -pthread
Fatal error.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Warning: linker path does not have real file for library -lgcc.
*** 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 libgcc and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/local/lib/gcc/ia64-hp-hpux11.31/4.2.3/libgcc.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.
/.. /usr/local/lib/libstdc++.so -lunwind -lm
ld: Unrecognized argument: -pthread
Fatal error.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
|
-lpthread ,makefile少写了个'l'
|
不加l是不行的
ls /usr/lib/libpthread
libpthread_nonshared.a libpthread.so libpthread.so.0