【发布时间】:2020-10-11 02:09:15
【问题描述】:
我复制了 "Hello world" code from the website of the GTK project 并将其粘贴到 Vim 中,并使用正确配置了 coc-clangd 的 C 开发环境。但是,在
中显示了几个错误#include <gtk/gtk.h>
但是当我使用命令发送编译时:
gcc `pkg-config --cflags gtk+-3.0` -o hello-world-gtk hello-world-gtk.c `pkg-config --libs gtk+-3.0`
完美运行 我尝试添加
`pkg-config --cflags gtk+-3.0`
在
clangd.fallbackFlags
在:CocConfig 中,但它不起作用。
【问题讨论】:
标签: vim clang clang++ coc.nvim clangd