I am not linking string_s.lib. But I found out that this is happening because of using "nsCAutoString" in my code. Here are my "requires" and "extra_dso_ldopts":

REQUIRES = \

string \

xpcom \

caps \

$(NULL)



EXTRA_DSO_LDOPTS = \

$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \

$(DIST)/lib/$(LIB_PREFIX)xpcom.$(LIB_SUFFIX) \

$(DIST)/lib/$(LIB_PREFIX)xpcom_core.$(LIB_SUFFIX) \

$(NSPR_LIBS) \

$(NULL)


Regards,
Umesh.
----- Original Message ----- From: "Benjamin D. Smedberg" <[EMAIL PROTECTED]>
Newsgroups: netscape.public.mozilla.xpcom
To: <[email protected]>
Sent: Tuesday, April 19, 2005 7:27 PM
Subject: Re: Link errors while building a component



Umesh Bywar wrote:
Benjamin,
Thanks for your reply. I used $(MOZ_COMPONENTS_LIB) and it removed the errors. But now I get an error saying:


error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteACString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)

Are you still linking string_s.lib? That's the only reason I can imagine for this error to appear.


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

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

Reply via email to