Eclipse most likely does not come with a C language compiler and needs to be installed by yourself. It is recommended to install MinGW, which is a ported version of gcc on the Windows platform, or you can also consider using Microsoft's compiler (if you want to use Microsoft's compiler, it is better to use Visual Studio directly).
After installing MinGW, configure the path of the compiler and the path of the header file in Eclipse (i.e., Include dirs in the picture). The one you see in the picture now is the JAVA header file directory, which is obviously not applicable to C.
(I have never used Eclipse)
Eclipse most likely does not come with a C language compiler and needs to be installed by yourself. It is recommended to install MinGW, which is a ported version of gcc on the Windows platform, or you can also consider using Microsoft's compiler (if you want to use Microsoft's compiler, it is better to use Visual Studio directly).
After installing MinGW, configure the path of the compiler and the path of the header file in Eclipse (i.e., Include dirs in the picture). The one you see in the picture now is the JAVA header file directory, which is obviously not applicable to C.