如何在我的代码中捕获符号查找错误,因此目前我的程序崩溃了?
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(...) {
}
}