Skip to content

fatal error: 'stdlib.h' file not found #2

@matthewhagraphcore

Description

@matthewhagraphcore

Hi,

When trying to use the pybind11_mkdoc tool on the example in the README,it seems to work fine. However, if I add a standard include:

#include <string>

I get the error:

/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/cstdlib:75:15: fatal error: 'stdlib.h' file not found

Command: python -m pybind11_mkdoc example.hpp -o test.hpp appending -isystem /usr/include does not help.

I have this file in my /usr/include directory and the pybind11_mkdoc seems to be adding it to the include directories.

I have no other issues with clang / llvm. Any ideas?

System details:

Ubuntu 18.04.4 LTS

LLVM 9.0.0

clang version 9.0.0-2~ubuntu18.04.2 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

python-clang 11.0

Thanks, Matt.

Metadata

Metadata

Assignees

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