Date: Fri, 13 Feb 98 12:25:21 PST From: john@fea.com (John Fox) To: freebsd-questions@FreeBSD.ORG Cc: john@fea.com Subject: gcc 2.8.0 Message-ID: <9802132025.AA11870@dollar.fea.com>
next in thread | raw e-mail | index | archive | help
Has anyone been able to get g++ 2.8 working in 2.2-stable? I compiled
the compiler and libstdc++2.8 but exceptions don't work. Any throw,
whether caught or not, causes the program to end with signal 6 and
print Abort trap.
I compiled 2.8 on SunOS 4.1.3 and exceptions work.
Here's a program that fails on FreeBSD but works on SunOS:
#include <iostream.h>
class anerror { };
int main() {
try {
throw anerror();
}
catch (anerror) {
cout << "caught\n";
return 1;
}
cout << "not caught\n";
return 0;
}
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9802132025.AA11870>
