I have got a similar problem. I'm trying to build a working version of
nrutils.c from numerical recipes for Origin C and I get the same error message "Error, invalid explicit cast" in the last line cited here:
#define NR_END 1
long nrow=nrh-nrl+1;
float **m;
m=(float**) malloc((size_t) ((nrow+NR_END)*sizeof(float*)));
I'd really be glad if someone could tell me a way round this...