当前位置: 技术问答>linux和unix
链接时cannot find -lgsoap
来源: 互联网 发布时间:2016-11-14
本文导语: Makefile为autotools自动生成,手工修改以下项: CPPFLAGS = -I../.. -L../.. LDFLAGS = -lm -lpthread -lgsoap ps:gsoap已正确安装,安装目录:/usr/local/gSOAP/ | 该回复于2011-03-23 11:02:00被版主删除 | ...
Makefile为autotools自动生成,手工修改以下项:
CPPFLAGS = -I../.. -L../..
LDFLAGS = -lm -lpthread -lgsoap
ps:gsoap已正确安装,安装目录:/usr/local/gSOAP/
CPPFLAGS = -I../.. -L../..
LDFLAGS = -lm -lpthread -lgsoap
ps:gsoap已正确安装,安装目录:/usr/local/gSOAP/
|
|
试试这样呢
LDFLAGS = -lm -lpthread -L/usr/local/gSOAP -lgsoap
LDFLAGS = -lm -lpthread -L/usr/local/gSOAP -lgsoap
|
echo "/usr/local/gSOAP" >> /etc/ld.so.conf
ldconfig
ldconfig
|
ldconfig -p | grep gsoap
看有木有!!!!!!!
rpm -ql gsoap
看so安装到哪个目录了,然后将该目录追加到/etc/ld.so.conf或者/etc/ld.so.conf.d/目录下
sudo ldconfig
看有木有!!!!!!!
rpm -ql gsoap
看so安装到哪个目录了,然后将该目录追加到/etc/ld.so.conf或者/etc/ld.so.conf.d/目录下
sudo ldconfig