Linux生成静态库

1. gcc -c 生成.o

2. ar rcs <static lib filename> <object file list>

原文地址:https://www.cnblogs.com/super119/p/2254430.html