Oh dear, things haven't gone quite as well as I had thought!
I've run into problems compiling a script that uses XML::Parser on Windows XP.
It says it can't find a library file.
Here's a minimal example script:
---
use XML::Parser;
my $p1 = new XML::Parser(Style => 'Debug');
$p1->parse('<foo id="me">Hello World</foo>');
print "Finished!\n";
---
which when run on my development machine (XP Home) produces this output:
---
C:\Documents and Settings\root\My Documents\tmp>perl test.pl \\ (id me) foo || Hello World // Finished!
---
and when it's compiled using PER 0.79 with "pp -o test.exe test.pl", the compiled program test.exe works exactly the same - on my development machine.
However, when I run it on a vanilla test machine (Win98 under Bochs) I get this:
---
C:\My Documents>test
Can't load 'C:\WINDOWS\TEMP\par-Andy Balaam\cache-1073784600\d65c0da7.dll' for m
odule XML::Parser::Expat: load_file:One of the library files needed to run this
application cannot be found at C:/perl/5.8.0/lib/MSWin32-x86-multi-thread/DynaLo
ader.pm line 229.
at ../blib/lib/PAR/Heavy.pm line 97
Compilation failed in require at XML/Parser.pm line 14.
BEGIN failed--compilation aborted at XML/Parser.pm line 18.
Compilation failed in require at script/test.pl line 3.
BEGIN failed--compilation aborted at script/test.pl line 3.
---
Should I expect PAR to include library files at all?
(The features page suggests to me that the answer is yes?)
If yes, what am I doing wrong/how can I help to fix this problem?
If not, does this mean I will need to include a DLL with my EXE?
Another possible source of the problem is the move from XP Home to Win98. Does
this sound likely as a cause?
Thanks very much,
Andy
