This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Help on gcc
- From: "James Dressler" <jamesmdr at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 05 Feb 2002 16:09:12 -0200
- Subject: Help on gcc
- Bcc:
#include <stdio.h>
main(void) {
char* p;
p = NULL;
try {
*p = 0;
} catch(...) {
printf("captured");
}
}
compiled with:
gcc -g -static -fexceptions -o a a.cpp
or
gcc -fexceptions -o a a.cpp
does not work, never prints "captured". OS is SunOs 5.6 on Sparc, gcc is gcc
version 2.95.1 19990816 (release)
Any suggestion to solve the problem?
_________________________________________________________________
O MSN Photos é o jeito mais fácil de compartilhar e imprimir as suas fotos:
http://photos.msn.com.br/support/worldwide.aspx