簡單的動態連接庫代碼演示

程序內加載動態庫 void *handle; void (*pfunc)(void); handle = dlopen("a(動態庫名字)",RTLD_LAZY); if(!handle) {  dlerror();至關於Perror,專屬於dlopen,dlsym } pfunc = dlsym(handle(dlopen的返回值),「須要使用的函數」);找到使用的函數地址並返回。函數 建立動態
相關文章
相關標籤/搜索