[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] when use sip, report "syntax error"
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2014-04-29 9:28:43
Message-ID: 157d676bf8991516c345c1b8ca7c813e () www ! riverbankcomputing ! com
[Download RAW message or body]

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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic