ImportError: undefined symbol
Martin von Loewis
loewis at informatik.hu-berlin.de
Sat Jan 20 18:36:34 EST 2001
hdemers at venus.astro.umontreal.ca (Hugues Demers) writes:
> When in Python I import the module I get this error:
>
> ImportError: ./gaPhotomodule.so: undefined symbol: __ls__7ostreamPCc
>
> Can someone help me?
It's easy to resolve: this is a symbol defined by libstdc++, and you
did not link it with that library. So you either need to add -lstdc++
to your linker line, or you need to make sure c++ is used to link your
extension module, not gcc.
The more interesting question is: What did you *think* this message
would indicate? Never heard of ostream?
Regards,
Martin
More information about the Python-list
mailing list