如何降低gcc的版本?
发表于 : 2008-12-26 13:01
I need installing gcc3.4. But I can't do it by synaptic.
通过新立得的肯定可以装gcc-3.4软件包,以下是不同版本ubuntu中的gcc-3.4包的具体版本信息Helios 写了:I need installing gcc3.4. But I can't do it by synaptic.
如果你同时装有几个不同版本的gcc,运行时可以通过gcc的-V 参数来选择版本。软件包 gcc-3.4
* dapper (devel): The GNU C compiler
3.4.6-1ubuntu2: amd64 i386 powerpc
* feisty (devel): The GNU C compiler
3.4.6-5ubuntu1: amd64 i386 powerpc
* gutsy (devel): The GNU C compiler
3.4.6-6ubuntu2: amd64 i386 powerpc
* hardy (devel): The GNU C compiler [universe]
3.4.6-6ubuntu3: amd64 i386
* hardy-updates (devel): The GNU C compiler [universe]
3.4.6-6ubuntu5: amd64 i386
* intrepid (devel): The GNU C compiler [universe]
3.4.6-8ubuntu2: amd64 i386
* jaunty (devel): The GNU C compiler [universe]
3.4.6-8ubuntu2: amd64 i386
代码: 全选
gcc -V 3.4 hello.c
gcc -V 4.3 hello.c