C++初学入门:Linux系统下Eclipse IDE的安装教程以及问题记录

Linux安装运行C++的环境时候遇到的小问题

1.解决:Gtk-Message: Failed to load module “canberra-gtk-module”
执行下面的命令:

    sudo apt-get install libcanberra-gtk-module 

2.解决: OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
窗口提示我们的错误位置
An error has occurred. See the log file
/home/warmtree/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1568135861663.log
但是用whereis eclipse并没有找到相关路径。
没有解决错误,打算卸载eclipse,重新安装一个IDE。Ubuntu系统使用如下,

   sudo apt-get remove eclipse*

哇,ls 和cd 命令是真的好用,不用自己背诵文件的路径就可以找到相应的位置了。
在不下载编译器的情况下可以直接简单运行我们的C++文件,具体参考下面的链接进行学习。
在Linux系统下编译并执行C++程序
Linux下CMakeLists.txt编译C++程序笔记

Linux系统下Eclipse的安装

哇呀呀,我就是想要在Linux下学习C++,为什么这么复杂,抓狂.jpg…继续下载我的C++IDE,
首先,在Eclipse的官网上下载Linux的压缩包。
其次,Linux下安装Eclipse
纪念用时1h25安装好的第一次打开的IDE界面

C++课堂回顾

我们对比实现了同一功能的两种代码,我们偏向选择简单的已有function。

for (int i=0;i<5;++i){
	if(v[i]==2)
		return i;
}
find(v,2);
//the best way to write a code
//is theway we do not need to write a comment.
such as find (v,2)

另外,用structure robot 的方式来定义我们的机器人。

std::vector<Robot> robots(10);
robots[0].x  ==  ...
//after.,we find the content in the robot structure

我们写代码的目的尽量达到6个月以后自己还能看懂。
最后一个TIP:
We compile little by little,Only because we read the compile message,we solve the problem.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

肥鼠路易

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值