Relative Content

Tag Archive for ubuntuclangneovimclang++clangd

clang unable to find libstdc++, but libc++ works

OS : ubuntu22.04 target : use LSP with clangd in neovim problem : unable to find ‘iostream’ , I have generated a complile_commands.json, but it didn’t work too. $ cat compile_commands.json [ { “directory”: “/home/stoair/cPlusPlus/c++/learn/testLSP/cmake”, “command”: “/usr/bin/cc -DSOME_DEFINITION -o CMakeFiles/my_app.dir/CMakeFiles/3.22.1/CompilerIdC/CMakeCCompilerId.c.o -c /home/stoair/cPlusPlus/c++/learn/testLSP/cmake/CMakeFiles/3.22.1/CompilerIdC/CMakeCCompilerId.c”, “file”: “/home/stoair/cPlusPlus/c++/learn/testLSP/cmake/CMakeFiles/3.22.1/CompilerIdC/CMakeCCompilerId.c” }, { “directory”: “/home/stoair/cPlusPlus/c++/learn/testLSP/cmake”, “command”: “/usr/bin/c++ -DSOME_DEFINITION -std=gnu++17 -o CMakeFiles/my_app.dir/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.o -c […]