I can compile Cython generated code on the 32-bit version of Mingw, but on the 64-bit version, I get these errors:
C:\py>gcc -m64 pathfinder.cpp
pathfinder.cpp:215:41: warning: division by zero [-Wdiv-by-zero]
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*))
};
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pathfinder.cpp:215:79: error: division by zero is not a constant expression
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*))
};
^
pathfinder.cpp:215:41: error: '(1 / 0)' is not a constant expression
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*))
};
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pathfinder.cpp:215:79: error: enumerator value for '__pyx_check_sizeof_voidp' is
not an integer constant
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*))
};
^
I can compile Cython generated code on the 32-bit version of Mingw, but on the 64-bit version, I get these errors:
C:\py>gcc -m64 pathfinder.cpp
pathfinder.cpp:215:41: warning: division by zero [-Wdiv-by-zero]
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*))
};
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pathfinder.cpp:215:79: error: division by zero is not a constant expression
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*))
};
^
pathfinder.cpp:215:41: error: '(1 / 0)' is not a constant expression
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*))
};
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pathfinder.cpp:215:79: error: enumerator value for '__pyx_check_sizeof_voidp' is
not an integer constant
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*))
};
^