gcc -c 只编译不连接 -o *.o(生成.o文件)
ar crv name.a *.o *.o (ar 命令把 .o文件打包成 name.a 静态库)
测试 name.a
-L 紧跟链接库的路径 -l 库名 -l 库名