コード内のシンボル検索エラーをキャッチして、現在プログラムがクラッシュするようにするにはどうすればよいですか?
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(...) {
}
}