Subject: Re: Problems with exceptions in B19
From: [email-masked] (Larry Hall)

6 Apr 1998 16:40:53 -0700
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Chris Waters <[email-masked]>, [email-masked]

At 11:20 AM 3/26/98 +1200, Chris Waters wrote:
>Hi,
>
>I can't get any of my code that uses exceptions to work under B19. Here
>is an example:
>
>#include <stdio.h>
>
>class EError {
>public:
>  int dummy;
>  EError(int a ) { dummy = a; };
>};
>
>int main( int argc, char *argv[]) {
>
>  try {
>    throw EError(argc); 
>    printf("No exception\n");
>  }
>  catch (EError e) {
>    printf("Caught exception %d\n", e.dummy);
>  }
>
>
>}
>
>When I compile this with:
>
>g++ -fexceptions test.cc
>
>and run it the program stops with the message `aborted'. Any idea what's
>up? This code works fine with gcc 2.7.2 on linux.
>
>
>Thanks,
>
>Chris Waters.

Works fine for me on EGCS.  Maybe you want to try that instead.

Larry Hall                              [email-masked]
RFK Partners, Inc.                      (781) 239-1053
8 Grove Street                          (781) 239-1655 - FAX
Wellesley, MA  02181                    http://www.rfk.com
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".