C++/Python version problems?

Jonathan Hogg jonathan at onegoodidea.com
Thu Aug 1 00:26:25 CEST 2002


On 31/7/2002 21:38, in article 3D484ACD.7030503 at nonesuch.com, "David Smith"
<nospam at nonesuch.com> wrote:

> I'm running Python 2.2.1 under Linux, and successfully interfaced my C++
> procedures into Python.  Then I got more aggressive with the templates, and
> g++2.95 wouldn't compile it.  So I got g++ 3.0, and it compiles -- I used
> distutils/setup.py to make the shared object file.  But, now when I try to
> import my module, I get the error message:
> 
>   ImportError: ./cfuncs.so: undefined symbol: __gxx_personality_v0
> 
> Does this maybe have to do with Python being compiled under an older g++, or
> being linked with an older library?  Any suggestions as to what I should do?

Didn't the C++ ABI change substantially from 2.95 to 3.x? I think the
easiest way to answer your question would be to go back and recompile Python
with g++ 3.0 and see what happens ;-)

Jonathan




More information about the Python-list mailing list