Great! I have made progress with your help... but cannot compile yet. If
I may, let me ask some follow-up questions...
(1) I get one error:
Xerces\xerces-c-src1_7_0\src\xercesc\util\Platforms\Win32\Win32PlatformUtils.cpp(92)
: fatal error C1189: #error : A transcoding service must be chosen
What is the transcoding service? Should I make it the same as the DLL
(XML_USE_WIN32_TRANSCODER)?
(2) The following are defined in the DLL project... does this seem
correct? There are lots of unused definitions.
_CRTDBG_MAP_ALLOC,
PROJ_SAX2, // I never find this in the src
PROJ_XMLPARSER, // I never find this in the source
PROJ_XMLUTIL, // never find this
PROJ_PARSERS, // never find this in src
PROJ_SAX4C, // nope!
PROJ_DOM, // not seen in the code
PROJ_VALIDATORS, // not used in the code
XML_SINGLEDLL, // not used in src
WIN32,
_WINDOWS,
XML_USE_WIN32_TRANSCODER, // used to select the transcoder... see
question (1)
XML_USE_WIN32_MSGLOADER, // I am using the INMEMORY message loader...
there should be no problems here?
XML_USE_NETACCESSOR_WINSOCK // Used to conditionally include some
*net*.hpp files... what does this do? Should I define this?
And I have only defined the following for the static lib...
WIN32,
_MBCS, // generic MS text types... do not think this matters
_LIB,
XERCES_HAS_LIB, // special var to make a static lib rather than a DLL
XML_USE_INMEMORY_MSGLOADER
(3) What is the XML_USE_NETACCESSOR_WINSOCK? What does this do?
BTW, thanks for the help!
Thank-you,
James M. Stephens Jr.
eServer xSeries Performance Design Guidance
IBM Corp, Bldg 060, Dept J39A
3039 Cornwallis Drive
Research Triangle Park, NC 27709
Tel: 919.543.4188 T/L: 441.4188
E-mail: [EMAIL PROTECTED]
Thomas.Rothfuss@h
omag.de To: [EMAIL PROTECTED]
cc:
2002-03-19 00:50 Subject: Antwort: Building Static
Single-Threaded Xerces Library [WatchDog
Please respond to checked]
xerces-c-dev
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
#### XercesLib Static.zip has been removed from this note on March 19 2002
by James Stephens
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]