cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Eduardo M Kalinowski <ekalin AT iname DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: C++ Exception Support |
Date: | Tue, 21 Sep 1999 10:23:50 GMT |
Organization: | Deja.com - Share what you know. Learn what you don't. |
Lines: | 49 |
Message-ID: | <7s7mbf$2s7$1@nnrp1.deja.com> |
References: | <7s0j62$b11$1 AT nnrp1 DOT deja DOT com> <7s0l5p$fpc$1 AT solomon DOT cs DOT rose-hulman DOT edu> |
NNTP-Posting-Host: | 200.219.150.131 |
X-Article-Creation-Date: | Tue Sep 21 10:23:50 1999 GMT |
X-Http-User-Agent: | Mozilla/4.5 [en] (X11; U; Linux 2.2.1 i586) |
X-Http-Proxy: | 1.0 x43.deja.com:80 (Squid/1.1.22) for client 200.219.150.131 |
X-MyDeja-Info: | XMYDJUIDekalin |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
In article <7s0l5p$fpc$1 AT solomon DOT cs DOT rose-hulman DOT edu>, "Damian Yerrick" <reply DOT at DOT your DOT own DOT risk AT pineight DOT 8m DOT com> wrote: > > I was trying to run a C++ program compiled that uses exceptions, but > I didn't post the source code. > > The custom here on comp.os.msdos.djgpp and most other > programming newsgroups is to post the smallest code fragment > that produces the error. Post your source and we'll fix it. Don't > post your source and we won't fix it because we're not psychic > and we can't see the problem. I didn't post the source because I was describing a problem not relevant to that specific code, but a general failure. Anyway, here is the smallest fragment that will trigger the error: ---start--- #include <fstream.h> int main() { try { throw "Test"; } catch (char *e) { cout << "Exception caught: " << e; } return 0; } ---end--- I compiled this with gpp -o teste teste.cpp and when run the program receives an ABORT signal and exits with a traceback. I'm using version 2.95 of the compiler, binutils 2.81 and djdev 2.02. -- Eduardo M Kalinowski mailto:ekalin AT iname DOT com http://move.to/hp48g ICQ 10944368 Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |