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: 'stddef.h' file not found #199

Open
faveoled opened this issue Jan 19, 2023 · 0 comments
Open

fatal error: 'stddef.h' file not found #199

faveoled opened this issue Jan 19, 2023 · 0 comments

Comments

@faveoled
Copy link

faveoled commented Jan 19, 2023

Hi. I'm not very proficient with C++ and I get the mentioned error when trying to generate bindings. I've tried several solutions found on the Internet but none worked. Running Ubuntu 22.04. Hope someone can help on solutions to the problem.

user@hp-laptop:~/Downloads/scalalibgen$ apt-file search stddef.h | grep clang
castxml: /usr/share/castxml/clang/include/stddef.h
libclang-common-11-dev: /usr/lib/llvm-11/lib/clang/11.1.0/include/stddef.h
libclang-common-12-dev: /usr/lib/llvm-12/lib/clang/12.0.1/include/stddef.h
libclang-common-13-dev: /usr/lib/llvm-13/lib/clang/13.0.1/include/stddef.h
libclang-common-14-dev: /usr/lib/llvm-14/lib/clang/14.0.0/include/stddef.h
user@hp-laptop:~/Downloads/scalalibgen$ clang --version
Ubuntu clang version 14.0.0-1ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
user@hp-laptop:~/Downloads/scalalibgen$ scala-native-bindgen --name xlib /usr/include/X11/Xlib.h --
In file included from /usr/include/X11/Xlib.h:38:
/usr/include/x86_64-linux-gnu/sys/types.h:144:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
1 error generated.
Error while processing /usr/include/X11/Xlib.h.
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

1 participant