Search code examples
mozillalinker-errorsxpcomgeckosdk

What lib in the gecko 1.9.3 SDK do I link against to use moz_xmalloc()?


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

error LNK2001: unresolved external symbol _moz_xmalloc

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

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

Edit: Now with bounty.

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


Solution

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