LSP reports "'stdio.h' file not found' #551
Unanswered
Littlechay
asked this question in
Q&A
Replies: 1 comment
-
clangd usually needs a "compile_commands.json" file or similar to provide context: https://clangd.llvm.org/design/compile-commands. You shouldn't have to pass any flags or configuration options to clangd. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Me again with another silly questions....
I have installed the lsp module (I installed all the modules using the link on the textadept page), and configured it for ansi_C like this:
-- lsp stuff
But I get this error and further down more warning such as printf undeclared library function etc..
So my question is: How do I tell the language server where the standard header files are located? They are in /usr/include .
Edit: I should also add that although math.h does not show a warning, as can be seen in the screenshot, that in the code I get warnings for math functions stating that math.h is not included.
The project compiles and runs just fine.
Beta Was this translation helpful? Give feedback.
All reactions