Benjamin Smedberg wrote:
[EMAIL PROTECTED] wrote:
Yury Kovalchuk wrote:
Resolved this thing... It was my fault in my project file i mixed up 1.0.3 headers and 1.5 headers. really feel stupid now :)

Now I'm faced with another problem:
WHen I link with 1.0.3 sdk, firefox 1.5b2 cannot load my component on the other hand when component is linked with 1.5 sdk - firefox 1.5 loads it just fine.

What could be the problem? Are theese versions incompatible?

Thank you?

How did you get it resolved?

I have two unresolved symbols using Firefox 1.5b2 lib and headers.
nsMemory::Free and NS_NewGenericModule2.

What are you linking against? nsMemory::Free should inline directly to NS_Free, and NS_NewGenericModule2 should be obtained from the xpcom glue (probably xpcomglue_s.lib in your case).

--BDS
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom


I link against these files from the FF1.5b2 build ---- xpcomglue_s.lib   xpcomglue.lib   nspr4.lib

The error msg I got in VS.Net is:

xpcomglue_s.lib(nsComponentManagerUtils.obj) : warning LNK4217: locally defined symbol _NS_GetServiceManager imported in function "unsigned int __cdecl CallGetService(struct nsID const &,struct nsID const &,void * *)" (?CallGetService@@YAIABUnsID@@[EMAIL PROTECTED])

xpcomglue_s.lib(nsComponentManagerUtils.obj) : warning LNK4217: locally defined symbol _NS_GetComponentManager imported in function "unsigned int __cdecl CallCreateInstance(struct nsID const &,class nsISupports *,struct nsID const &,void * *)" (?CallCreateInstance@@YAIABUnsID@@PAVnsISupports@@[EMAIL PROTECTED])

xxx.obj : error LNK2019: unresolved external symbol "public: static void __cdecl nsMemory::Free(void *)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function "unsigned int __stdcall MCRegistration(class nsIComponentManager *,class nsIFile *,char const *,char const *,struct nsModuleComponentInfo const *)" (?MCRegistration@@YGIPAVnsIComponentManager@@PAVnsIFile@@PBD2PBUnsModuleComponentInfo@@@Z)

xxx.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl NS_NewGenericModule2(struct nsModuleInfo *,class nsIModule * *)" (?NS_NewGenericModule2@@YAIPAUnsModuleInfo@@PAPAVnsIModule@@@Z) referenced in function _NSGetModule
.\Debug/xxx.dll : fatal error LNK1120: 2 unresolved externals


Steve

Reply via email to