steve lu wrote:
> Hi,
> 
> I am linking my embedding app against the FIREFOX_3_0_1_RELEASE and 
> MOZ_CO_PROJECT=xulrunner code base
> and following libs.
> 
> nspr4.lib
> plc4.lib
> plds4.lib
> xul.lib
> xpcomglue.lib
> profdirserviceprovidersa_s.lib
> jpeg3250.lib
> 
> And with XPCOM_GLUE=1 defined, I am getting these link errors:
> 
> error LNK2019: unresolved external symbol "public: int __thiscall 
> nsRect::IntersectRect(struct nsRect const &,struct nsRect const &)" 
> ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z) referenced in function "public: 
> virtual void __thiscall BrowserFrame::threadUpdate(void)" 
> ([EMAIL PROTECTED]@@UAEXXZ)

There are a bunch of problems here ;-)

* it doesn't make sense to link against xul.lib and xpcomglue.lib at the 
same time. You either need to

1) use standalone linkage. Link only against xpcomglue.lib. Don't link 
against NSPR/xul.lib at all. Define XPCOM_GLUE
2) use dependent linkage. link against xul.lib, xpcom.lib, and 
xpcomglue_s.lib. Don't define XPCOM_GLUE

* You're trying to link against nsRect. I'm not sure why, but you can't use 
nsRect. It is an internal API and is not avaialable to you. You should 
figure out why you're trying to link with these symbols and remove the 
dependency.

--BDS

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to