简单的动态连接库代码演示

程序内加载动态库 void *handle; void (*pfunc)(void); handle = dlopen("a(动态库名字)",RTLD_LAZY); if(!handle) {  dlerror();至关于Perror,专属于dlopen,dlsym } pfunc = dlsym(handle(dlopen的返回值),“须要使用的函数”);找到使用的函数地址并返回。函数 建立动态
相关文章
相关标签/搜索