静态库的创建 gcc -c 源文件。c ar rcs 静态库名(lib.a) 目标文件1 2 3 使用 gcc -o file flie.c -L. -lname 动态库的创建 gcc -shared -0FPIC -o 库名.so 源文件.c 使用 ……