摘要: // file : add.c int add(int a, int b) { return a+b; }; // cmd: gcc -fPIC -shared -o libadd.so add.c // 编译生成动态库文件 // file : demo.c #include <stdio.h> #include <stdlib.h> // EXIT_FAILURE #include <dlfcn 阅读全文