如何鏈接靜態庫(.a)
和libtool?將靜態庫鏈接到libtool
我創建它使用三個RSA庫libcertc.a
,libcertcsp.a
和libbsafe.a
我鏈接這些庫-lcertc -lcertcsp -lbafe
但同時加載我收到「符號未定義」錯誤模塊Apache模塊(mod_shib_22.so
):
./apachectl -k stop httpd: Syntax error on line 426 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/lib64/shibboleth/mod_shib_22.so into server: /usr/local/lib64/shibboleth/mod_shib_22.so: undefined symbol: T_GetDynamicList
我正在使用生成文件這些行:
LDFLAGS = -L../../libraries/Crypto-C-6.4.0.3/lib/linux_lsb30_x86_64 -L../../libraries/Cert-C-2.9.0.0/lib/LinuxLSB30_x86_64/release_mt
LIBOBJS =
LIBS = -lxerces-c -L/usr/local/lib64 -llog4shib -lnsl -lcertc -lcertcsp -lbsafe -ldl
由於共享,其他庫正在鏈接。 –
http://stackoverflow.com/questions/10290771/creating-static-libraries – Satish