程序“g ++”在PATH中找不到 [英] Program "g++" not found in PATH

查看:157
本文介绍了程序“g ++”在PATH中找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中添加openCV本机C时,我有问题。首先它只是说



程序g ++在PATH中找不到
程序gcc在PATH中找不到



但是当我右键单击我的项目 - > Android工具 - >添加本机,我有更多的错误,这是错误:





这是什么控制台说:



我有不知道该怎么办?有人可以帮助我吗?



这个我使用的程序:
- 操作系统Windows 7
- Eclipse Juno
- OpenCV 2.4 .5

解决方案

如果您的IDE是eclipse,则必须重置为默认设置。你可以这样做:



1-打开Eclipse - > Windows->首选项 - > C / C ++ - > Build->设置



2-您可以在发现标签下找到两个选项:[重置]或[ 恢复默认值]CDT GCC构建合并设置[共享]或所有设置。


i have problem when add openCV native C, to my project. first it just say

"Program "g++" not found in PATH" "Program "gcc" not found in PATH"

but when I right click on my project --> Android Tools --> Add Native, I got more error, this is the error:

and this is what the console say:

I have no idea what should I do? someone can help me?

And This the program that I use: - OS Windows 7 - Eclipse Juno - OpenCV 2.4.5

解决方案

If your IDE is eclipse,you must reset to the default settings. You can do it as following:

1- open Eclipse->Windows->Preferences->C/C++->Build->Settings

2- You will find, under the 'Discovery' tab, two options: [reset] or [restore defaults] the 'CDT GCC Build in Complier Settings [Shared]' or all settings.

这篇关于程序“g ++”在PATH中找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆