Hello Inline Perl group

We're using Perl's Inline CPP which I understand that you wrote.

I'm running it on Mac OS X. In CPP.pm I changed the default compiler and library as follows:
    $o->{ILSM}{MAKEFILE}{CC} ||= 'g++'; # default compiler
$o->{ILSM}{MAKEFILE}{LIBS} ||= ['-L/usr/lib/gcc/i686-apple- darwin9/4.0.1 -lstdc++']; # default libs

I'm able to compile and run sample inlined CPP programs, like this:
#!/usr/bin/perl
use lib '/opt/local/lib/perl5/site_perl/5.8.9/';

print "9 + 16 = ", add(9, 16), "\n";

use Inline CPP => <<'END';

int add(int x, int y) {
  return x + y;
}
END

However, when I attempt to run a large program (which runs on Linux) I obtain this warning repeatedly
Use of uninitialized value in hash element at
        /opt/local/lib/perl5/site_perl/5.8.9//Inline/CPP.pm line 487 (#1)


and the compilation finally dies with
/usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -typemap / System/Library/Perl/5.8.8/ExtUtils/typemap CorrelationCalc_fa1b.xs > CorrelationCalc_fa1b.xsc && mv CorrelationCalc_fa1b.xsc CorrelationCalc_fa1b.c\nError: 'double *' not in typemap in CorrelationCalc_fa1b.xs, line 904\nError: 'double *' not in typemap in CorrelationCalc_fa1b.xs, line 910\nError: 'double *' not in typemap in CorrelationCalc_fa1b.xs, line 932\nmake: *** [CorrelationCalc_fa1b.c] Error 1\n\nA problem was encountered while attempting to compile and install your Inline\nCPP code. The command that failed was:\n make > out.make 2>&1\n\nThe build directory was: \n/private/var/vpfiles/_Inline/build/VirtualPlant/Analysis/ Correlation/CorrelationCalc_fa1b\n\nTo debug the problem, cd to the build directory, and inspect the output files.
(and other error messages).

Could you help solve this problem please?

BR
A

Reply via email to