Unable to compile XML::Xerces-2.4.0 under Windows

Martin Raspe <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
Xerces.cpp fails to compile for two reasons:

1.
xercesc\internal\XSerializeEngine.hpp
complains about macros "read" and "write" not having the proper number 
of arguments (in fact, they are method names). I don't know where these 
macros get defined (probably somewhere in MS VC), but the errors go away 
if I put

#undef read
#undef write

in the first line of "XSerializeEngine.hpp".

2.
Xerces.cpp(12673) : error C2039: 'getNameSpace'
: is no element of 'XMLNotationDecl'
C:/xerces-c_2_4_0-win32/include/xercesc/framework/XMLNotationDecl.hpp(135)
: see declaration of 'XMLNotationDecl'

Xerces.cpp(13022) : error C2039: 'setNameSpace'
: is no element of 'XMLNotationDecl'
C:/xerces-c_2_4_0-win32/include/xercesc/framework/XMLNotationDecl.hpp(135)
: see declaration of 'XMLNotationDecl'

This is true, thera are only methods called "get/setNameSpaceId". 
Perhaps the windows and *nix Versions of Xerces-C are not synchronized?

Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.