On Tue, Sep 20, 2005 at 01:30:37PM -0500, Bob Friesenhahn wrote:
> On Tue, 20 Sep 2005, Olly Betts wrote:
> 
> >I'm trying to link C++ code into a shared object for use as a Python
> >module.  I'm using libtool to do the linking.  On Linux this works
> >well, but on OpenBSD it fails with lots of C++ library symbols not
> >found.
> 
> You may encounter more problems even after a successful link.  The 
> problem is that static initialization (including initializing C++ 
> exception support) may not be done correctly for C++ code loaded by a 
> C program.

Thanks for the warning.

I've carefully avoided creating static objects, so at least that
shouldn't be a problem.  And exceptions are at least only thrown
in exceptional circumstances...

> It should help to use the C++ compiler to do the link rather than a C 
> compiler.

I'm using libtool to link, and it uses a C++ compiler to do the link
(at least in these two cases).

Cheers,
    Olly


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to