[PyQt] when use sip, report "syntax error"

Phil Thompson phil at riverbankcomputing.com
Tue Apr 29 10:28:43 BST 2014


On 29/04/2014 10:22 am, shaohua199 wrote:
> Hi,
> 
> When I use sip to wrap one C library, first I createt the .sip file
> and configure.py.
> 
> But when I run python configure.py, it will report:
> sip: example.sip:10: syntax error
> 
> In example line 10, has one interface like this:
> int init(int argc, char *argv[]);
> 
> Seem it is caued by "char *argv[]", how can I make it work?

SIP doesn't support arrays. Use "char **argv" instead.

Phil


More information about the PyQt mailing list