You obviously have a c++ project.
C::B decides between c and c++ by the file-ending (.c for c and .cpp for c++).
And you have most likely a really old compiler, because it seems not to know "-Wfatal-errors".
Use a more recent one, or uncheck the appropriate boxes in the build-options.