[Cython] Function signature does not match previous declaration

Johannes Wienke languitar at semipol.de
Tue Jul 8 20:26:10 CEST 2008


Am 07/08/2008 08:24 PM schrieb Dag Sverre Seljebotn:
> Johannes Wienke wrote:
>> 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)
>>> ...
[...]
>> 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"
> 
> 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.
> 

Well, I thought pxi files are used for definitions from other header
files and pxd files for definitions of your own cython code. Or is that
wrong?

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/b930ab3f/attachment.pgp 


More information about the Cython-dev mailing list