pybind11_mkdoc icon indicating copy to clipboard operation
pybind11_mkdoc copied to clipboard

fatal error: 'stdlib.h' file not found

Open matthewhagraphcore opened this issue 5 years ago • 1 comments

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.

matthewhagraphcore avatar Oct 21 '20 13:10 matthewhagraphcore

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

axsaucedo avatar Nov 02 '20 20:11 axsaucedo