Xref: news2.mv.net comp.os.msdos.djgpp:8100 From: Ian Miller Newsgroups: comp.os.msdos.djgpp Subject: C++ try-throw-catch mechanism Date: Tue, 27 Aug 1996 13:04:50 +0100 Organization: DRA HASN Lines: 14 Message-ID: <3222E462.167EB0E7@dra.hmg.gb> NNTP-Posting-Host: 146.80.115.106 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Should the C++ try-throw-catch mechanism work under DJGPP? Has anyone got it to work? Yes? Any chance of a snippet of source code? It's not documented in the gcc info, but gcc itself recognises the keywords and suggests compiling with the -fhandle-exceptions switch. I tried this, but the resulting program resolutely refuses to catch what I throw; it just calls terminate() every time. Thanks for any assistance, -- Ian Miller, Dorset, AFRICA DJGPP 2.00, Win95 DOS box (LFN=n), 486DX4/100, 24Mbytes RAM