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 take place when in included file I'd used
namespace std
without using it in main file or vice versa. Do check using namespace equally.