help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exceptions not caught in gcc-4.3.0 program


From: Maurizio Loreti
Subject: Re: Exceptions not caught in gcc-4.3.0 program
Date: Wed, 09 Apr 2008 09:13:52 GMT
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

MLO@mlinux 11 $ cat exc.C
#include <iostream>
#include <string>
using namespace std;
void fun();

int main() {
  try {
     throw string("Hi there!");
  }
  catch (string s) {
    cout << "Catched exception \"" << s << "\"\n";
  }
}
MLO@mlinux 12 $ g++ -ansi -Wall -o exc exc.C
MLO@mlinux 13 $ ./exc
Catched exception "Hi there!"
MLO@mlinux 14 $ g++ -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk 
--disable-dssi --enable-plugin 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic 
--host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070925 (Red Hat 4.1.2-27)
MLO@mlinux 15 $ 

-- 
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy      ROT13: Znhevmvb.Ybergv@tznvy.pbz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]