Unable to go to C++ function definitions

Previously, I was able to navigate to C++ functions using Microsoft’s C++ extension. After uninstalling it, I can no longer reinstall it because it reports “Can’t install ‘ms-vscode.cpptools’ extension because it is not compatible.”

I found that the Anysphere C++ extension doesn’t seem to support function navigation at all. How can I perform C++ function navigation in Cursor now?

The Anysphere C/C++ extension relies on Clangd for the language server, which needs to be configured via a compile_commands.json (the build tool, such as CMake, can generate this file). Please see Intellisense disabled in new C++ extension and the Clangd Getting Started Guide for more on configuring Clangd.