PDL::NiceSlice is a source filter. The perlapp FAQ says that they do not support source filters. For maximum portability, we should make PDL "source filter free" by either replacing the usages within the core modules or by adding a pre-filter step in the build so that PDL::NiceSlice is not required at compile time.
--Chris On 9/23/2010 9:00 AM, Sacha Fouchard wrote: > Hello everybody, > This is my problem that could be interesting for many of you. > > When I try to use PDL in a prog source and create an executable with > Activestate perlapp, I 've got the following error after compilation, at > run time (The exe is correctly created). > > When I launch the prog, it says: > > syntax error at /<C:\prog.exe>PDL/MatrixOps.pm line 444, near "0:" > syntax error at /<C:\prog.exe>PDL/MatrixOps.pm line 449, near "1:" > syntax error at /<C:\prog.exe>PDL/MatrixOps.pm line 450, near "0:" > syntax error at /<C:\prog.exe>PDL/MatrixOps.pm line 827, near "2:" > > For example, line 443 in MatrixOps.pm is : > determinant( $a->(0:$i-1,1:-1)->append( $a->($i+1:-1,1:-1 ) ) ); > The pb seems to come from niceslicing syntax. > > But, if I run the prog directly under the shell, it works perfectly. > > What's happening? > > Try a prog with nothing but only "use PDL", compile it run, and see. > I found 12 lines with problems in MatrixOps.pm. > > I use perl 5.10 x86 and the lastest PDL from CPAN (2.4.7) on win 7 x64. > The problem was the same under vista 32 with perl 5.10 and PDL 2.4.6. > > Thank you all, > Sacha _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
