A year ago, I had to work on a pure C project.
I had created (I think) a console project, than in the wizard I had chosen that the project is C, not C++.
Than every time I had added a file (through ctrl + shift(alt) + n) it was considered a C++ file, not C.
The way I had it fixed: choose the file in the tree -> properties -> switch the type of the file in the dialog
I don't know if this is a known and fixed problem, I will check it tonight, when I get home.
Edit:I've done a test -> created console c project and added a file, the compiler is correctly chosen, but g++ is used for linking
Here is the full log
gcc -Wall -g -Werror=return-type -Woverloaded-virtual -c /home/obfuscated/projects/tests/test_c_proj/main.c -o .obj/Debug/main.o
gcc -Wall -g -Werror=return-type -Woverloaded-virtual -c /home/obfuscated/projects/tests/test_c_proj/test.c -o .obj/Debug/test.o
g++ -o bin/Debug/test_c_proj .obj/Debug/main.o .obj/Debug/test.o
cc1: warning: command line option "-Woverloaded-virtual" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-Woverloaded-virtual" is valid for C++/ObjC++ but not for C
Output size is 10,04 KB
Is that correct? I'm on linux 64bit gcc 4.3.3.
Maybe the GCC compiler should be split in two GCC C and GCC C++ compiler...