Note that there are some explanatory texts on larger screens.

plurals
  1. POFirefox 26 C++ Addon XPCOM dependency error
    text
    copied!<p>I prepare my C++ Firefox addon for the next Firefox - v.26 - but I can't build it with xulrunner-sdk 26 beta (it is OK with the previous major versions). Just as before, I link it against xpcomglue_staticruntime_s.lib, but I've got these errors:</p> <ul> <li><p>xpcomglue_staticruntime_s.lib(nsStringAPI.obj) : error LNK2019: unresolved external symbol _<em>imp</em>_PR_sscanf referenced in function "public: __int64 __thiscall nsAString::ToInteger64(enum tag_nsresult *,unsigned int)const " (?ToInteger64@nsAString@@QBE_JPAW4tag_nsresult@@I@Z)</p></li> <li><p>xpcomglue_staticruntime_s.lib(nsCRTGlue.obj) : error LNK2019: unresolved external symbol _<em>imp</em>_PR_Now referenced in function "void __cdecl NS_MakeRandomString(char *,int)" (?NS_MakeRandomString@@YAXPADH@Z)</p></li> </ul> <p>I added all other libraries from this SDK (not only xul.lib and mozalloc.lib but also crmf.lib etc.), it doesn't help. Neither works using xpcomglue_s.lib or xpcomglue_s_nomozalloc.lib instead of xpcomglue_staticruntime_s.lib</p> <p>Now I can build the addon successfuly only if I use xpcomglue.lib or xpcomglue_staticruntime.lib, but then it doesn't work correctly with Firefox - NS_GetServiceManager() fails. There are some linker warnings with these builds.</p> <p>What settings I need to make it linking against xpcomglue_staticruntime_s.lib or working in other cases?</p> <p>Platform: MS Windows, MS Visual Studio 2010.</p> <p>Two details more:</p> <ul> <li>In previous sdk versions there was nss3.lib and I added it, now it is missing</li> <li>I use the default mozilla-config.h and xpcom-config.h, plus MOZILLA_STRICT_API macro</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload