[PyKDE] Errors making PyQt Windows DLL

Erik Weber erikw at lineo.com
Wed Jun 27 19:15:43 BST 2001

Doug Bell wrote:
> > Erik Weber wrote:
> > > I get unresolved externals in attempting to link the PYQt bindings on
> > > Windows.  I suspect that I am failing to correctly build the SIP
> > > but can find no documentation on how to do this.  I installed sip-2.4
> > > compiled sip.lib there, but it does not reference the qt*.sip files,
so I
> > > assume I am compling a sip.lib with no bindings.  How do I create a
> > > for PyQt?
> > Read the file INSTALL.win32 - there is one for SIP and PyQt.
> > Otherwise, which symbols?
> I am also having problems building SIP using MSVC.  I have the new QT
> Non-Commercial edition installed (I'd like to be able to give a couple
> of apps I've written from Linux to some MS-only friends).  This is the
> error message I'm getting:
> moc_sipQt.obj : error LNK2001: unresolved external symbol "class
QApplication *
> qApp" (?qApp@@3PAVQApplication@@A)
> sip.dll : fatal error LNK1120: 1 unresolved externals
> NMAKE : fatal error U1077: 'C:\PROGRA~1\MSVISU~1\VC98\BIN\link.exe' :
> return code '0x460'

I got this error first by using the 'Makefile.win32-msvc.'  When I switched
to 'Makefile.win32-msvc.static,'  Those errors went away and my sip build
completed (producing the static library 'sip.lib' as opposed to an import
library 'sip.lib' plus 'sip.dll.'  When I attempt to link the PyQt bindings
with this library, however, I get many link errors like:


sipqtQObject.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) struct _object * __cdecl sipDisconnectRx(struct
_object *,char *,struct _object *,char *)"
(__imp_?sipDisconnectRx@@YAPAU_object@@PAU1 at PAD01@Z)


I have no clue as to what needs to be linked to resolve these.

  -Erik Weber
   Lineo Seattle
   206.285.2506 x204
   Lineo: Where Open Meets Smart

More information about the PyQt mailing list