Correct me if I'm wrong, but I don't think Eclipse makes any difference
between C and C++ projects. In any case you need a C++ compiler (maybe you
forgot to install it along with the C compiler). Then instruct your
builder to use it to compile your C-code. As long as you are not mixing C
and C++ code that should do it.