exception problem with boost::filesystem under cygwin
Hello, 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: #include <stdexcept> #include <boost/filesystem.hpp> int main(int argc, char* argv[]) { throw std::runtime_error("xxx"); return 0; } If I compile this code under Cygwin and link cygboost_filesystem and cygboost_system, the programs terminates with this messages: terminate called after throwing an instance of 'std::runtime_error' terminate called recursively If I remove the boost/filesystem include the program produce the correct message: terminate called after throwing an instance of 'std::runtime_error' what(): xxx If I change the program to: int main(int argc, char* argv[]) { try { throw std::runtime_error("xxx"); } catch (...) {} return 0; } the program breaks down with the filesystem include: terminate called after throwing an instance of 'std::runtime_error' terminate called recursively without the include always works fine. Can anyone help me to solve the problem? Thanks a lot Phil
participants (1)
-
Kraus Philipp