I have a C file and .h file which i can easily compile on a 64 bit linux platform.( Through eclipse IDE. In the compiler option, i enable -std=c99.
Now, with the same file, i want to compile it on c++ compiler.
So i add extern c to the .h files and rename the .c file to c++.
I used g++ compiler when i got the error " enable c99 compiler option.
I tried all the options given in the gcc manual but without success.
I tried all of the below
Determine the language standard. This option is currently only supported when compiling C or C++. A value for this option must be provided; possible values are
ISO C90 (same as -ansi).
ISO C90 as modified in amendment 1.
ISO C99. Note that this standard is not yet fully supported; see http://gcc.gnu.org/gcc-4.0/c99status.html for more information. The names `c9x' and `iso9899:199x' are deprecated.
Default, ISO C90 plus GNU extensions (including some C99 features).
ISO C99 plus GNU extensions. When ISO C99 is fully implemented in GCC, this will become the default. The name `gnu9x' is deprecated.
The 1998 ISO C++ standard plus amendments.
Am i missing something. ?