Dear all,

I am using MSVC++ 6.0 with sp6. Please help me with the followng
error.  It seems like this is a common problem but not really well
documented.
I have the following linking error when I include the lib from
gecko-sdk:

Linking...
cezilla.obj : error LNK2005: _NSGetModule already defined in
weblock.obj
xpcomglue.lib(nsMemory.obj) : error LNK2005: "public: static void *
__cdecl nsMemory::Alloc(unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
already defined in xpcomglue_s.lib(nsMemory.obj)
xpcomglue.lib(nsMemory.obj) : error LNK2005: "public: static void *
__cdecl nsMemory::Realloc(void *,unsigned int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) already defined in
xpcomglue_s.lib(nsMemory.obj)
xpcomglue.lib(nsMemory.obj) : error LNK2005: "public: static void
__cdecl nsMemory::Free(void *)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) already
defined in xpcomglue_s.lib(nsMemory.obj)
xpcomglue.lib(nsMemory.obj) : error LNK2005: "public: static unsigned
int __cdecl nsMemory::HeapMinimize(int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) already defined in
xpcomglue_s.lib(nsMemory.obj)
xpcomglue.lib(nsMemory.obj) : error LNK2005: "public: static void *
__cdecl nsMemory::Clone(void const *,unsigned int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) already defined in
xpcomglue_s.lib(nsMemory.obj)
xpcomglue.lib(nsMemory.obj) : error LNK2005: "public: static class
nsIMemory * __cdecl nsMemory::GetGlobalMemoryService(void)"
([EMAIL PROTECTED]@@SAPAVnsIMemory@@XZ) already defined
in xpcomglue_s.lib(nsMemory.obj)
cezilla.obj : warning LNK4006: _NSGetModule already defined in
weblock.obj; second definition ignored
xpcomglue.lib(nsMemory.obj) : warning LNK4006: "public: static void *
__cdecl nsMemory::Alloc(unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
already defined in xpcomglue_s.lib(nsMemory.obj); second definition
ignored
xpcomglue.lib(nsMemory.obj) : warning LNK4006: "public: static void *
__cdecl nsMemory::Realloc(void *,unsigned int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) already defined in
xpcomglue_s.lib(nsMemory.obj); second definition ignored
xpcomglue.lib(nsMemory.obj) : warning LNK4006: "public: static void
__cdecl nsMemory::Free(void *)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) already
defined in xpcomglue_s.lib(nsMemory.obj); second definition ignored
xpcomglue.lib(nsMemory.obj) : warning LNK4006: "public: static
unsigned int __cdecl nsMemory::HeapMinimize(int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) already defined in
xpcomglue_s.lib(nsMemory.obj); second definition ignored
xpcomglue.lib(nsMemory.obj) : warning LNK4006: "public: static void *
__cdecl nsMemory::Clone(void const *,unsigned int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) already defined in
xpcomglue_s.lib(nsMemory.obj); second definition ignored
xpcomglue.lib(nsMemory.obj) : warning LNK4006: "public: static class
nsIMemory * __cdecl nsMemory::GetGlobalMemoryService(void)"
([EMAIL PROTECTED]@@SAPAVnsIMemory@@XZ) already defined
in xpcomglue_s.lib(nsMemory.obj); second definiti
on ignored
   Creating library Release/cezilla.lib and object Release/cezilla.exp
xpcomglue_s.lib(nsGenericFactory.obj) : error LNK2001: unresolved
external symbol __imp__PR_AtomicIncrement
xpcomglue_s.lib(nsGenericFactory.obj) : error LNK2001: unresolved
external symbol __imp__PR_AtomicDecrement
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_UnloadLibrary
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_FindSymbol
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_LoadLibraryWithFlags
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_Free
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_GetLibraryFilePathname
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_FindSymbolAndLibrary
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_SetEnv
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_smprintf
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_smprintf_free
xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external
symbol __imp__PR_GetEnv
xpcomglue.lib(nsGREDirServiceProvider.obj) : error LNK2001: unresolved
external symbol __imp__PR_GetEnv
xpcomglue.lib(nsGREDirServiceProvider.obj) : error LNK2001: unresolved
external symbol _PL_strrchr
xpcomglue.lib(nsGREDirServiceProvider.obj) : error LNK2001: unresolved
external symbol __imp__PR_CloseDir
xpcomglue.lib(nsGREDirServiceProvider.obj) : error LNK2001: unresolved
external symbol _PL_strrstr
xpcomglue.lib(nsGREDirServiceProvider.obj) : error LNK2001: unresolved
external symbol __imp__PR_ReadDir
xpcomglue.lib(nsGREDirServiceProvider.obj) : error LNK2001: unresolved
external symbol __imp__PR_OpenDir
Release/cezilla.dll : fatal error LNK1120: 17 unresolved externals
Error executing link.exe.

cezilla.dll - 26 error(s), 7 warning(s)

YueWeng
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to