I set up CDT for eclipse and wrote a simple hello world C program:
#include
int main(void){
puts(\"Hello, world.\");
return 0;
}
Go to Project > Properties > C/C++ General > Preprocessor Includes > Providers and select both:
For each one of those also select the sub-entry: "Use global provider shared between projects".
Tested on Eclipse 4.8.0 in Ubuntu 16.04 with a C and a C++ hello world.
It can solve the problem. (Excuse me for bad English)