regarding python and c++ interaction

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • parul garg

    #1

    regarding python and c++ interaction

    hi
    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....
    [color=blue][color=green][color=darkred]
    >>> import zoo[/color][/color][/color]
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    ImportError: ./zoo.so: undefined symbol: _Znwj

    can u plz help me in that matter
    rdgs
    parul
  • Diez B. Roggisch

    #2
    Re: regarding python and c++ interaction

    > i am new to python.i hav to call function of c++ .so file(shared[color=blue]
    > 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...
    >
    >[color=green][color=darkred]
    >>>>import zoo[/color][/color]
    >
    > Traceback (most recent call last):
    > File "<stdin>", line 1, in ?
    > ImportError: ./zoo.so: undefined symbol: _Znwj[/color]

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

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

    Diez

    Comment

    Working...