Closed YuryPakhomov closed 2 years ago
Thank you for this bug report. I cannot reproduce this error with the current version of PDL (v2.072) or PDL::Drawing::Prima (v0.13) which was just released. Closing for now, but feel free to re-open if you encounter the issue again!
~~~ /usr/local/lib64/perl5/PDL/PP/PDLCode.pm:439:3: error: 'N_pixels' undeclared (first use in this function) 439/usr/local/lib64/perl5/PDL/PP/PDLCode.pm:609:11: error: lvalue required as left operand of assignment 609
/usr/local/lib64/perl5/PDL/PP.pm:683:72: note: in definition of macro 'PP_INDTERM' 683 | # define PP_INDTERM(max, at) (pdl_boundscheck? PDL->safe_indterm(max,at, FILE, LINE) : at) | ^~ /usr/local/lib64/perl5/PDL/PP/PDLCode.pm:612:73: note: expected 'PDL_Indx' {aka 'long int'} but argument is of type 'char ()(const char *, int)' 612 | ########################### | ^
/usr/local/lib64/perl5/PDL/PP.pm:683:72: note: in definition of macro 'PP_INDTERM' 683 | # define PP_INDTERM(max, at) (pdl_boundscheck? PDL->safe_indterm(max,at, FILE, LINE__) : at) | ^~ /usr/local/lib64/perl5/PDL/PP.pm:683:96: warning: pointer/integer type mismatch in conditional expression 683 | # define PP_INDTERM(max, at) (pdl_boundscheck? PDL->safe_indterm(max,at, FILE, LINE) : at) | ^ /usr/local/lib64/perl5/PDL/PP/PDLCode.pm:612:35: note: in expansion of macro 'PP_INDTERM' 612 | ########################### | ^
/usr/local/lib64/perl5/PDL/PP/PDLCode.pm:612:34: error: invalid operands to binary (have 'PDL_Indx' {aka 'long int'} and 'char ()(const char , int)') 612 | ########################### | ^ /usr/local/lib64/perl5/PDL/PP/PDLCode.pm:612:176: warning: passing argument 2 of 'PDL_Drawing_Prima_Utils->safe_indterm' makes integer from pointer without a cast [-Wint-conv 612 | ########################### | ..... .... ..... ..... /usr/local/lib64/perl5/PDL/PP/PDLCode.pm:620:71: note: expected 'PDL_Indx' {aka 'long int'} but argument is of type 'char ()(const char , int)' 620 | my %access2class = ( | ^
/usr/local/lib64/perl5/PDL/PP.pm:683:72: note: in definition of macro 'PP_INDTERM' 683 | # define PP_INDTERM(max, at) (pdl_boundscheck? PDL->safe_indterm(max,at, FILE, LINE__) : at) | ^~ /usr/local/lib64/perl5/PDL/PP.pm:683:96: warning: pointer/integer type mismatch in conditional expression 683 | # define PP_INDTERM(max, at) (pdl_boundscheck? PDL->safe_indterm(max,at, FILE, LINE__) : at) | ^ /usr/local/lib64/perl5/PDL/PP/PDLCode.pm:620:33: note: in expansion of macro 'PP_INDTERM' 620 | my %access2class = ( | ^ /usr/local/lib64/perl5/PDL/PP/PDLCode.pm:620:32: error: invalid operands to binary (have 'PDL_Indx' {aka 'long int'} and 'char ()(const char *, int)') 620 | my %access2class = ( | ^ error building lib/PDL/Drawing/Prima/Utils.o from 'lib/PDL/Drawing/Prima/Utils.c' at /usr/share/perl5/ExtUtils/CBuilder/Base.pm line 185.