下载Eclipse IDE for C/C++ Developers(清华源)
cd进入下载文件夹 新建Eclipse解压缩位置并解压缩下载文件mkdir /opt/eclipse sudo tar -xzvf eclipse-cpp-2022-03-R-linux-gtk-aarch64.tar.gz -C /opt/eclipse/进入目录执行指令
./eclipse选择打开项目文件夹 安装CDT插件
点击help选项,搜索CDT
安装最前面两个
右键项目选择Properties >> C/C++General >> Paths and Symbols >> Libraries >> Add >> 在方框内输入m >> OK
遇到"undefined reference to symbol ‘sem_close@@GLIBC_2.2.5’"的报错右键项目选择Properties >> C/C++General >> Paths and Symbols >> Libraries >> Add >> 在方框内输入pthread >> OK
遇到"undefined reference ‘shm_open’"的报错右键项目选择Properties >> C/C++General >> Paths and Symbols >> Libraries >> Add >> 在方框内输入rt >> OK



