我有文档中的 hello world 程序gtkmm
。我可以使用以下方法编译程序而不会出现任何问题:
g++ -o example main.cc example.cc `pkg-config "gtkmm-4.0" --cflags --libs`
但是一进入neovim,coc-clangd就报错了:
In included file: no template named 'is_base_of_v' in namespace 'std'; did you mean 'is_base_of'?
这发生在#include "gtkmm/application.h"
:CocInfo
vim version: NVIM v0.5.0
node version: v14.15.5
coc.nvim version: 0.0.80-37132cfc36
coc.nvim directory: /home/blah/.config/nvim/plugged/coc.nvim
term: tmux
platform: linux
叮当是12.0.0
PS:我确实有一个 compile_commands.json 文件,使用intercept-build
实用程序生成