cant-find-std-header-file-like-algorithm
Published at 2024-02-19
Last update over 365 days ago
Licensed under CC BY-NC-SA 4.0
softwares-and-tools
vscode
clangd
If header file like this shows an error:
#include <algorithm>
Then check your clangd output in vscode panel. Clangd could have found a wrong compile_commands.json
. In fact, clangd always trys to find a build/compile_commands.json
from parent folder.
solution
You can copy a build/compile_commands.json
into current workspace from some other directories.