如何使用多个版本的 GCC [英] How to use multiple versions of GCC

查看:11
本文介绍了如何使用多个版本的 GCC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个需要 glibc 2.4(来自 gcc 4.1)的新应用程序.我们运行的机器有 gcc 3.4.6.我们不能升级,应用程序必须在这台机器上运行.

We have a new application that requires glibc 2.4 (from gcc 4.1). The machine we have runs on has gcc 3.4.6. We can not upgrade, and the application must be run on this machine.

我们安装了 gcc 4.1,但是在编译时它使用了 3.4.6 中的所有包含等.

We installed gcc 4.1, however, when it comes to compile time it is using all the includes, etc, from 3.4.6.

我们如何解决这个问题?

How do we get around this?

对于仅针对此应用程序使用 4.1 有什么建议吗?

Any suggestions on using 4.1 for just this application?

推荐答案

参考如何安装多个版本的GCC" 此处.

Refer "How to install multiple versions of GCC" here in the GNU GCC FAQ.

还有一份白皮书这里.

这篇关于如何使用多个版本的 GCC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆