静态库 和 共享库(动态库)

linux 下,创建静态库:

    ar -rcs   libname file.o(目标代码)……

      -r : 插入和替换。

    -c :没有静态库就创建。

    -s :创建索引。

原文地址:https://www.cnblogs.com/yetanghanCpp/p/8655990.html