[Cython] Cython 1.6 & compilation failure on MinGW?
Pauli Virtanen
pav at iki.fi
Mon Jun 11 21:12:38 CEST 2012
Hi,
We ran with Scipy to a compilation failure on MinGW in Cython code:
http://projects.scipy.org/scipy/ticket/1673
interpnd.c:10580: error: initializer element is not constant
interpnd.c:10580: error: (near initialization for
`__pyx_CyFunctionType_type.tp_call')
Can be fixed like this:
...
+static PyObject *__Pyx_PyCFunction_Call_wrap(PyObject *a, PyObject *b,
PyObject *c)
+{
+ return __Pyx_PyCFunction_Call(a, b, c);
+}
static PyTypeObject __pyx_CyFunctionType_type = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("cython_function_or_method"),
@@ -10577,7 +10581,7 @@ static PyTypeObject __pyx_CyFunctionType_type = {
0,
0,
0,
- __Pyx_PyCFunction_Call,
+ __Pyx_PyCFunction_Call_wrap,
0,
0,
0,
...
It's a bit surprising to me that you cannot use the function from the
Python headers as a static initializer on that platform...
--
Pauli Virtanen
More information about the cython-devel
mailing list