gcc位于/usr/lib/i686-linux-gnu目录下

63 篇文章 0 订阅

使用gcc -v可以查看gcc的版本

gcc -v
Using built-in specs.
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.7-1ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.4.7 (Ubuntu/Linaro 4.4.7-1ubuntu2) 


查看/usr/lib/gcc/i686-linux-gnu下面有好多目录

drwxr-xr-x 4 root root 4096 Jan 22 14:19 4.4/
lrwxrwxrwx 1 root root    3 Apr 16  2012 4.4.6 -> 4.4/
lrwxrwxrwx 1 root root    3 Apr 16  2012 4.4.7 -> 4.4/
drwxr-xr-x 4 root root 4096 Jan 16 13:17 4.6/
lrwxrwxrwx 1 root root    3 Jan 16 11:52 4.6.3 -> 4.6/

如下,也就是安装了4.6和4.4版本的gcc编译器,


/usr/bin下面有个 gcc 和g++的链接,这里也改成4.4的。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值