Help for this page

Select Code to Download


  1. or download this
    $ make
    /usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1
    + /usr/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.6.1/
    +ExtUtils/typemap test_c.xs > test_c.xsc && mv test_c.xsc test_c.c
    gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcp
    +u=i686   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC -I/usr/lib/pe
    +rl5/5.6.1/i386-linux/CORE  test_c.c
    ...
    test_c.xs:19: subscripted value is neither array nor pointer
    test_c.xs:19: subscripted value is neither array nor pointer
    make: *** [test_c.o] Error 1
    
  2. or download this
    #include "EXTERN.h"
    #include "perl.h"
    #include "XSUB.h"
    ...
          out_matrix[i][j]=value;
        }
      }