5
我想建立使用ZipArchive GNU Autotools的,但我有這個問題,它使用的共享庫:如果我建一個靜態庫,或者如果我使用ZipArchive的共享庫,它的工作原理,但問題爲什麼Libtool不想鏈接靜態庫?
Warning: linker path does not have real file for library -lziparch. 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 libziparch and none of the candidates passed a file format test using a file magic. Last file checked: /usr/local/ZipArchive/ZipArchive/libziparch.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.
是ZipArchive源代碼附帶的makefile只生成一個靜態庫。
如何強制Libtool鏈接靜態庫?