Date: Sun, 28 Feb 1999 14:33:09 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Manipal Institute of Technology 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.