regarding python and c++ interaction

Diez B. Roggisch deets at nospam.web.de
Wed Oct 5 10:42:43 EDT 2005


> i am new to python.i hav to call function of c++ .so file(shared
> library)on linux.
> any how i am not able to do that.
> i had made one zoo.so file.when i import it this gives the following error...
> 
> 
>>>>import zoo
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: ./zoo.so: undefined symbol: _Znwj

That won't work. Use ctypes, swig, SIP or write a pythen extension.
> 
> can u plz help me in that matter

This is no SMS - no need to resort to l337 speak here...

Diez



More information about the Python-list mailing list