[PyQt] SIP_STATIC_MODULE bug?
Oliver Heyme
olihey at googlemail.com
Mon Mar 30 12:20:53 BST 2009
Hi,
I compile my modules with the SIP_STATIC_MODULES flag!
But I get a lot of errors!
When I checked the generated sources and it seems like there is a bug
in the following lines.
#if defined(SIP_STATIC_MODULE)
extern "C" void SIP_MODULE_ENTRY()
#else
PyMODINIT_FUNC SIP_MODULE_ENTRY()
#endif
If SIP_STATIC_MODULE is defined it uses "void" and if not PyMODINIT_FUNC.
When I change the void to PyMODEINIT_FUNC it works allright.
Is that a bug or do I need to do something else when using SIP_STATIC_MODULES
Thanks,
Oli
More information about the PyQt
mailing list