今天下午在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编译也是成功的。
eclipse for c/c++ bulid后提示" g++“not found in PATH
-
- 帖子: 5
- 注册时间: 2012-05-21 20:34
- cuihao
- 帖子: 4793
- 注册时间: 2008-07-24 11:33
- 来自: 郑州
- 联系:
Re: eclipse for c/c++ bulid后提示" g++“not found in PATH
g++呢?build-esstinal不装g++吧。
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 蓝红黄蓝绿红
Site: CUIHAO.TK Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
Site: CUIHAO.TK Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
-
- 帖子: 5
- 注册时间: 2012-05-21 20:34
Re: eclipse for c/c++ bulid后提示" g++“not found in PATH
编译C还需要装g++?cuihao 写了:g++呢?build-esstinal不装g++吧。
我试了apt-get install g++,提示已经是最近版本了
- cuihao
- 帖子: 4793
- 注册时间: 2008-07-24 11:33
- 来自: 郑州
- 联系:
Re: eclipse for c/c++ bulid后提示" g++“not found in PATH
提示信息是找不到g++…… 自己看嘛。
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 蓝红黄蓝绿红
Site: CUIHAO.TK Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
Site: CUIHAO.TK Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
-
- 帖子: 5
- 注册时间: 2012-05-21 20:34
Re: eclipse for c/c++ bulid后提示" g++“not found in PATH
可是g++所存在目录/user/bin在path里cuihao 写了:提示信息是找不到g++…… 自己看嘛。