简体   繁体   中英

Program “g++” not found in PATH

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM