sudo pacman -S glib- or Follow the instructions.
Replace Include path to yourselves (this differs by operating systems)
- Run
pkg-config --cflags glib-2.0to see include paths to add. - Paste given path to
.clangdfile like below: (the specific inlude paths may differ from below). - Note that what you only need to do is to replace the path AFTER the
-std=gnu17,and BEFORE[]ends.
If:
PathMatch:
- .*\.c
- .*\.h
CompileFlags:
Add: [
-xc,
-std=gnu17,
-I/usr/local/include/glib-2.0,
-I/usr/local/lib/aarch64-linux-gnu/glib-2.0/include,
-I/usr/local/include
]
Compiler: gcc
Then rename .clangd.template to .clangd.
make./webserver 8088 web/