Eclipse c++ Type could not be resolved error even though build is successful

前端 未结 5 2145
囚心锁ツ
囚心锁ツ 2020-12-13 19:08

I have mixed C++ / Java project in Eclipse. I\'ve setup a build.mk file and Eclipse builds project successfully when all files in editor are closed. When I open a .h or a .c

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 20:03

    I had the same problem. It could be resolved by flushing the Eclipse indexer.

    I used the projects context menu and selected Index->Rebuild and Index->Freshen All Files. The last removed the error messages.

提交回复
热议问题