[Cython] Function signature does not match previous declaration

Johannes Wienke languitar at semipol.de
Tue Jul 8 20:18:33 CEST 2008


Am 07/08/2008 07:55 PM schrieb Carl Witty:
> On Tue, Jul 8, 2008 at 9:49 AM, Johannes Wienke <languitar at semipol.de> wrote:
>> 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.

I can't find any of those things in my project: This is what I can grab
about thos things:

languitar at bird ~/BA-workspace/shIP $ grep -in "Gimage.pxi" `find . -name
'*.px*'` | grep -v svn
./src/ship/icewing/preview.pxd:2:include "icewing/gui/Gimage.pxi"
./src/ship/icewing/image_utils.pxd:1:include "icewing/gui/Gimage.pxi"
./include/icewing/gui/Grender.pxi:3:include "icewing/gui/Gimage.pxi"
./include/icewing/gui/Gpreview.pxi:4:include "icewing/gui/Gimage.pxi"

languitar at bird ~/BA-workspace/shIP $ grep -in "Gimage.pxi" `find . -name
'*.py*'` | grep -v svn
./src/ship/icewing/converters.pyx:9:include "icewing/gui/Gimage.pxi"

languitar at bird ~/BA-workspace/shIP $ grep -in "iw_img_new_alloc" `find .
-name '*.px*'` | grep -v svn
./include/icewing/gui/Gimage.pxi:87:    iwImage* iw_img_new_alloc(int
width, int height, int planes, iwType type)

languitar at bird ~/BA-workspace/shIP $ grep -in "iw_img_new_alloc" `find .
-name '*.py*'` | grep -v svn
./src/ship/icewing/converters.pyx:241:        cdef iwImage *image =
iw_img_new_alloc(data.size[0],

- Johannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080708/9d785303/attachment.pgp 


More information about the Cython-dev mailing list