[C++-sig] Re: exceptions and multiple modules

Ben Young ben.young at transversal.com
Wed Jul 23 13:04:59 CEST 2003


We also had to use this trick to import our boost-python wrapped library.
I noticed Dave Abrahams thread on python-dev about libraries being able
to specify their own dlopen flags for import. Did anything ever come of
this Dave? or do you think we (transversal) will have just have to keep a
wrapper python script that knows how to do the import correctly?

Cheers

Ben
---

P.S If you want us on your list of projects using boost-python we would be
happy to supply our details:

Transversal is a company that produces
Metafaq, an enterprise level, online, knowledge base management system.
boost-python is used in an automated process to generate python bindings
to our api which is exposed though multiple backends and frontends. This
allows us to write quick tests and bespoke scripts to perform one off
tasks without having to go through the full compilation cycle.

On Wed, 23 Jul 2003, Ralf W. Grosse-Kunstleve wrote:

> --- greg Landrum <greglandrum at mindspring.com> wrote:
> > At 06:44 PM 7/22/2003, David Abrahams wrote:
> > > > I get the dreaded "RuntimeError: unidentifiable C++ exception"
> > > >
> > > > Any ideas as to what might be going on here?
> > >
> > >Yeah, some.  Could you try the enclosed patch and see whether it
> > >helps?
> >
> > Yep, that cleared it right up.  Thanks Dave!
>
> Dave, does your trick with the virtual function eliminate the need to use
> RTLD_GLOBAL?
>
> This is what I mean:
>
>   if (sys.platform == "linux2"):
>     previous_dlopenflags = sys.getdlopenflags()
>     sys.setdlopenflags(0x100|0x2)
>
> Ralf
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>
>




More information about the Cplusplus-sig mailing list