Re: [Boost-users] boost exceptions on MacOS 10.5

Hello, I have had similar problems in OSX 10.5 where exceptions are not caught, but with a different project. We are using CMake. I'm not sure how familiar you are with CMake, but it is a build system that allows you to generate projects for "native" development tools. In OSX, you can create Xcode projects or makefiles. If I use Xcode to build the project, I cannot catch exceptions consistently. If I use makefiles, it works fine. You can see the discussion on the CMake list here: http://www.cmake.org/pipermail/cmake/2008-January/019091.html The compiler flags that are used are significantly different, so that seems like a likely problem. Unfortunately, I have not had time to finish tracking the issue down. I'm not really familiar with building boost so maybe this is obvious, but how are you building it? What compiler flags are you using? David Thulson

Hi David, David Thulson wrote:
I'm not really familiar with building boost so maybe this is obvious, but how are you building it? What compiler flags are you using?
Needing a Mac universal build of boost, I tried two different ways, and with both exceptions failed to be caught: 1.) http://svn.boost.org/trac/boost/wiki/CMakeConfigAndBuild Command-line cmake. (boost 1.34.0) 2.) http://stlab.adobe.com/asl_readme.html With 2.), after I noticed that exceptions are not caught, I played with the "-fvisibility=" option until there were no more linker warnings. But this did not help. Best regards, Lothar

David,
I had no problems building boost 1_34_1 with a straight default build on
Leopard 10.5.2 on a Macbook Pro for 32-bit ppc and i386.
The only issue I have is unicode support doesn't compile by default. But I
don't care about that right now so I didn't try to tweak that in yet.
Of course I had a lot of learning to do on how to use Boost in Xcode 3, but
after a lot of manual reading, googling, and trail-and-error work, I
succeeded.
I missed the thread on this, but I'll help you out if I can--just bring me
up to speed.
Daniel
On 2/26/08, Lothar May
Hi David,
David Thulson wrote:
I'm not really familiar with building boost so maybe this is obvious, but how are you building it? What compiler flags are you using?
Needing a Mac universal build of boost, I tried two different ways, and with both exceptions failed to be caught:
1.) http://svn.boost.org/trac/boost/wiki/CMakeConfigAndBuild
Command-line cmake. (boost 1.34.0)
2.) http://stlab.adobe.com/asl_readme.html
With 2.), after I noticed that exceptions are not caught, I played with the "-fvisibility=" option until there were no more linker warnings. But this did not help.
Best regards,
Lothar _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Daniel Lord
-
David Thulson
-
Lothar May