I will assume that your xpi file works correctly.

What is your code linking against? Is your code using any of the do_Get* functions? Just a guess, but do_GetService(CONTRACT_ID) boils down into a class that isnt frozen or part of the GLUE library. So, if you are only linking to the xpcom GLUE library and you are using these do_Get functions, this link error woulf be expected.

If you are linking against the copy of XPCOM library, you should have this symbol resolved. Note that you might have to have different versions of your extensions for different version of what you link against. For maximum reusable, stick to frozen interfaces and files (see nsXPCOM.h, for frozen C APIs' to the commonly used interfaces.)


Regards, Doug Turner


Arunan Bala wrote:
Hello there,

I am trying to compile a windows XPI of the WBMP decoder in bug 182621 for the wmlbrowser project, as the project owner does not have MSVC.

The project owner has done all the hard work of making it build from mozilla/extensions/wbmp and producing imgwbmp.dll (wich includes the code to register the component). He has also created an install.js that installs the file.

Unfortunately, what I build does not work. Once the XPI is installed and the browser is restarted, I get the following error:

"The procedure entry point ??1nsGetServiceByContractID@@[EMAIL PROTECTED] could not be located in the dynamic link library xpcom.dll."

I think my build options in .mozconfig are correct:

  ac_add_options --enable-extensions=wbmp
  ac_add_options --disable-debug

I am installing the XPI on the Mozilla 1.6 release.

Does anybody have any advice?

The source code is all at http://wmlbrowser.mozdev.org/.

Thanks in advance,
Arunan
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to