My system:
>uname -a
FreeBSD testlab5 7.0-STABLE FreeBSD 7.0-STABLE #1: Thu Feb 28 10:06:47 EST
2008 root@builder:/usr/obj/usr/sources/FreeBSD.7/src/sys/GENERIC amd64
>which g++43
/usr/local/bin/g++43
>g++43 --version
g++43 (GCC) 4.3.1 20080313 (prerelease)
etc.
>echo $LD_LIBRARY_PATH
/usr/local/lib/gcc-4.3.1
Sample program.
When compiled with "g++43 test.cc" , it aborts upon the throw.
When compiled with "g++43 test.cc -lpthread", it runs correctly.
#include <stdio.h>
int main(int argc, char* argv[])
{
try {
throw 1;
}
catch (...) {
printf("Caught exception\n");
}
}
Again, it only aborts when omitting -lpthread AND using the dynamic libs in
/usr/local/lib/gcc-4.3.1. If I unsetenv LD_LIBRARY_PATH, libraries are
loaded from the base fbsd7 installation in /usr/lib, which works.
Thanks.
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stabl...@freebsd.org"