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
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.
Index->Rebuild
Index->Freshen All Files