Srinivasa Raghavan wrote:
Hi All,

I compiled my component for firefox 1.5. I successfully compiled the component by defining MOZILLA_INTERNAL_API.

While linking i am getting the below error (in red). I am linking it against the following gecko libraries obtained from Gecko-SDK *msvc-1.8b1
*xpcom.lib
xpcomglue_s.lib
embed_base_s.lib
plc4.lib
plds4.lib
nspr4.lib

nsRecorderImpl.obj : error LNK2001: unresolved external symbol "public: void __thiscall nsAString_internal::Assign(unsigned short const *)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) nsValidator.obj : error LNK2001: unresolved external symbol "public: void __thiscall nsString::Trim(char const *,int,int,int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) nsPlayBackUtils.obj : error LNK2001: unresolved external symbol "public: void __ thiscall nsSubstring::Replace(unsigned int,unsigned int,class nsAString_internal const &)" ([EMAIL PROTECTED]@@QAEXIIABVnsAString_internal@@@Z)

Please read http://developer.mozilla.org/en/docs/XPCOM_Glue carefully. In this case you are trying to use "internal" linkage, but you aren't linking against xpcom_core.

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

Reply via email to