Hi All,

I had built mozilla-0-9 release under debug mode on win98. Now I'm trying to
make a project with winembed example's source codes from VC++6 IDE instead
of using makefile.win. However, the IDE linker complaint re-definition
errors as the followings. I tried many different setting inside IDE but the
errors don't go away. Does the embedded application have to be built using
makefile.win? The confliction between different version libraries usually
causes such problems. I am using multithreading debug option inside the IDE.
I assume that the mozilla libraries were built with mtd option because
moz_debug was defined as config.mak indicates.  Could anyone had experienced
such linkage problems gives any suggestion. Thanks in advance.

Linkage Errors lokk like:

xpcom.lib(xpcom.dll) : error LNK2005: "public: virtual __thiscall
nsLocalString::~nsLocalString(void)" (??1nsLocalString@@UAE@XZ) already
defined in WebBrowserChrome.obj
xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall
nsLocalString::nsLocalString(unsigned short const *,unsigned int)"
(??0nsLocalString@@QAE@PBGI@Z) already defined in WebBrowserChrome.obj
xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall
nsCreateInstanceByContractID::nsCreateInstanceByContractID(class
nsCreateInstanceByContractID const &)"
(??0nsCreateInstanceByContractID@@QAE@ABV0@@Z) already defined in
WebBrowserChrome.obj
xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall
nsCreateInstanceByContractID::nsCreateInstanceByContractID(char const
*,class nsISupports *,unsigned int *)"
(??0nsCreateInstanceByContractID@@QAE@PBDPAVnsISupports@@PAI@Z) already
defined in
 WebBrowserChrome.obj
xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall
nsQueryInterface::nsQueryInterface(class nsQueryInterface const &)"
(??0nsQueryInterface@@QAE@ABV0@@Z) already defined in WebBrowserChrome.obj
xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall
nsQueryInterface::nsQueryInterface(class nsISupports *,unsigned int *)"
(??0nsQueryInterface@@QAE@PAVnsISupports@@PAI@Z) already defined in
WebBrowserChrome.obj
   Creating library Debug/testMain.lib and object Debug/testMain.exp
WebBrowserChrome.obj : error LNK2001: unresolved external symbol "public:
virtual unsigned int __thiscall
nsSupportsWeakReference::GetWeakReference(class nsIWeakReference * *)"
(?GetWeakReference@nsSupportsWeakReference@@UAEIPAPAVnsIWeakReference@@@
Z)
winEmbed.obj : error LNK2001: unresolved external symbol "public: virtual
unsigned int __thiscall nsSupportsWeakReference::GetWeakReference(class
nsIWeakReference * *)"
(?GetWeakReference@nsSupportsWeakReference@@UAEIPAPAVnsIWeakReference@@@Z)
WebBrowserChrome.obj : error LNK2001: unresolved external symbol _PL_strcmp
winEmbed.obj : error LNK2001: unresolved external symbol
__imp__PR_AtomicIncrement
winEmbed.obj : error LNK2001: unresolved external symbol
__imp__PR_AtomicDecrement
winEmbed.obj : error LNK2001: unresolved external symbol _PL_strncpy




Reply via email to