Previously, I was fine with the binaries as I was using the interpreter. Now, recently I have moved to compiler for better performance. I have WSL with Ubuntu installed where I use the g++ command. More specifically,
g++ source1.cpp source2.cpp source3.cpp `root-config --glibs --cflags`
where source1.cpp
has the main()
function and the rest contain the definition of the header files. I want to do have a similar experience natively on Windows. Till now, I have only been able to run root
command in cmd but I am still failing to do what I want, i.e. compile using native compiler. I have been using Compile ROOT v6.16 with Visual studio 2019 successfully! (Good news for me!) and Root on windows (Visual studio 2010) as instructions.