Hi, new to ROOT so I started to learn about it in university, I’m only able to use it on linux and I was trying to use it on windows 11.
I did some research but everything i tried did not work.
Basically I was trying run it on vs code but i keep getting this error: 4.cpp:10:18: fatal error: TH1F.h: No such file or directory #include “TH1F.h”
^
compilation terminated.
I added root path to C/C++ configuration but still nothing.
Do you guys know why?
There are more info I need to share?
Thanks a lot!
_ROOT Version: 6.26/10
_Platform: Windows 11
_Compiler: g++.exe 6.3.0
The error message you’re seeing, “fatal error: TH1F.h: No such file or directory,” means the compiler can’t find the necessary header files for the ROOT libraries.
I read the documentation Wile posted but on windows i cannot run those commands, also i have only included ROOT’s path into path, I don’t know how to set TOOTSYS correctly