www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/27/09:42:22

Xref: news2.mv.net comp.os.msdos.djgpp:1480
From: devitto AT s7604030 DOT ferndown DOT ate DOT slb DOT com (Dom De Vitto)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: how to use the exceptions with gcc 2.7.2
Date: 27 Feb 1996 12:02:33 GMT
Organization: Schlumber Technologies (Board Systems)
Lines: 26
Message-ID: <4gursp$6ql@snlsu1>
References: <31257941 DOT 41C67EA6 AT iut DOT univ-metz DOT fr>
NNTP-Posting-Host: s7604030.ferndown.ate.slb.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Sat, 17 Feb 1996 06:44:17 Borysiak Gregory wrote:
: I tried to compile a C++ code source which uses the exceptions.
: I compile using the -fhandle-exceptions but when I tried to link
: the code, ld could not find the 'terminate' symbol.

: Did I do someone wrong ? Is the 'terminate' symbol missing in the 
: libraries ?

terminate is the function called when an exception is not caught by the 
application, and so you may be able to get round this by:

void terminate(/* whatever */)
{
fprintf(stderr,"Whoa! You didn't catch this exception boss.\n");
return;
}

Dom
--
_____________________________________________________________________________
  Dom De Vitto                                 devitto AT ferndown DOT ate DOT slb DOT com
  Schlumberger Automatic Test Equipment                      fox AT bcs DOT org DOT uk
  Board Systems                          Desk/voicemail: +44(0) 1202 850951
  Wimborne, Dorset,                      Site reception: +44(0) 1202 850850
  England, BH21 7PP                      Fax:            +44(0) 1202 850988
_____________________________________________________________________________

- Raw text -


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