[Cython] Function signature does not match previous declaration
Carl Witty
cwitty at newtonlabs.com
Tue Jul 8 19:55:31 CEST 2008
On Tue, Jul 8, 2008 at 9:49 AM, Johannes Wienke <languitar at semipol.de> wrote:
> Hi,
>
> I've got one header file in my project, that raises a lot of "Function
> signature does not match previous declaration" warnings but I don't know
> why, especially because everything works. One warning e. g. is this one:
>
> warning: include/icewing/gui/Gimage.pxi:87:11: Function signature does
> not match previous declaration
>
> Line 87 in that file is:
> iwImage* iw_img_new_alloc(int width, int height, int planes, iwType type)
...
This warning does not mean that the Cython declaration doesn't match
the C declaration (Cython knows nothing about the C declaration).
Instead, it means that there are two Cython declarations that don't
match. Search all your .pxd and .pxi files for another declaration of
iw_img_new_alloc; also, make sure that Gimage.pxi is not included
multiple times.
Carl
More information about the Cython-dev
mailing list