eclipse error: * could not be resolved

来源:互联网 发布:网络招聘信息平台 编辑:程序博客网 时间:2024/06/06 01:11

转自:http://lihaichuan.blog.51cto.com/498079/1060466

打开Eclipse后,编辑c/c++,编译时出错:* could not be resolved ,但运行结果正确。解决办法:

在eclipse上,project->properties->C/C++ General->indexer,将大部分选项都选中,如下图所示:

假如都按照图片上的选项都选上了还是不行,则假如你的工程为C++工程,则Index unused headers as C++ files 选中,Index unused headers as C files 就别选中了,反之为C工程,则Index unused headers as C++ files不选,

  然后,退出eclipse,重新打开即可


0 2