On Tue, 19 Jun 2001, Ralph Walden wrote:
> Folks,
>
> I'm using pygtk0.6.6 and I had some trouble compiling
> a python wrapper using pygtk.h.
>
> In pygtk.h, line 322 has:
>
> _PyGtk_API = PyCObject_AsVoidPtr(cobject); \
>
> which on the SGI produces the error:
>
> cc-1515 CC: ERROR File = <my filename>, Line = <xxx>
> A value of type "void *" cannot be assigned to an entity of type
> "_PyGtk_FunctionStruct *".
>
> init_pygtk () ;
> ^
>
>
> So I had to change the line to:
>
> _PyGtk_API = (_PyGtk_FunctionStruct
> *)PyCObject_AsVoidPtr(cobject); \
>
> Shouldn't this be the way to do it anyway? Can this be changed in the
> distribution?
That is weird. I am pretty sure that it is valid C to assign a (void *)
pointer to a variable of some other pointer type (not valid C++ though).
Sounds like the SGI compiler being over pedantic. I can fix this in the
next release though. Please submit a bug at bugzilla.gnome.org (product
gnome-python, component pygtk) so that I don't forget about it.
James.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk