You are using a C++ compiler on C code.