/home/lbg/fdsst_track/sImage.h:61: error: there are no arguments to 'malloc' that depend on a template parameter, so a declaration of 'malloc' must be available [-fpermissive]
data=(T*)malloc(sizeof(T)*w*h);
^
/home/lbg/fdsst_track/sImage.h:241: error: there are no arguments to 'free' that depend on a template parameter, so a declaration of 'free' must be available [-fpermissive]
free(arr_x2);
^
原因:还是没有加头文件:
#include<stdlib.h>