3 编译:生成动态链接库 :root@linux:~/code# gcc -fPIC -shared -o math_func.so add_func.c sub_func.c编译main函数:root@linux:~/code# gcc -o math_test math_test.c ./math.so执行:root@linux:~/code# ./math_testa = 100 ,b = 50a - b = 50a + b = 150 ...