There seams be something wrong with the copies of the example files from
http://www.river-bank.demon.co.uk/docs/sip/sipref.html#a-simple-c-example

Is there a place to download the small file of this example to make sure
nothing of mine are wrong?

This is whar I did - I run:
    sip -c . word.sip
..and that's the answer:
    sip: word.sip:2: syntax error

Is there something to notice about the blancs or so? Here are my files:

--- word.h ------------------------------------------------------------
// Define the interface to the word library.
class Word{
    const char *the_word;
  public:
    Word(const char *w);
    char *reverse() const;
};

--- word.sip ----------------------------------------------------------
// Define the SIP wrapper to the word library.
%Module word 0

class Word
{
    %TypeHeaderCode
    #include <word.h>
    %End

  public:
    Word(const char *w);
    char *reverse() const;
};

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to