Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matthewhagraphcore opened this issue Oct 21, 2020 · 1 comment
Open

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

matthewhagraphcore opened this issue Oct 21, 2020 · 1 comment

Comments

@matthewhagraphcore
Copy link

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.

@axsaucedo
Copy link

axsaucedo commented Nov 2, 2020

Seems I ran into the same issue, which also reported in #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants