[PyKDE] QWindowsXPStyle causing unresolved external symbols with PyQt 3.7 build

Tuvi, Selim stuvi at SLAC.Stanford.EDU
Mon Jul 7 22:18:00 BST 2003


  I am getting unresolved external symbols when building PyQt 3.7 (commercial version) with Visual Studio .Net 2002 with Qt 3.1.1. I believe when I compiled Qt, I specified Windows XP Style support as a plugin (not direct). Is there a way to avoid the link errors or to exclude this class from the PyQt compile? Here is some output from the link step:

        link /NOLOGO /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:
winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll /SUBSYSTEM:WINDOWS /DLL
 /LIBPATH:"C:\Qt\3.1.1\lib" /OUT:..\..\..\Python22\Lib\site-packages\libqtc.pyd
@C:\DOCUME~1\stuvi\LOCALS~1\Temp\nmB2.tmp
   Creating library ..\..\..\Python22\Lib\site-packages\libqtc.lib and object ..
\..\..\Python22\Lib\site-packages\libqtc.exp
LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll ignored; no imports found from c
omdlg32.dll
LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports found from o
leaut32.dll
LINK : warning LNK4199: /DELAYLOAD:winmm.dll ignored; no imports found from winm
m.dll
LINK : warning LNK4199: /DELAYLOAD:wsock32.dll ignored; no imports found from ws
ock32.dll
LINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports found from w
inspool.dll
sipqtQWindowsXPStyle.obj : error LNK2001: unresolved external symbol "public: vi
rtual bool __thiscall QWindowsXPStyle::qt_property(int,int,class QVariant *)" (?
qt_property at QWindowsXPStyle@@UAE_NHHPAVQVariant@@@Z)
sipqtQWindowsXPStyle.obj : error LNK2001: unresolved external symbol "public: vi
rtual bool __thiscall QWindowsXPStyle::qt_emit(int,struct QUObject *)" (?qt_emit
@QWindowsXPStyle@@UAE_NHPAUQUObject@@@Z)
sipqtQWindowsXPStyle.obj : error LNK2001: unresolved external symbol "public: vi
rtual bool __thiscall QWindowsXPStyle::qt_invoke(int,struct QUObject *)" (?qt_in
voke at QWindowsXPStyle@@UAE_NHPAUQUObject@@@Z)
sipqtQWindowsXPStyle.obj : error LNK2001: unresolved external symbol "public: vi
rtual void * __thiscall QWindowsXPStyle::qt_cast(char const *)" (?qt_cast at QWindo
wsXPStyle@@UAEPAXPBD at Z)
sipqtQWindowsXPStyle.obj : error LNK2001: unresolved external symbol "public: vi
rtual char const * __thiscall QWindowsXPStyle::className(void)const " (?classNam
e at QWindowsXPStyle@@UBEPBDXZ)

Thanks
-Selim

Selim Tuvi, Research Engineering Group, SLAC
GLAST, I&T Online, MS 98
Tel:650-926-3376 Fax:650-926-4335




More information about the PyQt mailing list