Skip to content

BUG: meson.build not working with MSVC #22711

Description

@Neumann-A

Describe the issue:

The meson buildsystem numpy has doesn't work with MSVC on windows since the defines

#mesondefine NPY_SIZEOF_COMPLEX_FLOAT
#mesondefine NPY_SIZEOF_COMPLEX_DOUBLE
#mesondefine NPY_SIZEOF_COMPLEX_LONGDOUBLE

won't be defined.

Yielding the following error:
numpy\core\include\numpy/npy_common.h(430): fatal error C1189: #error: npy_cdouble definition is not compatible with C99 complex definition ! Please contact NumPy maintainers and give detailed information about your compiler and platform

Reproduce the code example:

-

Error message:

-

NumPy/Python version information:

Context for the issue:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions