delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/05/00:18:16

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP, GCC, and throw, try, catch
Date: 4 Dec 1997 05:29:49 GMT
Organization: The National Capital FreeNet
Lines: 24
Message-ID: <665f4d$49k@freenet-news.carleton.ca>
References: <6636s7$hrb AT freenet-news DOT carleton DOT ca> <#wGOXTEA9GA DOT 248 AT upnetnews03>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"Carolyn Kelly-Pajot" (dehacked72 AT nospam DOT hotmail DOT com) writes:

[example code]

Well, it works. If I remove -lgpp it still works. (If I remove -lstdcx I
get an undefind reference to terminate... lstdcx doesn't have a funky
copyright does it? just lgpp?)
If I remove -fhandle-exceptions it barfs. Of course, removing -liostr
causes it to puke on cout.

It seems what's needed is:

gcc throw.cc -o throw.exe -fhandle-exceptions -liostr -lstdcx

or

gxx throw.cc -o throw.exe -fhandle-exceptions -lstdcx

--
    .*.  Friendship, companionship, love, and having fun are the reasons for
 -()  <  life. All else; sex, money, fame, etc.; are just to get/express these.
    `*'  Send any and all mail with attachments to the hotmail address please.
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com

- Raw text -


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