//-static //above will be passed to g++. #include extern "C" { void catch(); } int main(){ catch(); }