vscode-clangd
vscode-clangd copied to clipboard
Can’t find includes my header file
I am new to C++, I used clangd in vscode for the first time, but I encountered some troubles, mainly because of some problems with file references. I read "troubleshooting", and it suggested that compile_commands.json needs to be set, but I don't know how to set it? ask for help
Logs


System information
Homebrew clang version 14.0.6 Target: arm64-apple-darwin21.5.0 Thread model: posix InstalledDir: /opt/homebrew/opt/llvm/bin
compile_commands.json is a file that you need to create. See https://clangd.llvm.org/installation#project-setup for some common ways to do it.