Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我完成了编译文件 makefile.am 并且我需要我的 lib 的共享链接,例如在编译后我看到/usr/lib64/libtest.a但我需要libtest.so因为我需要我的 lib 到其他 C 源文件,
/usr/lib64/libtest.a
libtest.so
例子 :g++ -llibtest test.c
g++ -llibtest test.c
我在这里读到了这个,但我不确定如何工作以及如何使用,ranlib或者ar,有什么方法可以创建 *.a 到 *.so?
ranlib
ar
我解决了这个问题
./configure --disable-shared