Alex Rivera | Logout

Eclipse C++: Symbol 'std' could not be resolved

Asked 2012-08-05T06:54:07.623
38

I am getting this error in the TestExecute.cpp -

"Symbol 'std' could not be resolved"

CODE

#include <iostream>
using namespace std;

I just created a executable project in Eclipse (in Windows 7) as shown below. It seems like I am selecting a toolchain that is not supported. Is it so? I have installed Cygwin and it is available in preferences.

EDIT: Based on @RobertoWilko comment, removing the line "using namespace std; " removed the error. But the binary is not created. "Launch Failed. Binary not found". How to correct this?

enter image description here

enter image description here

enter image description here

enter image description here

Edit
Report

1 Answer

7

You can rewrite the code likes this:

#include<iostream>
#include<stdio.h>

using namespace std;
answered 2012-08-05T11:20:26.087

Your Answer