example needed: sip + Qt

Uwe Mayer merkosh at hadiko.de
Fri Jan 28 23:39:45 CET 2005


Friday 28 January 2005 23:18 pm Uwe Mayer wrote:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: ./hello.so: undefined symbol: _ZTV5Hello
> 
> $ c++filt _ZTV5Hello
> vtable for Hello
> 
> The compilation did not give any warnings or error messages. Any ideas?

$ ldd -d hello.so
    libqt-mt.so.3 => /usr/lib/libqt-mt.so.3 (0x40057000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4190c000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4154e000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x41173000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40743000)
        libm.so.6 => /lib/tls/libm.so.6 (0x4114f000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x407fd000)
        libc.so.6 => /lib/tls/libc.so.6 (0x41019000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x418d8000)
        libaudio.so.2 => /usr/lib/libaudio.so.2 (0x40807000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4191c000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x4081c000)
        libz.so.1 => /usr/lib/libz.so.1 (0x41856000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x41749000)
        libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x40842000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x41734000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0x416e1000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x42487000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x42583000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4256a000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0x41184000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x40847000)
undefined symbol: _ZTV5Hello    (./hello.so)
undefined symbol: _ZNK5Hello9classNameEv        (./hello.so)
undefined symbol: _ZN5Hello7qt_castEPKc (./hello.so)
undefined symbol: _ZN5Hello9qt_invokeEiP8QUObject       (./hello.so)
undefined symbol: _ZN5Hello7qt_emitEiP8QUObject (./hello.so)
undefined symbol: _ZN5Hello11qt_propertyEiiP8QVariant   (./hello.so)
undefined symbol: _ZTI5Hello    (./hello.so)
undefined symbol: _Py_NoneStruct        (./hello.so)
undefined symbol: PyCObject_Type        (./hello.so)

Uwe 



More information about the Python-list mailing list