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..
![image](https://private-user-images.githubusercontent.com/21964368/352687280-6cd20327-7445-4982-8c75-2748a406e1ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTAzOTYsIm5iZiI6MTczOTQ1MDA5NiwicGF0aCI6Ii8yMTk2NDM2OC8zNTI2ODcyODAtNmNkMjAzMjctNzQ0NS00OTgyLThjNzUtMjc0OGE0MDZlMWNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEyMzQ1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjMzdkMTY5NTVjMGQyZjAzMmYwMGYzMjU1YjMyNzFiZGI4NmYyNzU4MTA3NTVkNGI5ZWE4NmRlODJmMjc0MGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tuHRfeQ5WSaU-LQS2ta3bNZ6acdPx2Ajiz15a3AA6RE)
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