Use C++ compiler, not C compiler, for determining the version.