When i create a exe from the gui and try to run the program i get the following:
Can't load 'auto/threads/threads.dll' for module threads: load_file:The specifie
d module could not be found at /DynaLoa
der.pm line 214.
at /Thread.pm line 317
BEGIN failed--compilation aborted at /T
hread.pm line 335.
BEGIN failed--compilation aborted at pgmname.pl line 12.
Can anyone point me in the right direction.
Thanks,
Dave W.
This kind of message indicates that you have unsatisfied dependencies in the compiled exe. There are two main reasons why this happens.
Your script may be using extensions that execute 'require' or 'do' operations at runtime. These extensions must be explicitly added
using the --add option.
Your executable may be relying on an extention which relies in turn on libraries which can't be loaded by Perl's standard dynamic loading mechanism (i.e. DynaLoader or XSLoader). For example, this is often the case with database client libraries. In order for the executable to work, these additional libraries are must be present on the target machine and be accessible via the PATH environment variable. Alternatively (on Windows), you can bind such libraries into the executable using the --bind option.