如何捕捉我的代码中的符号查找错误,所以目前我的程序崩溃?如何捕捉符号查找错误
void main()
{
try {
dlopen("shared.so", RTLD_LAZY);
/**
now running a function in this shared object and
this function calls a undefined reference
and then it crashes but i want to go in the catch block
*/
} catch(...) {
}
}
10 ..如何检查返回值? – SuperSaiyan
它只是一个简短的代码片段dlopen返回一个有效的句柄,并且这个共享对象中的函数运行良好,直到unreferenced被称为 – helmi
'void main'?在2012年? – Flexo