delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/28/09:43:55

Date: Sun, 28 Feb 1999 14:33:09 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Manipal Institute of Technology <mit AT mahe DOT ernet DOT in>
cc: djgpp AT delorie DOT com
Subject: Re: (TO CHIRAYU) C++ problems
In-Reply-To: <3.0.5.32.19990227160208.0079c100@web.mahe.ernet.in>
Message-ID: <Pine.SUN.3.91.990228143152.5950X-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sat, 27 Feb 1999, Manipal Institute of Technology wrote:

> Compile the above with -g. It gives some errors in the assembler because
> the symbol X::func gets into the assembler file.

Please make a point of reporting the exact error messages you get in
such cases.  It is next to impossible to provide efficient help
without this minimal information.

> int main() {
>   try {
>     throw 1;
>   }
>   catch (...) {
>     fprintf (stderr, "\nGot caught!");
>   }
> }
> 
> First, to compile this, we have to use -fhandle-exceptions. GCC complains
> of undefined reference to terminate().

Please report the version of the compiler you are using.  Exceptions
support is only working in the latest versions.  It is possible that
you use an outdated compiler.

> Please note that I'm not a member of mailing list and cant access the
> newsgroup. Please email to mit AT mahe DOT ernet DOT in with "TO CHIRAYU" prominantly
> in the subject and the beginning of the email body else I wont even know
> I got a reply.

Since you are creating a thread, you should make sure these words
appear in the Subject when you write your message.

- Raw text -


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