简体   繁体   中英

Eclipse neon C program not getting build g++ and gcc not found in path error

Today I have installed for c and c++ development in windows 7 64 bit os. when creating the project getting error in console .

Eclipse neon version : Eclipse IDE for C/C++ Developers Version: Neon.2 Release (4.6.2) Build id: 20161208-0600

When opening eclipse getting below error in the IDE 1) "g++" not found in PATH
2) gcc not found in Path.

I have installed MinGW GCC compiler still getting error in Eclipse neon and Luna.

More attached a video screencast.

http://recordit.co/E1lFakauTK

After many hours looking for the problem I solved it by adding a variable:

  1. Open Window-->Preferences-->C/C++-->Build-->Environment
  2. Click on Add
  3. Write in Variable: PATH
  4. Write in Value: C:{your MinGW Directory}\\bin

Hope it helps.

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