Linux Mint(Ubuntu)系统VS Code C/C++环境配置include error问题

1. 问题描述

安装完成Linux Mint后发现随系统自带了gcc,心里比较开心,以为自己不需要装了。但是在安装完VS Code之后,一直提示

#include errors detected.
Please update your includePath. Squiggles are disabled for this translation unit linux

2. 解决方案

重新通过apt安装gcc编译器,不知道什么原理,感觉大概是VS Code中对于include路径不太对导致的。
这样顺便安装了32位的编译器,毕竟很多好的学习材料还在用32位,对于新手比较友好。

sudo apt install gcc g++ build-essential gcc-multilib g++-multilib
posted @ 2023-11-30 23:08  JustInCase  阅读(735)  评论(0编辑  收藏  举报