Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels