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

List:       pykde
Subject:    Re: [PyKDE] difficulty following SIP Tutorial
From:       "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date:       2005-09-08 8:08:56
Message-ID: 47312.194.203.13.71.1126166936.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]

> Hello,
>
> I am trying to duplicate the steps in the "Simple C++ Example" portion of
> the SIP documentation.
>
> I have installed the generic Debian packages that are in testing, with
> the exception of sip 4.3 which is currently is unstable.
>
> As a newbie to sip (but having used swig in the distant past) I copied
> and pasted the sip file into word.i instead of word.sip .  I know; it's
> obvious.  But just a little more verbosity would have helped me.
>
> Then when it come times to make, I get:
>
> g++ -c -pipe -fPIC -O2 -Wall -W -I. -I/usr/include/python2.3 -o
> sipwordcmodule.o sipwordcmodule.cpp
> sipwordcmodule.cpp:49: warning: missing braces around initializer
> sipwordcmodule.cpp:49: error: too many initializers for
> 'sipExportedModuleDef'
> sipwordcmodule.cpp:49: error: invalid conversion from 'int' to 'char*'
> sipwordcmodule.cpp:49: error: invalid conversion from 'const char*' to
> 'int'
> sipwordcmodule.cpp:49: warning: converting to non-pointer type 'int' from
> NULL
> sipwordcmodule.cpp:49: error: invalid conversion from 'int' to
> '_sipWrapperType**'
> sipwordcmodule.cpp:49: error: cannot convert 'sipWrapperType**' to
> 'sipMappedTypeDef**' in initialization
> make: *** [sipwordcmodule.o] Error 1
>
>
> g++ is version 4.0, but I get similar errors with g++-3.3 .  Any
> pointers?

That looks like a mismatch between the version of SIP that is generating
the code and the version of sip.h that is being picked up by the compiler.

Phil

_______________________________________________
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