From: luke AT jet DOT msk DOT su (Oleg Yu. Polyanski) Newsgroups: comp.os.msdos.djgpp Subject: Re: exceptions and templates ??? Date: 09 Jun 1998 11:34:14 +0400 Organization: Jet Infosystems Lines: 20 Message-ID: References: <357BDAA1 DOT C2C3AE20 AT BigPond DOT com> NNTP-Posting-Host: goliath.service.jet.msk.su Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk >>>>> "Dominique" == Dominique Louis writes: Dominique> Hi all, just wondering if anyone knows how to setup DJGPP Dominique> correctly so that exceptions work correctly when using Dominique> templates. Every time the program reaches "throw" the Dominique> program ends abruptly and I get a message on my screen that Dominique> says "Abort!", which seems to defeat the purpose of having Dominique> exceptions in the first place. it seems you use the old g++. i recommend you to upgrade the compiler at least to 2.8.0 version. /Oleg p.s. if you still would like to know the reason of that message: the real reason is that you did not add the `-frtti' option to command line. g++ versions prior 2.8.0 require use of `-frtti' together with `-fhandle-exceptions'. documentation says that without `-frtti' only exact matching and match by reference will work but it did not work. at least for me.