Boost C++ Libraries: Ticket #5712: terminate called recursively with filesystem header https://svn.boost.org/trac10/ticket/5712 <p> Hello, </p> <p> I'm using boost::filesystem within my project (boost 1.47.0). I have compiled the boost under cygwin with bjam. I have some problems with exception throws / catches: The following example shows the problem: </p> <p> #include &lt;stdexcept&gt; #include &lt;boost/filesystem.hpp&gt; </p> <p> int main(int argc, char* argv[]) { </p> <blockquote> <p> throw std::runtime_error("xxx"); return 0; </p> </blockquote> <p> } </p> <p> If I compile this code under Cygwin and link cygboost_filesystem, cygboost_system and libbost_exception, the programs terminates with this messages: terminate called after throwing an instance of 'std::runtime_error' terminate called recursively </p> <p> If I remove the boost/filesystem include the program produce the correct message: terminate called after throwing an instance of 'std::runtime_error' </p> <blockquote> <p> what(): xxx </p> </blockquote> <p> If I change the program to: </p> <p> int main(int argc, char* argv[]) { </p> <blockquote> <p> try { </p> <blockquote> <p> throw std::runtime_error("xxx"); </p> </blockquote> <p> } catch (...) {} return 0; </p> </blockquote> <p> } </p> <p> the program breaks down with the filesystem include: terminate called after throwing an instance of 'std::runtime_error' terminate called recursively </p> <p> without the include always works fine. </p> <p> Thanks a lot </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5712 Trac 1.4.3