Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Program "g++ not found in path" in Eclipse Juno CDT in Ubuntu

Eclipse June CDT reports g++ not found in path, how to fix this?

like image 447
Fermat's Little Student Avatar asked Oct 08 '12 02:10

Fermat's Little Student


1 Answers

Typically, g++ will be installed when gcc (GNU Compiler Collection) is installed. First confirm that you have g++ installed.

You can check this by typing the following in a terminal: which g++. The response ought to be /usr/bin/g++.

If you find g++ installed, in eclipse go to project->properties->C/C++ Build->Discovery Options, under tools GCC C++ Compiler, put the exact path to g++ instead of g++ (if g++ alone does not work).

You will find this link useful: What is the difference between g++ and gcc?

If you still have problems, do get back with feedback.

like image 66
bobestm Avatar answered Nov 23 '22 18:11

bobestm