eclipse error: * could not be resolved

朱雀 2022-05-13 06:06 297阅读 0赞

转自: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不选,121021246.png

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

发表评论

表情:
评论列表 (有 0 条评论,297人围观)

还没有评论,来说两句吧...

相关阅读