g++无法用 mudflap 编译 32 位

发布于 2024-12-02 02:26:40 字数 241 浏览 0 评论 0原文

我有一个项目,暂时必须在 32 位模式下编译。我使用的是 Ubuntu 11.04 -64 位,它可以与 -m32 开关配合使用。 现在我想使用 -fmudflap 选项进行调试,但我得到了一系列未定义的函数(__real_malloc、__real_calloc、__real_free 等)。 我用一个简单的 hello world 程序进行了测试,它在 64 位编译中运行良好,但在 32 位模式下运行不佳。 除了 -lmudflap 之外还有其他库可以链接吗?

I have a project that for the time being has to be compiled in 32 bit mode. I'm on Ubuntu 11.04 -64 bit and it works fine with the -m32 switch.
Now I wanted to debug with the -fmudflap option, but I get a series of undefined functions (__real_malloc, __real_calloc, __real_free, etc.).
I tested with a trivial hello world program and it works fine in a 64bit compile, but not in 32bit mode.
Is there a different library to link besides -lmudflap ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人间不值得 2024-12-09 02:26:40

听起来你需要安装 32 位版本的 mudflap。

It sounds like you need to install the 32-bit version of mudflap.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文