From: Laurence Withers Newsgroups: comp.os.msdos.djgpp Subject: Re: C++ Problem Date: Wed, 24 Nov 1999 23:28:57 +0000 Message-ID: References: <383C3443 DOT 362F AT cepsz DOT unizar DOT es> NNTP-Posting-Host: lwithers.demon.co.uk X-NNTP-Posting-Host: lwithers.demon.co.uk:194.222.80.1 X-Trace: news.demon.co.uk 943486293 nnrp-10:26109 NO-IDENT lwithers.demon.co.uk:194.222.80.1 X-Complaints-To: abuse AT demon DOT net MIME-Version: 1.0 X-Newsreader: Turnpike (32) Version 4.01 Lines: 16 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <383C3443 DOT 362F AT cepsz DOT unizar DOT es>, Sergio <434667 AT cepsz DOT unizar DOT es> writes >This occurs only with djgpp, with another C++ compiler it just works. >It is supossed this should write an '1' on stdout and exit, but instead >it >calls terminate(), it seems not to catch the exception. Why? Thanks [snip] What version of gcc are you using? (Type 'gcc -v'). I am using 2.95.1, and your code works exactly as it should (ie. '1' is printed to stdout, and the program exits normally). Bye for now, -- Laurence Withers, lwithers AT lwithers DOT demon DOT co DOT uk http://www.lwithers.demon.co.uk/