Skip to content

[BUG]: detail\typeid.h(16,14): fatal error : 'cxxabi.h' file not found #6129

Description

@Boris-Rasin

Required prerequisites

What version (or hash if on master) of pybind11 are you using?

3.1.0

Problem description

Compile error when using clang in Visual Studio (clang-cl):

pybind11\include\pybind11\detail\typeid.h(16,14): fatal error : 'cxxabi.h' file not found

clang-cl defines __GNUG__, but has no <cxxabi.h> header.

Possible fix:

#if __has_include(<cxxabi.h>)
#  include <cxxabi.h>
#endif

Reproducible example code


Is this a regression? Put the last known working version here if it is.

Not a regression

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNew bug, unverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions