Is there something like extern "CPP" ?

Ian Lance Taylor iant@google.com
Tue May 27 13:49:00 GMT 2014


On Tue, May 27, 2014 at 2:39 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>
> Then your only option is to rename the files to use an extension that
> GCC recognises as C++, such as .cc, .C, .cpp etc.

You can use the -x c++ option to tell GCC to compile .c files as C++.

Ian



More information about the Gcc-help mailing list