Thanks a lot Benjamin. My component works. I have compiled xulrunner 1.8.0.4 source and got unfrozen headers/libraries.
Regards, Ransion. --- Benjamin Smedberg <[EMAIL PROTECTED]> wrote: > ransion paul wrote: > > Thanks BDS. I am using MOZILLA_INTERNAL_API > linkage and got below linker error while creating my > component using sdk 1.8.0.4. I have linked against > xpcom.lib and xpcom_core.lib. > > > > nsTestModule.obj : error LNK2019: unresolved > external symbol "__declspec(dllimport > > ) unsigned int __cdecl NS_NewGenericModule2(struct > nsModuleInfo const *,class ns > > IModule * *)" > (__imp_?NS_NewGenericModule2@@YAIPBUnsModuleInfo@@PAPAVnsIModule@@ > > @Z) referenced in function _NSGetModule > > What are your linking flags? If you're using > internal linkage, you're going > to have to link against xul.lib (the import library > for xul.dll). But > remember, the SDK only contains the frozen > headers/libraries, so the SDK > isn't really going to help you use internal linkage. > > --BDS > _______________________________________________ > dev-tech-xpcom mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-xpcom > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
