This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help on gcc


#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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]