[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] Use of enum in a namespace with SIP
From: "Claus, Richard" <claus () slac ! stanford ! edu>
Date: 2005-05-03 21:34:59
Message-ID: 35C208A168A04B4EB99D1E13F2A4DB01B69585 () exch-mail1 ! win ! slac ! stanford ! edu
[Download RAW message or body]
Hello,
The following sip code does not produce compilable code with sip 4.2 (4.2rc2-289, \
Windows XP SP2).
%Module MyTest
namespace MyNamespace {
enum MyEnum {a, b, c, d};
};
The generated sipMyTestMyNamespace.cpp code contains references to MyNamespace::a, \
etc., where the namespace MyNamespace is undefined. I can't seem to figure out how \
to get a "#include" directive to appear in the generated code that would define the \
namespace.
Secondly, I can't seem to provide a reference to the enum's members as defined in \
some C++ code. Any %<xxx>Code directive produces a "syntax error" message.
Can anyone shed some light on this, or am I obliged to move the enum into a class \
definition?
Thanks,
Ric
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic