linux - How to convert SIGFPE into a C++-exception -


under win32 it's easy convert seh-exception c++-exception _set_se_translator. there similar way convert signals c++-exceptions on linux? need mapping of sigfpe c++-exception.

with g++, can use -fnon-call-exceptions option , throw exception fpe signal handler. note not every signal can mapped that, signals arise trapping instructions. fortunately sigfpe such signal.


Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

angular - Angular2 Router: Cannot find primary outlet to load 'HomeComponent' -

qt - Microsoft FTP Service 451 The parameter is incorrect -