delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/16/02:12:42

Xref: news-dnh.mv.net comp.os.msdos.djgpp:4409 gnu.g++.help:4168
From: "Michael E. Wesolowski" <mewesolo AT freenet DOT calgary DOT ab DOT ca>
Newsgroups: gnu.g++.help,comp.os.msdos.djgpp
Subject: Do exceptions work for gcc 2.7.2 on DOS?
Date: Sun, 14 Jan 1996 20:24:04 -0700
Organization: Calgary Free-Net
Lines: 28
Message-ID: <Pine.A32.3.91.960114201623.21610C-100000@srv1.freenet.calgary.ab.ca>
NNTP-Posting-Host: mewesolo AT srv1 DOT freenet DOT calgary DOT ab DOT ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've read the latest FAQ, and it implies that exception handling is 
available, unless they mean something like Linux, or solaris when they 
say exception handling is available for x86. It doesn't seem to be 
working for me though, so can someone tell me if exception handling 
simply isn't available yet for DOS, or if I've done something wrong?

The symptoms: I've compiled GCC 2.7.2 and libg++-2.7.1 (hopefully 
correctly - that remains to be seen). Simple hello, world programs seem 
to work in C and C++, but I admit to not trying any more complex 
programs. I've written a small program which basically throws an 
exceptions and outputs messages to trace the flow of code. I compile with 
the -fhandle-exceptions flag and attempt to link but get the following 
errors:

In function 'main' - undefined reference to 'terminate(void)'
In function '__throw" undefined reference to 'terminate(void)'

I've poked around in the likeliest (to me) spot - except.c - and found 
lots of comments. Is this particular implementation not complete yet, or 
did my build fail at some point?

Thanks in advance for any help.

---------------------------------------------------------------------

Michael Wesolowski (mewesolo AT freenet DOT calgary DOT ab DOT ca)


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019