eclipse for c/c++ bulid后提示" g++“not found in PATH

软件和网站开发以及相关技术探讨
回复
longju1989
帖子: 5
注册时间: 2012-05-21 20:34

eclipse for c/c++ bulid后提示" g++“not found in PATH

#1

帖子 longju1989 » 2013-01-13 20:17

今天下午在eclipse官网上下了个c/c++版本到eclipse,然后装上后编译个hello world测试,就出现了以下的错误。
Description Resource Path Location Type
Program "g++" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Builtin Compiler Settings] options C/C++ Scanner Discovery Problem

apt-get build-esstinal是成功的,在命令行下直接用gcc编译也是成功的。
头像
cuihao
帖子: 4793
注册时间: 2008-07-24 11:33
来自: 郑州
联系:

Re: eclipse for c/c++ bulid后提示" g++“not found in PATH

#2

帖子 cuihao » 2013-01-13 21:01

g++呢?build-esstinal不装g++吧。
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
longju1989
帖子: 5
注册时间: 2012-05-21 20:34

Re: eclipse for c/c++ bulid后提示" g++“not found in PATH

#3

帖子 longju1989 » 2013-01-13 21:03

cuihao 写了:g++呢?build-esstinal不装g++吧。
编译C还需要装g++?
我试了apt-get install g++,提示已经是最近版本了
头像
cuihao
帖子: 4793
注册时间: 2008-07-24 11:33
来自: 郑州
联系:

Re: eclipse for c/c++ bulid后提示" g++“not found in PATH

#4

帖子 cuihao » 2013-01-13 21:09

提示信息是找不到g++…… 自己看嘛。
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
longju1989
帖子: 5
注册时间: 2012-05-21 20:34

Re: eclipse for c/c++ bulid后提示" g++“not found in PATH

#5

帖子 longju1989 » 2013-01-13 21:27

cuihao 写了:提示信息是找不到g++…… 自己看嘛。
可是g++所存在目录/user/bin在path里
回复