Hi there,
I am relatively new to C#, and I am running Codeblocks 16.01 on Windows 10 build 15063 (the latest).
The complier I am currently using is Digital Mars D version 2.074.0.
WHEN I try to run a simple program (like Hello World), the codes won't build w/ build log returned as follow:
-------------- Build file: "no target" in "no project" (compiler: unknown)---------------
[ 50.0%] dmd.exe -IC:\dmd\src\phobos -IF:\codeblocks\DMD\D\dmd2\windows\src\phobos -c "C:\Users\Haotian\Desktop\C#\Hello world.c" -of"C:\Users\Haotian\Desktop\C#\Hello world.obj"
Error: unrecognized file extension c
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Just a little confused, I have already set my compiler to DMD using the auto detect function (as it does detect the compiler itself and points to the directory containing DMD), whereas it seems that the codes are still not building.
I have also tried re-downloading and re-installing codeblocks and the compiler, but neither of them worked out for me
Many thanks to any helping