Linux——创建动态库 一.动态库特点: 二.生成动态库(共享库) (1)生成目标文件 .o (2)创建共享库,以command为例 (3)给共享库创建链接 (4)编译测试 (5)让系统找到库的方法 1.方法二: 2.方法三: 一.动态库特点: 二.生成动态库(共享库) 例子文件: test.c: #include <stdio.h> #include "mydemo.h" int main() { printf("Test begin : \n"); hello(); show(); return 0; }