Skip to content

[BUG]: undefining _DEBUG breaks build on VS 2022 #3459

Open
@libbooze

Description

@libbooze

Required prerequisites

Problem description

After updating to VS2022 my build was broken, I originally reported it to Microsoft, but turns out it is probably pybind bug.

You are not allowed to undef _DEBUG macro.

https://github.com/pybind/pybind11/search?q=_DEBUG

Reproducible example code

My code was broken in Debug build in VS 2022, I used 2.6, but master seems to have same undef.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions