David Mertens wrote:
> On Wed, Nov 18, 2009 at 4:36 AM, adithya <[email protected]
> <mailto:[email protected]>> wrote:
>
> Working around this, i decided to rewrite some functions so that
> they can accept the original values from a PDL and process in the
> integer array and finally, i'll write the integer arrays into the
> output piddle; so the problem will be solved.
>
> <snip>
>
>
> Addy -
>
> You're suggesting a piddle -> int array -> piddle? Manually? Don't do
> that. PDL::PP was written explicitly so you wouldn't have to do that.
>
> <snip>
The thing is not as bad as you are making it sound :) . Im doing it more
like generate an int array from the input piddle ( i cant use the input
piddle directly even if i had wanted to ) and finally copy the arrays
into a piddle.
I just eliminated the now the problem i was facing by removing the need
for the functions altogether.
so now, i get the following errors whn i "make" :
/usr/bin/perl -I/usr/local/lib/perl/5.10.0 "-MPDL::PP
qw/PDL::Lib::Cust PDL::Lib::Cust Cust/" Cust.pp
funct1 has no Macro for generic type B (has TD)
funct1 has no Macro for generic type S (has TD)
funct1 has no Macro for generic type U (has TD)
funct1 has no Macro for generic type L (has TD)
funct1 has no Macro for generic type Q (has TD)
funct1 has no Macro for generic type F (has TD)
funct1 has no Macro for generic type B (has TD)
funct1 has no Macro for generic type S (has TD)
and so on... (It repeates like (BSULQF)* ) - TD is an input piddle
then
Cust.xs: In function ‘pdl_funct1_readdata’:
Cust.xs:356: error: initializer element is not constant
Cust.xs:356: error: initializer element is not constant
Cust.xs:356: error: initializer element is not constant
Cust.xs:356: error: initializer element is not constant
Cust.xs:392: error: expected expression before ‘;’ token
Cust.xs:395: error: expected expression before ‘]’ token
Cust.xs:396: error: expected expression before ‘]’ token
Cust.xs:399: error: expected expression before ‘;’ token
Cust.xs:409: error: expected expression before ‘;’ token
Cust.xs:411: error: expected expression before ‘;’ token
Cust.xs:512: error: expected expression before ‘;’ token
Cust.xs:545: error: expected ‘while’ before ‘TD_datap’
Cust.xs:546: error: ‘__tinc1_1’ undeclared (first use in this function)
Cust.xs:546: error: (Each undeclared identifier is reported only once
and so on...
any ideas?
Thanks in advance.
Addy
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl