-
Notifications
You must be signed in to change notification settings - Fork 93
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
'iostream' file not foundclang(pp_file_not_found) #425
Comments
Likely clangd/clangd#1394, please see workarounds in this comment. |
Not working. I have gcc 11.3.0 installed on Ubuntu 22.04 so the first 2 options won't apply. This is my configuration ( CompileFlags:
Add: --include-dir=/usr/include/c++/11 After I setup the above config, vscode stops complaining my |
Plus, it has no problems finding the C standard libs, but it cannot identify C++ libs |
Sorry, but the query driver way works. Thanks for the comment. But I was wondering how can I make this setting universal? I currently set the vscode config for clangd but I would like other code editor to be aware of the |
Currently, The reasons for this are security-related; there's some relevant discussion at clangd/clangd#539. |
After I upgrade my system (ubuntu 22.04), it seems clangd cannot find standard libraries like
iostream
.Minimum code:
cmake file:
commands:
This will produce the
compile_commands.json
:The compilation is correct, but vscode complains with red wavelines and the message above
The text was updated successfully, but these errors were encountered: