how to

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

Feb 19, 2024
softwares-and-toolsvscodeclangd
1 Minutes
46 Words

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 2025
Sitemap