Bjorn Pettersen wrote:
>
> I'm a complete newbie to SIP, so please feel free to direct me to any
> FAQs, documents etc. that I have missed.
>
> I'm trying to wrap a very basic class:
>
> class Foo {
> int var;
> public:
> void setVar(int v);
> int getVar();
> };
>
> with the following .sip file
>
> class Foo {
> %HeaderCode
> #include "Test.h"
> %End
> public:
> int getVar();
> void setVar(int v);
> };
>
> and SIP is giving me a parse error on the void setVar() line. If I
> remove the "int v" argument SIP runs, but doesn't create any output
> files...
>
> What am I doing wrong?
SIP doesn't arguments to have names - use "int" rather than "int v".
To generate code you need to pass the "-c" flag - its argument being the
name of the directory that the generated files are put.
Phil
_______________________________________________
PyKDE mailing list [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde