P
P
Pawtin2013-01-04 13:19:58
Eclipse
Pawtin, 2013-01-04 13:19:58

Eclipse highlights errors for no apparent reason. C++?

Hello. At first, I turned to one of the large forums, but things are very tight there, and you need to code. Bottom line: there is a code written in eclipse under ubuntu, the same hello world:

#include <iostream>
using namespace std;

int main() {
  cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
  return 0;
}

Here is a list of errors that it gives me with this code:
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
Symbol 'cout' could not be resolved	Stud.cpp	/Stud/src	line 13	Semantic Error
Symbol 'endl' could not be resolved	Stud.cpp	/Stud/src	line 13	Semantic Error
Symbol 'std' could not be resolved	Stud.cpp	/Stud/src	line 10	Semantic Error

g++ is located in /usr/bin
The problem is that the code that was written earlier, including this one, compiles and runs without problems. Through the console, everything is also compiled and launched. Please tell me what is missing?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Spencer, 2013-01-04
@Spencer

The compiler explicitly indicates an error to you:

Program "g++" not found in PATH

Similar questions: stackoverflow , askubuntu .

S
Spencer, 2013-01-05
@Spencer

Pawtin, everything works without errors on Arch Linux. On Ubuntu, under a virtual machine, everything is also without errors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question