delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/15/21:19:05

Xref: news-dnh.mv.net comp.os.msdos.djgpp:4400 gnu.g++.help:4165
From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: gnu.g++.help,comp.os.msdos.djgpp
Subject: Re: Do exceptions work for gcc 2.7.2 on DOS?
Date: Sun, 14 Jan 1996 23:14:33 +1130
Organization: &tSftDotIotE
Lines: 24
Message-ID: <30F8ECA1.49D21007@alcyone.com>
References: <Pine DOT A32 DOT 3 DOT 91 DOT 960114201623 DOT 21610C-100000 AT srv1 DOT freenet DOT calgary DOT ab DOT ca>
NNTP-Posting-Host: newton.alcyone.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Michael E. Wesolowski wrote:

> 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 get this same problem (I'm trying to use exceptions under gcc too, don't you
know) for Linux with gcc 2.7.2 and libg++ 2.7.1.  According to the READMEs, it's
because Linux uses a libc which is incompatible with libg++ (at least that's how
I read it).  Perhaps a similar thing occurs under DJGPP.

-- 
Erik Max Francis, &tSftDotIotE && uuwest!alcyone!max, max AT alcyone DOT darkside DOT com
San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
_Omnia quia sunt, lumina sunt._ && GIGO Omega Psi && http://www.spies.com/max/
"Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_

- Raw text -


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