I have been learning C++ and writing a program for which I want to include ROOT in.
My code editor is Visual Studio, and I have followed the instructions for installing ROOT on Windows 10 (as I want to simply run in native windows), I have all of the dependencies, however after following the instructions to install ROOT, Visual Studio cannot compile my code as it tells me the ROOT files I am attempting to include cannot be found.
Can someone please give me a step by step guide as to how use ROOT libraries correctly while using Visual Studio.
Would really appreciate this help as I require they use of ROOT for my forthcoming MPhys project.
Thanks for posting!
Could you provide us with a minimal reproducer of the setup you have so that our Windows expert gan give feedback? Right now it seems that too much guess-work would need to be done hereā¦
You must add the ROOT include and lib directories in your Visual Studio project settings. Note that I would suggest to use CMake to generate your solution (project) file in order to keep the same C++ flags than the ones used to build ROOT.