Closed FH0 closed 1 year ago
The same problem that I also met. And Ccls only include standard header file but miss project header file while setting "-I/usr/include/c++/11" in ".ccls" file.
Finally solved by apt purge libgcc-12-dev -y
My way is "apt install gcc-12 g++-12” on Ubuntu-22.04 instead of gcc-11 before.
compile_commands.json
does not contains-I/usr/include/x86_64-linux-gnu/c++/11
and-I/usr/include/c++/11
. This error will be emitted'shared_mutex' file not found
.If I add
-I/usr/include/x86_64-linux-gnu/c++/11
and-I/usr/include/c++/11
tocompile_commands.json
, there is no error.It seems my
ccls
can't find c++ standard headers automatically. I don't know which settings I changed.ccls
was able to work properly yesterday.Headers and sources are no problem because I can use
cmake
to compile my project without an error.System information
git describe --tags --long
): 8bc3959537adae26b470c8223845555ea26693cc16.0.6 (++20230710042046+7cbf1a259152-1~exp1~20230710162136.105)
WSL2 Ubuntu-22.04
VSCode
VSCode ccls v0.1.29