Hello Aniruddha,

In the mailing list ("
http://marc.theaimsgroup.com/?l=xerces-c-dev&m=101651731301840&w=2";)
there's an example dsp zip file.
You may try this.

Check the preprocessor definitions in the project settings, may be the
XERCES_HAS_LIB (new switch in VCPPDefs.hpp) is missing, e.g.:
      DEBUG,_WINDOWS,WIN32,_LIB,
      PROJ_SAX2,
      PROJ_XMLPARSER,
      PROJ_XMLUTIL,
      PROJ_PARSERS,
      PROJ_SAX4C,
      PROJ_DOM,
      PROJ_VALIDATORS,
      XML_SINGLEDLL,
      XML_USE_WIN32_TRANSCODER,
      XML_USE_INMEMORY_MSGLOADER,
      XML_USE_NETACCESSOR_WINSOCK,
      XERCES_HAS_LIB

Thomas

[EMAIL PROTECTED]


|---------+---------------------------->
|         |           Aniruddha Shevade|
|         |           <ashevade@actuate|
|         |           .com>            |
|         |                            |
|         |                            |
|         |                            |
|         |           23.04.02 00:41   |
|         |           Bitte antworten  |
|         |           an xerces-c-dev  |
|         |                            |
|---------+---------------------------->
  
>------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                    |
  |       An:       [EMAIL PROTECTED]                                        
                                    |
  |       Kopie:                                                                       
                                    |
  |       Thema:    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








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to