[PyQt] SIP syntax error with enum or namespace

Phil Thompson phil at riverbankcomputing.com
Wed Sep 17 08:33:36 BST 2008


On Tue, 16 Sep 2008 16:53:53 -0700, "Mark A. Schmucker" <masc at rincon.com>
wrote:
> According to the SIP doc, 6.1 Syntax Definition, a "class-statement" can
be
> a class, enum, namespace, or a few other things. I can successfully
> specify
> a class, but not an enum or namespace. 
>  
> These are OK:
> %Include my.sip
> %Import myother.sip
> class MyClass;
>  
> These fail with "syntax error" when I run sip:
> enum MyEnum;
> namespace MyNamespace;
>  
> In all cases, the specified name does exist, although I don't think that
> even matters since it's failing early with a syntax error.

Look at the definition of "enum" and "namespace" in the same section to see
what SIP is expecting.

Phil



More information about the PyQt mailing list