« Return to Thread: boost::filesystem exception not caught on MacOS X

Re: boost::filesystem exception not caught on MacOS X

by Peter Dimov-5 :: Rate this Message:

Reply to Author | View in Thread

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?

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

 « Return to Thread: boost::filesystem exception not caught on MacOS X