how to know the version of c compiler
i want to know the version of c compiler that i am using i.e. whether it is c89 or c99....what is the command to know this????i am using fedora18
i want to know the version of c compiler that i am using i.e. whether it is c89 or c99....what is the command to know this????i am using fedora18
From the man page:
man gcc
....
gnu89
GNU dialect of ISO C90 (including some C99 features). This is the default for C code.
gnu99
gnu9x
GNU dialect of ISO C99. When ISO C99 is fully implemented in GCC, this will become the default. The name gnu9x is deprecated.
gnu11
gnu1x
GNU dialect of ISO C11. Support is incomplete and experimental. The name gnu1x is deprecated.
c++98
The 1998 ISO C++ standard plus amendments. Same as -ansi for C++ code.
gnu++98
GNU dialect of -std=c++98. This is the default for C++ code.
....
You really should read the man page. It has most of the answers.
GCC (the GNU compiler collection) on Fedora has both C89 and C99 modes available. You can specify which one you want to use during compilation by running either /usr/bin/c89 or /usr/bin/c99.
Asked: 2013-04-04 14:37:11 -0600
Seen: 1,096 times
Last updated: Apr 05 '13
how to install c library files on fedora 12? please help. [closed]
C Editor with Automatic Listing
How to install g++-4.9 on Fedora 23
working of fedora 16 64 bit in 32 bit system
assembly compiler for Fedora 23
How does Linux handle my programs?
Is there a way to use an old version of GCC as an option?
Fedora 24: How do I install and change the default gcc compiler version?
Create a Legacy Run Environment (Kernel, Compiler, etc) for CUDA