Error when declaring TVector

I’m still learning to use ROOT and C++, so I would be grateful for your help.

When I try to declare a TVector (already included in my code), in the very simple way TVector <double> vec(10, 0); , it returns the error error: ‘TVector {aka TVectorT<float>}’ is not a template .
I don’t know how to solve this, based on some examples (e.g., this one ) this shouldn’t even be a problem. I’ve been reading lots of posts in this forum but I still couldn’t find the solution to my problem.

Thanks in advance,


ROOT Version: 6.14/04
Platform: Ubuntu

Either use the “tvector” from your example or use the “TVectorT” from the Linear Algebra in ROOT.

TVectorT worked just fine, thanks!