Can't use set function for TVector2

When I run the following code

{
	TVector2 vec;
	Double_t x=0.;
	Double_t y=0.;
	vec.Set(x,y);
}

I get the following error.

IncrementalExecutor::executeFunction: symbol ‘?Set@TVector2@@QAEXNN@Z’ unresolved while linking [cling interface function]!
You are probably missing the definition of public: void __thiscall TVector2::Set(double,double)
Maybe you need to load the corresponding shared library?

I haven’t used vectors before, so maybe I’m missing something obvious?


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.20.06
Platform: Windows 10
Compiler: Not Provided


That’s weird, it should work… Did you build ROOT yourself or did you download the binaries?

Nevermind. I just had to use the Visual Studio command prompt to run the macro. I’ve previously been using the built-in Windows command prompt without problem.