9 Dec
2007
9 Dec
'07
12:26 p.m.
Lothar May: ...
2) Compile the static boost libs with -fvisibility=default (by patching the build file) and then
g++ test.cpp -lboost_filesystem-mt-1_34_1 -o test
Again, no linker warnings about visibility, but still the exception is not caught.
It strikes me that you're using the -mt version of libboost_filesystem, but at the same time seem to be compiling test.cpp in single-threaded mode by not passing -pthread. Could the two exception handling runtimes be different enough to not recognize each other's exceptions?