Building XML-Xerces-2.3.0-3 on Windows

Martin Raspe <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
Here is a short report for Windows (Win2000, VC 6):

1. The xerces library is called "xerces-c_2" in the binary version for 
Windows. The following line should be added to Makefile.pl:

if ($^O eq 'MSWin32') {
   $LIBXERCES = "-lxerces-c_2";
}

2. The xerces-c binaries for Windows don't come with a "config.status" 
file. Therefore I'd propose to include the needed compiler flags from 
lib/Config.pm as follows:

if ($^O eq 'MSWin32') {
   $CFLAGS .= " $Config::Config{cppflags} -DHAS_BOOL -TP -GX";
}

3. The "PERL_MAGIC_tied" issue in xerces.cpp can be resolved (as already 
stated) by replacing the undefined constant with 'P'.

These changes seems to make everything compile and link out of the box.

For the tests to work it is important that the Xerces dll is in the 
system path.

I'll send a detailed report on the test results as soon a possible.

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.