[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: postdeps empty on OpenBSD

From: Olly Betts
Subject: Re: postdeps empty on OpenBSD
Date: Tue, 20 Sep 2005 19:47:11 +0100
User-agent: Mutt/1.3.28i

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).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]