在Ubuntu 11.04上定制构建gcc 4.6.0链接错误libstdc ++ [英] custom built gcc 4.6.0 on ubuntu 11.04 links wrong libstdc++

查看:158
本文介绍了在Ubuntu 11.04上定制构建gcc 4.6.0链接错误libstdc ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我定制的gcc 4.6.0安装在我的主目录下的ubuntu 10.04上,在大多数情况下(如ldd所证明的)链接系统libstdc ++而不是定制的。更令人费解的是,使用这个新构建的gcc,自定义编译的openmpi库链接正确,这是我编译的唯一表现正常的软件。有没有人有任何解释或解决方法?

my custom built gcc 4.6.0, installed in my home directory, on ubuntu 10.04, links the system libstdc++ instead of the custom built one, most of the time (as evidenced by ldd). to be more puzzling, using this newly built gcc, custom compiled openmpi libraries are linked correctly, and this is the only software i have compiled that behaves ok. does anybody have any explanation for this, or a workaround?

谢谢

thanks

推荐答案

当你配置libstdc时,没有选项可以将libstdc静态链接到gcc中? --disable-shared如果我了解它是如何正确工作的。最糟糕的情况是使用该开关再次编译gcc,看看是否遇到问题。

Isn't there an option to statically link the libstdc into the gcc when you configure it? --disable-shared if I understand how it works correctly. Worst case make another compile of gcc with that switch and see if you run into the issue.

这篇关于在Ubuntu 11.04上定制构建gcc 4.6.0链接错误libstdc ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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