QMalloc?



  • 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?

    Thanks!


  • Lifetime Qt Champion

    Hi,

    Yes there is.

    You should show the code where this line comes from and where it is used


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.