I am building a Qt application whose code was provided to me (I am not the developer). When I try to compile I get the following error:
Code: v_ = (T*)qMalloc(sizeof(T)*length);
Error: error: there are no arguments to 'qMalloc' that depend on a template parameter, so a declaration of 'qMalloc' must be available [-fpermissive]
Any ideas as to why I would be getting this error? Is there even such a function as qMalloc?
Yes there is.
You should show the code where this line comes from and where it is used