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
You can compile and run the source code also by Right Click On Project>Run C/C++ Code Analysis. This will solve your problem.