标签:style blog http color os ar 文件 div sp
1.设计库源码
pr1.c
1 void print1() 2 { 3 printf("This is the first lib src \n"); 4 }
pr2.c
1 void print2() 2 { 3 printf("This is the second lib src \n"); 4 }
2.编绎.o文件
gcc -O -c pr1.c pr2.c
3.链接静态库
ar -rsv libpr.a pr1.o pr2.o
标签:style blog http color os ar 文件 div sp
原文地址:http://www.cnblogs.com/sxmcACM/p/3986462.html