Dear James,

To build a static library change the file
xerces\src\xercesc\util\Compilers\VCPPDefs.hpp:

Replace the lines
      #define PLATFORM_EXPORT     __declspec(dllexport)
      #define PLATFORM_IMPORT     __declspec(dllimport)
with
      #ifdef XERCES_HAS_LIB
            #define PLATFORM_EXPORT
            #define PLATFORM_IMPORT
      #else
            #define PLATFORM_EXPORT     __declspec(dllexport)
            #define PLATFORM_IMPORT     __declspec(dllimport)
      #endif



Then add the preprocessor definitions in the project settings
      XERCES_HAS_LIB,XML_USE_INMEMORY_MSGLOADER

The macro XML_USE_INMEMORY_MSGLOADER ensures that the error messages will
be inside the static library.
In the tree of the project (File View) util/MsgLoaders replace the
Win32MsgLoader files with these:
      - util\MsgLoaders\InMemory\CppErrMsgs_EN_US.hpp
      - util\MsgLoaders\InMemory\InMemMsgLoader.cpp
      - util\MsgLoaders\InMemory\InMemMsgLoader.hpp

Here's the project file (.dsp) for building a static Xerces library (multi-
and singlethreaded) for Version 1.6.0:
(See attached file: XercesLib Static.zip)

I haven't tested the single threaded library yet.


Regards,
Thomas


[EMAIL PROTECTED]

Attachment: XercesLib Static.zip
Description: Zip archive

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

Reply via email to