Visual Studio link error

I am trying to compile the simple example in Visual Studio 2022. Windows 10, Root just installed yesterday: 6.26/06. I created a console project in Visual Studio and then added the include path to the project include settings and the library path to the project library settings. It compiles correctly but gives the 2 linker errors:

Severity Code Description Project File Line Suppression State
Error C2445 result type of conditional expression is ambiguous: types ‘TString’ and ‘const char [1]’ can be converted to multiple common types roottestplot C:\Program Files\rootfiles\root\include\TF1.h 463
Error C4996 ‘std::iterator<std::bidirectional_iterator_tag,TObject *,ptrdiff_t,const TObject **,const TObject *&>’: warning STL4015: The std::iterator class template (used as a base class to provide typedefs) is deprecated in C++17. (The header is NOT deprecated.) The C++ Standard has never required user-defined iterators to derive from std::iterator. To fix this warning, stop deriving from std::iterator and start providing publicly accessible typedefs named iterator_category, value_type, difference_type, pointer, and reference. Note that value_type is required to be non-const, even for constant iterators. You can define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning. roottestplot C:\Program Files\rootfiles\root\include\TList.h 198

What did I miss in setting this up?


Welcome to the ROOT forum.
I think @bellenot can help you when he’ll be back.

This has been resolved in the main branch and the v6.26 patch branch (i.e. the upcoming v6.28/00 and v6.26/08)

So, this fix is not yet available? I don’t see it anywhere.

It is currently available only if you build from source.

Oh, swell. I’ll wait.