我可以链接到gecko 1.9.3 SDK中的哪个库以使用moz_xmalloc()? [英] What lib in the gecko 1.9.3 SDK do I link against to use moz_xmalloc()?

查看:126
本文介绍了我可以链接到gecko 1.9.3 SDK中的哪个库以使用moz_xmalloc()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我的XPCOM扩展与1.9.3a3pre SDK链接起来,我得到以下信息:

I'm trying to link my XPCOM extension against the 1.9.3a3pre SDK and I get the following:

错误LNK2001:无法解析的外部符号_moz_xmalloc

error LNK2001: unresolved external symbol _moz_xmalloc

那么,我需要链接到哪个库? 文档没有说.

So, what lib do I need to link to? The documentation doesn't say.

目前在Windows上,但我也需要它在Mac和Linux(32位/64位)上进行构建.

This is on Windows right now, but I'll need it to build on Mac and Linux (32bit/64bit) as well.

现在有赏金.

更新:原来FF3.7被取消了.因此,直到FF4,我都不必为此担心.

Update: Turns out FF3.7 was cancelled. So I don't have to worry about this until FF4.

推荐答案

在C ++ Preprocessor Definition属性中定义'XPCOM_GLUE'.它将修复链接错误.

define 'XPCOM_GLUE' in C++ Preprocessor Definition property. It will fix the linking error.

这篇关于我可以链接到gecko 1.9.3 SDK中的哪个库以使用moz_xmalloc()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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