Johannes Wienke wrote: > Am 07/08/2008 07:55 PM schrieb Carl Witty: >> On Tue, Jul 8, 2008 at 9:49 AM, Johannes Wienke <[EMAIL PROTECTED]> 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: > > [EMAIL PROTECTED] ~/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"
Here it is included multiple times, each pxd file gets a copy of the function definitions in the pxi files. You're probably using pxi in the wrong place here, switch it to a pxd file and use cimport. -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
