1.搜索文件夹下的so
2.对so进行逐一加载 libm_handle = dlopen("lib.so", RTLD_LAZY );
3.返回的句柄放如容器中
//只从网上看了一段,求大神们补充
//对so进行逐一加载
ibm_handle = dlopen("lib.so", RTLD_LAZY );
libm_handle = dlopen("libthrift-0.10.0.so", RTLD_LAZY );
if (!libm_handle){
printf("Open Error:%s.\n",dlerror());
}
else
{
printf("成功加载so\n");
}
急急急!求大神啊!