Boost logo

Boost Users :

From: Mat Marcus (mat-lists_at_[hidden])
Date: 2008-03-02 12:22:26


On Wed, Feb 20, 2008 at 3:31 PM, Lothar May <boost_at_[hidden]> wrote:
> 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 <boost/filesystem.hpp>
>
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net