Re: 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]> |
Jason E. Stewart wrote: >>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". > Not sure about this one. I found it: "read" and "write" get declared in perl/lib/CORE/win32IOp.h (this is Perl 5.6) #define read(fd,b,s) win32_read(fd,b,s) #define write(fd,b,s) win32_write(fd,b,s) What I haven't found is where to switch it off with an #undef in Xerces.cpp. I wonder why it happens at all - shouldn't the methods be part of the Xerces namespace after all? > 1) I don't like solutions that require changing the Xerces-C > code. Neither do I. Martin