McDarren has asked for the wisdom of the Perl Monks concerning the following question:
So far, so good. However....K:\Perl\temp>type bar.pl use Cwd; print "Hello World\n"; K:\Perl\temp>pp -o bar.exe bar.pl K:\Perl\temp>bar.exe Hello World
If I then try to run foo.exe, I first get a dialog box with this:K:\Perl\temp>type foo.pl use Data::Dumper::Simple; print "Hello World\n"; K:\Perl\temp>foo.pl Hello World K:\Perl\temp>pp -o foo.exe foo.pl
and then the following error:"The procedure entry point PL_memory_wrap could not be located in the +dynamic link library perl58.dll"
So basically, if I include any non-core modules - it borks. I've tried it with various modules, all with the same result. I'm guessing that perhaps something is screwed wth my libraries or path - but I'm not sure where to start looking.K:\Perl\temp>foo.exe Can't load 'K:\DOCUME~1\Darren\LOCALS~1\Temp\par-Darren\cache-11429565 +20\b007796 b.dll' for module Data::Dumper: load_file:The specified procedure coul +d not be f ound at D:/cpanrun/build/5-8-0/lib/DynaLoader.pm line 229. at ../blib/lib/PAR/Heavy.pm line 107 Compilation failed in require at Data/Dumper/Simple.pm line 6. BEGIN failed--compilation aborted at Data/Dumper/Simple.pm line 6. Compilation failed in require at script/foo.pl line 1. BEGIN failed--compilation aborted at script/foo.pl line 1.
Can somebody please point me in the right direction?
Update: - removed external (image) link as suggested by davidrw.
Update 2: - problem solved. Many thanks to pboin for the pointer :)
Thanks,
Darren :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem including non-core modules in a PAR executable (Win32)
by davidrw (Prior) on Mar 21, 2006 at 16:26 UTC | |
by McDarren (Abbot) on Mar 21, 2006 at 16:39 UTC | |
|
Re: Problem including non-core modules in a PAR executable (Win32)
by pboin (Deacon) on Mar 21, 2006 at 19:12 UTC | |
by McDarren (Abbot) on Mar 22, 2006 at 04:48 UTC |