Hi! Cython 0.10.3 is generating some C-code that has the wrong ordering. Not sure exactly what part of my code is doing this, but it generates the C code from the Cython code without any warnings. It's a 500 line Cython project, and after some recent (big) changes I get an error when building.
It seems that the "constructor" function for the SessionStruct class (which Album inherits from, both are defined in Cython as cdef classes) is referenced in the Album "constructor" function, but is declared and defined AFTER the Album "constructor" function. (I use "constructor" because I'm not sure if that's the correct term for the function) The implicit declaration does not match the explicit one, and it fails. This is the implicit declaration warning: src/spytify.c: In function ‘__pyx_tp_new_7spytify_Album’: src/spytify.c:4024: warning: implicit declaration of function ‘__pyx_tp_new_7spytify_SessionStruct’ This is the conflicting types warning for the explictio declaration: src/spytify.c:5128: error: conflicting types for ‘__pyx_tp_new_7spytify_SessionStruct’ src/spytify.c:4024: error: previous implicit declaration of ‘__pyx_tp_new_7spytify_SessionStruct’ was here Any idea why Cython doesn't order it correctly? If I move the new and dealloc functions (in the .c file) to right before the new function for Album, it compiles fine. :-) -- Kindest regards, Jørgen P. Tjernø. _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
