title: Building XPCOM XULRunner 2.0 or newer versions
body: <p>Followup to the following Questions: </p>
  
  <p><a href="https://stackoverflow.com/questions/2459033/what-lib-in-the-gecko-1-9-3-sdk-do-i-link-against-to-use-moz-xmalloc">What lib in the gecko 1.9.3 SDK do I link against to use moz_xmalloc()?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/8532850/nsigenericfactory-h-is-missing-in-the-above-version-of-xulrunner-2-0-en-us-win32">nsIGenericFactory.h is missing in the above version of xulrunner-2.0.en-US.win32.sdk</a></p>
  
  <p>I am able to build XPCOM with XULRunner 1.9.2 successfully.</p>
  
  <p>When I try to migrate to the next versions of XULRunner (> 1.9), I am facing lot of difficulties. I am getting Link errors like the following</p>
  
  <pre><code>xpcomglue_s.lib(GenericFactory.obj) : error LNK2001: unresolved external symbol __imp__moz_xmalloc
  xpcomglue_s.lib(nsCRTGlue.obj) : error LNK2001: unresolved external symbol __imp__moz_xmalloc
  xpcomglue_s.lib(nsTArray.obj) : error LNK2001: unresolved external symbol __imp__moz_xmalloc
  xpcomglue_s.lib(nsComponentManagerUtils.obj) : error LNK2001: unresolved external symbol __imp__moz_xmalloc
  xpcomglue_s.lib(GenericModule.obj) : error LNK2001: unresolved external symbol __imp__moz_xmalloc
  xpcomglue_s.lib(nsISupportsImpl.obj) : error LNK2001: unresolved external symbol __imp__moz_xmalloc
  </code></pre>
  
  <p>I am not getting clear steps for migration to support for the current FireFox.</p>
  
  <p>I tried the suggestions mentioned in the links. I could not resolve it. Please help me to resolve this issue</p>