Exception handling

Serguei I. Ivantsov admin@gsc-game.kiev.ua
Mon Aug 26 08:08:00 GMT 2002


Hello!

Please help me with exception handling under gcc

The very simple program:

int main(int argc, char* argv[])
{
printf("Start\n");
try{
printf("Block\n");
int x=0;
int y=0;
int z;
z=x/y;
}catch(...){
printf("Except\n");
};
printf("End\n");
return 0;
}

Execution stops after "Floating point exception" and never riches catch
section.

What is wrong? It is works pretty good under M$ :)


--
 Regards,
  Serguei I. Ivantsov
   GSC Game World



More information about the Gcc mailing list