【环境设置】Ubuntu 22.04 C++ header file not found using Vim with YouCompleteMe

[复制链接]
发表于 2025-10-31 05:20:29 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
标题形貌

Ubuntu 22.04 C++ header file not found using Vim with YouCompleteMe
给 VIM 安装设置了 YouCompleteMe 插件以后,在包罗C++尺度库代码时插件提示报错:

缘故原由分析:

https://github.com/Briancbn/ros_vim_autocomplete/issues/6
   It is due to some issue with clangd. Although the default g++ is looking for g++ -11 libraries, clangd looks for the g++ -12 libraries.
  

https://github.com/clangd/clangd/issues/1394

办理方案:

   安装 g++ -12
  1. sudo apt install g++-12
复制代码
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表