摘要: 接上篇1.调用库函数代码tdl.c1 void main()2 {3 print();4 }View Code2.编绎链接的选项cp pr1.so pr11.sogcc -O -o tdl tdl.c ./pr11.so./tdl 阅读全文
posted @ 2014-09-22 18:34 天天AC 阅读(285) 评论(0) 推荐(0)
摘要: 1.设计库代码pr1.c1 int p = 2;2 void print()3 {4 printf("This is the first dll src !\n");5 }View Codepr2.c1 int p = 3;2 void print()3 {4 printf("Thi... 阅读全文
posted @ 2014-09-22 18:26 天天AC 阅读(175) 评论(0) 推荐(0)
摘要: 接上篇(1)调用库函数代码1 void main()2 {3 print1();4 print2();5 }View Code(2)编绎链接选项1 gcc -O -o main main.c -L./ -lprView Code(3)执行目标程序./main 阅读全文
posted @ 2014-09-22 18:15 天天AC 阅读(145) 评论(0) 推荐(0)
摘要: 1.设计库源码pr1.c1 void print1()2 {3 printf("This is the first lib src \n");4 }View Codepr2.c1 void print2()2 {3 printf("This is the second lib src... 阅读全文
posted @ 2014-09-22 18:04 天天AC 阅读(201) 评论(0) 推荐(0)