It will not work if you are in a different path
than your script and c files. Remove the absolute
The "lib folder containing all dependencies"
in the project folder is empty since there are no
modules in the "hello.pl". Is this a correct
If hello.pl does not use any libs, yes.
int main(int argc, char **argv, char
argv = "-Ilib";
argv = "hello.pl";
This will only work if argc is 2, i.e. you
provided 2 args to your hello.exe.
You rather need to check argc and extend argv if
< 2, and set argc to 2 if < 2.
Step into the executable with
and see what's going wrong. Compile with
In the long term, the established solution is
to use PAR::Dist, or one of the
commercial packers. Using the real compiler
perlcc on Windows is a bit