当前位置: 首页 > article >正文

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

问题描述

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

sudo apt install g++-12

http://www.kler.cn/a/547724.html

相关文章:

  • Redis 设置密码无效问题解决
  • c++--变量内存分配
  • 【开源项目】Excalidraw手绘风格白板(保姆级)教程
  • 如何学BI大数据
  • Html、Markdown的信息提取
  • LabVIEW 中 dotnet.llb 库功能
  • 05-服务保护和分布式事务(Sentinel、Seata)
  • Linux文件管理:硬链接与软链接
  • 图论 - 一些经典小算法思想(无题目例子)
  • 《open3d qt 网格泊松采样成点云》
  • 关于Dest1ny:我的创作纪念日
  • JavaScript原型和原型链
  • 代码随想录二刷|动态规划3
  • 鸿蒙Harmony-应用状态-AppStorage详细介绍
  • 蓝桥杯---排序数组(leetcode第912题)
  • 神经网络常见激活函数 12-Swish函数
  • 游戏引擎学习第104天
  • Nacos 详细介绍:微服务架构中的服务发现与配置管理利器
  • 用大模型学大模型04-机器学习建模过程
  • 基于单片机的常规肺活量SVC简单计算