从商店安装的Eclipse-cpp 编写c语言一直报错 找不到g++
Tofloor
poster avatar
haimi
deepin
2018-01-07 07:00
Author
Program "g++" not found in PATH,但是系统安装有gcc啊,怎么不能用
Reply Favorite View the author
All Replies
avatar
RucLinux
deepin
2018-01-07 08:45
#1
安装gc++了吗?
百度这行错误提示有很多解决方法
Reply View the author
avatar
comzhong
deepin
2018-01-07 09:33
#2
gcc g++不是一个东西
Reply View the author
avatar
187******12
deepin
2018-01-07 13:29
#3
好像裝build-essential就可以了
Reply View the author
avatar
wtz
deepin
2018-01-07 14:36
#4
Eclipse-cpp默认不包含g++,需要手动安装g++:
  1. sudo apt install g++
Copy the Code

codeblocks也有这个问题。对于新手来说不算很友好。建议应用商店能在安装IDE的时候自动匹配相应的编译器,这个可能需要对deb包的依赖做单独处理(比如将g++作为eclipse-cpp的recommands)。
Reply View the author