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.
/bin/sh ./libtool --tag=CC --mode=link gcc -g -o pcretest pcretest.o libpcreposix.la libtool: link: gcc -g -o .libs/pcretest pcretest.o ./.libs/libpcreposix.so /root/test/pcre-8.12/.libs/libpcre.so
似乎使用 libtool 只会让它变得更复杂,为什么不坚持使用 gcc 呢?
因为您可能没有在另一个平台上使用 gcc。libtool 的全部目的是能够在多个平台上进行链接,而无需了解每个链接器如何工作和操作系统环境如何工作的细节。