g++无法用 mudflap 编译 32 位
我有一个项目,暂时必须在 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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你需要安装 32 位版本的 mudflap。
It sounds like you need to install the 32-bit version of mudflap.