[PyQt] SIP converts "unsigned int" into unknown type
Phil Thompson
phil at riverbankcomputing.com
Mon Sep 13 14:48:32 BST 2010
On Mon, 13 Sep 2010 15:36:01 +0200, Hans Meine
<meine at informatik.uni-hamburg.de> wrote:
> Hi,
>
> I am trying to compile SIP-exported modules using MSVC2008 instead of
> GCC/mingw. A problem arises because SIP silently transforms 'unsigned
> int'
> from my .sip files into 'uint' declarations (e.g. for a0/sipRes) in the
> sip*cpp files, and MSVC chokes on that (undeclared type).
>
> (It is probably relevant that I am *not* using Qt for this extension
> module,
> so I am using the pure sipconfig.SIPModuleMakefile.)
>
> What would be the proper fix here? (In this particular case, I worked
> around
> it by simply using plain signed ints.)
Hmm - try adding...
typedef unsigned int uint;
to the sip.h in the siplib directory.
Phil
More information about the PyQt
mailing list