Reputation: 11
My code is...
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!\n";
}
The errors i am getting are...
Description Resource Path Location Type
Symbol 'std' could not be resolved main.cpp /First/src line 3 Semantic Error
Program "g++" not found in PATH First [Discovery Options] page in project properties C/C++ Problem
Program "gcc" not found in PATH First [Discovery Options] page in project properties C/C++ Problem
Symbol 'cout' could not be resolved main.cpp /First/src line 8 Semantic Error
Program "make" not found in PATH First C/C++ Problem
Does anybody know whats wrong? This is my first time trying C++ and i am using eclipse-cpp-kepler-SR1-win32-x86_64
Upvotes: 0
Views: 1446
Reputation: 1
In my case on osx, the errors on the basic hello world project were caused by something silly. everything was installed but i had no clue that the gcc expected me to read and agree to a License. go to terminal and type $ gcc. i was then prompted with the need to deal with the license agreement. once that was done, eclipse build the hello world project without problem. hope this helps others ...
Upvotes: 0
Reputation: 108
I can't comment yet but based on the error messages it seems that the compiler has not been setup properly or Eclipse cannot find it.
http://www.eclipse.org/forums/index.php/t/238347/
Make sure Eclipse can find your compiler.
You may have to setup some environment variables.
http://www.computerhope.com/issues/ch000549.htm
Also try following the instruction in the error message.
I hope that helps.
Upvotes: 3