ecplise输出Description Resource Path Location Type Symbol 'cout' could not be resolved解决方法

今天用ecplise建立了一个c++文件出现了上面的错误,找了一下问题如图

ecplise输出Description	Resource	Path	Location	Type Symbol 'cout' could not be resolved解决方法

2和3中都是c++文件,2中的没有出现编译上的错误,可以看到2和3的区别是少了一个binaries文件

可以通过以下操作使3中出现binaries文件如图

ecplise输出Description	Resource	Path	Location	Type Symbol 'cout' could not be resolved解决方法

ecplise输出Description	Resource	Path	Location	Type Symbol 'cout' could not be resolved解决方法

ecplise输出Description	Resource	Path	Location	Type Symbol 'cout' could not be resolved解决方法

先点击close project 之后点击open project 然后点击build project按键之后我们可以发现binaries文件出来了

ecplise输出Description	Resource	Path	Location	Type Symbol 'cout' could not be resolved解决方法

编译成功没有错误了。