[EMAIL PROTECTED] 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";
  }
}
[EMAIL PROTECTED] 12 $ g++ -ansi -Wall -o exc exc.C
[EMAIL PROTECTED] 13 $ ./exc
Catched exception "Hi there!"
[EMAIL PROTECTED] 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)
[EMAIL PROTECTED] 15 $ 

-- 
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy      ROT13: [EMAIL PROTECTED]
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to