
On Wed, Feb 20, 2008 at 3:31 PM, Lothar May
Hi,
I've brought this up before, but I still have no solution for this issue, so I will give it another try:
Does anyone have boost 1.34.1 compiled on MacOS 10.5 where exceptions can be caught? You might use the following code to test:
--cut here--
#include <iostream> #include
using namespace std; using namespace boost::filesystem;
int main() { try { directory_iterator i("does_not_exist"); } catch(...) { cout << "This is never printed on MacOS 10.5." << endl; } return 0; }
--cut here--
If this works with your installation of boost on MacOS 10.5, please tell me which steps you did to compile boost, and whether you used the static or dynamic version.
A related question is: Is boost "supposed to work" on MacOS 10.5?
Thanks,
Lothar
It sounds like you may be experiencing issues with gcc visibility. Try making symbols visible, or at minimum add -fvisibility-ms-compat to your build settings. See, for example, http://gcc.gnu.org/wiki/Visibility under "Problems with C++ exceptions (please read!)". - Mat