Hi,
I am using ROOT in Windows with Visual Studio. I built ROOT from source and it went fine. I can use macros with root.exe perfectly. But I need to use ROOT libraries with other things as well as be able to debug codes and I just can’t get ROOT parts to compile in Visual Studio. For example, this basic code:
#include <TApplication.h>
#include <TF1.h>
#include <TRandom3.h>
int main(int argc, char** argv)
{
TApplication theApp("App", &argc, argv);
TF1* f1 = new TF1("f1", "sin(x)/x" , 0, 10);
theApp.Run();
return 0;
}
gives a compiler error:
‘__find_end’: is not a member of 'std` in file RWrap_libcpp_string_view.h in line 428.
What I tried:
- Added environment vars ROOTSYS and %ROOTSYS%\bin in Paths
- Solution properties–>Configuration properties–> Added the include and library dirs
- Solution properties–>Linker–>Input–> Added all the .lib files
it still shows the same error while compilation.
@bellenot can you help?
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.21
Platform: Windows
Compiler: cl