Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I know that which version of gcc compiler I am using?

Tags:

version

gcc

In java, there is command line option javac -version to know the version that is installed on computer. I am curious to know about is there any way exist to know the version of gcc or any command line option that can help me?

Remember I am not asking about language standards like C99, C11, C++11 etc. I am asking about compiler version like gcc 4.9.2 etc.

like image 696
Destructor Avatar asked Oct 21 '25 11:10

Destructor


1 Answers

In order to get that information you should type the commands: gcc -v or gcc --version. For more details see the man pages for gcc http://linux.die.net/man/1/gcc

like image 86
cristid9 Avatar answered Oct 23 '25 08:10

cristid9



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!