I'm getting an error running a Hello World Program using Eclipse. I have installed MinGW and Cygwin, I know I only need one but I have other editor that uses one but not the other. I have checked the Paths and Symbols under GCC C++ Compiler, it links to directories which contain the include files. However, I am still getting an unresolved inclusion error on the include files. I'm using Windows 7. My Code:
#include <iostream>
#include <strings>
using namespace std;
int main()
{
string yourName;
cout << "Enter your name: ";
cin >> yourName;
cout << "Hello " << yourName << endl;
return 0;
}
This is the detailed error
Description Resource Path Location Type
Symbol 'cin' could not be resolved test.c /hello_world/src line 17 Semantic Error
Symbol 'cout' could not be resolved test.c /hello_world/src line 16 Semantic Error
Symbol 'cout' could not be resolved test.c /hello_world/src line 18 Semantic Error
Symbol 'endl' could not be resolved test.c /hello_world/src line 18 Semantic Error
Type 'namespace' could not be resolved test.c /hello_world/src line 10 Semantic Error
Type 'string' could not be resolved test.c /hello_world/src line 14 Semantic Error
Any help? thanks