摘要: 也就是windows下的.dll 1.命名 2.制作 (1)生成与位置无关的.o文件 gcc -fPIC -c *.c -I ../include (2)将.o打包成动态库(或者叫共享库) gcc -shared -o libmytest.so *.o -I ../include 3.发布和使用 ( 阅读全文
posted @ 2019-01-04 23:26 代码拯救世界可以吗 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 静态库的制作 将lib静态库和include头文件给用户 1.命名规则 lib+库名字+ .a 如libmytest.a的名字为mytest 2.制作步骤 (1)生成对应的.o文件 gcc -c gcc *.c -c -I../include //使用上一级目录下的include下的头文件进行编译 阅读全文
posted @ 2019-01-04 22:34 代码拯救世界可以吗 阅读(342) 评论(0) 推荐(0) 编辑