Boost logo

Boost Users :

Subject: Re: [Boost-users] [C++-sig] Boost python exception translation failure on BlueGene/P
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-26 18:12:33


AMDG

James Amundson wrote:
> On 02/18/2010 04:24 PM, James Amundson wrote:
>> Boost Python seems to be failing to catch and translate C++
>> exceptions for me on a BlueGene/P installation. I really don't know
>> what to do next in debugging the problem, so I would appreciate any
>> advice.
>
> I have finally solved this problem myself -- I am responding to my own
> message on these mailing lists in case this information is useful to
> others.
>
> In the end the solution was to add the flag "-dynamic" to the
> libboost_python link line. Without the flag, boost::python mostly
> works on BlueGene/P, but exceptions are not caught. With the flag,
> boost_python passes all tests I have done.
>
> I spent some time trying to understand how to tell bjam to add a flag
> to the boost_python link line, but I gave up after about fifteen minutes.

linkflags=-dynamic

In Christ,
Steven Watanabe


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