C++/Python version problems?
David Smith
nospam at nonesuch.com
Wed Jul 31 18:15:56 EDT 2002
David Smith wrote:
> I'm just using STL - in particular, vector, fill, max, min.
Actually, this module doesn't use vector. It #includes <algorithm> and uses
min, max, and fill.
The undefined name __gxx_personality_v0 shows up in /usr/lib/libstdc++.so.3
So, following the clues in "Distributing Python Modules", I added to the
extension specification in setup.py:
Extension("cfuncs", ["cfuncs.cpp"],
libraries=['stdc++'],
library_dirs=['/usr/lib'])
and rebuilt. But when I tried to import it into Python, I still got the error:
ImportError: ./cfuncs.so: undefined symbol: __gxx_personality_v0
--
David Smith
drs at labs dot agilent dot com <- hopefully doesn't trigger spambots
More information about the Python-list
mailing list