As I had to come up with a workaround for my original
problem of the new/delete operators, I had to get Xerces to compile as a
static library on Win32. Here are the hoops i had to jump through to
get this to work, if anyone is interested :)
Change the #define's of PLATFORM_EXPORT and
PLATFORM_IMPORT in src/util/Compilers/VCPPDefs.hpp to be empty. I
don't think the lib or dll generated for Xerces cares, but the application
including these headers will definitely cause the final link to .exe to
fail due to looking for exported stuff.
On the project->properties 'link tab' of XercesLib, for
both debug and release, manually add '-lib' to the command line of the link
(which causes a backwards compatiblity mode and link calls lib with the same
parameters minus the cruft it can't understand)
On the same pane, rename the output file from
Xerces-c-1_1.dll to .lib
Add user32.lib your my own project, since Xerces
isn't linking with it anymore.
Rebuild xerces and your project both
clean