Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9216049
  • 博文数量: 187
  • 博客积分: 7517
  • 博客等级: 少将
  • 技术积分: 1981
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-20 18:51
文章分类

全部博文(187)

文章存档

2015年(3)

2013年(4)

2012年(20)

2011年(2)

2010年(96)

2009年(14)

2008年(47)

2007年(1)

我的朋友

分类: LINUX

2010-03-22 14:53:53

如何查看当前 gcc 的版本:

1. gcc -v(Display the programs invoked by the compiler)

[root@localhost /]# gcc -v
Reading specs from /usr/i386-glibc-2.1-linux/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

2. rpm -qa|grep gcc


[root@localhost /]# rpm -qa|grep gcc
gcc-3.2.2-5
gcc-c++-3.2.2-5
libgcc-3.2.2-5
compat-gcc-7.3-2.96.118
gcc-g77-3.2.2-5
gcc-java-3.2.2-5
gcc-gnat-3.2.2-5
compat-gcc-c++-7.3-2.96.118

3. gcc -dumpversion (Display the version of the compiler)

[root@localhost /]# gcc -dumpversion
egcs-2.91.66

阅读(550) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~