How to?

cant-find-std-header-file-like-algorithm

Feb 19, 2024
softwares-and-toolsvscodeclangd
1 Minutes
46 Words
This article was last updated on May 27, 2026 and some of the information may no longer be applicable due to the passage of time.

If header file like this shows an error:

1
#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.

Article title:cant-find-std-header-file-like-algorithm
Article author:Julyfun
Release time:Feb 19, 2024
Copyright 2026
Sitemap