Skip to content

Cython files don't compile on Mingw-w64 64-bit #3405

@Keithcat1

Description

@Keithcat1

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*))
};
^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions