Title: Errors Linking Statically with xerces using VC++

Hello
 Following the mail arcvhies , I created a static xerces lib. When
I try to link my application to it, I get a lot of Error messages and warnings such as

Linking...
XercesStaticLibD.lib(Win32PlatformUtils.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in osdUnD.lib(newoper.obj)

XercesStaticLibD.lib(Win32PlatformUtils.obj) : warning LNK4006: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in osdUnD.lib(newoper.obj);

LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4049: locally defined symbol ""public: unsigned short const * __thiscall XMLException::getMessage(void)const " (?getMessage@XMLException@@QBEPBGXZ)" imported

LINK : warning LNK4049: locally defined symbol ""public: static void __cdecl XMLPlatformUtils::Initialize(void)" (?Initialize@XMLPlatformUtils@@SAXXZ)" imported

LINK : warning LNK4049: locally defined symbol ""public: static void __cdecl XMLPlatformUtils::Terminate(void)" (?Terminate@XMLPlatformUtils@@SAXXZ)" imported

LINK : warning LNK4049: locally defined symbol ""public: static void __cdecl XMLString::catString(unsigned short * const,unsigned short const * const)" (?

catString@XMLString@@SAXQAGQBG@Z)" imported

utilserverUnD.lib(domlowlevel.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall XMLFormatTarget::~XMLFormatTarget(void)" (__imp_??1XMLFormatTarget@@UAE@XZ)

operationPrivateI18nUnD.lib(domlowlevel.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall XMLFormatTarget::~XMLFormatTarget(void)" (__imp_??1XMLFormatTarget@@UAE@XZ)

utilserverUnD.lib(domlowlevel.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: __thiscall XMLFormatTarget::XMLFormatTarget(void)" (__imp_??0XMLFormatTarget@@IAE@XZ)

operationPrivateI18nUnD.lib(domlowlevel.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: __thiscall XMLFormatTarget::XMLFormatTarget(void)" (__imp_??0XMLFormatTarget@@IAE@XZ)

Error executing link.exe.

Any help is appreciated

thanks
-Aniruddha

Reply via email to