I set up CDT for eclipse and wrote a simple hello world C program:
#include int main(void){ puts(\"Hello, world.\"); return 0; }
Do you check if it's compile from command line? For me helps on Linux, apt install libc-dev.