I have problems including TLorentzVector.h. My header starts like
and works fine, both when I load the macro into ROOT or compiles with gcc. If I uncomment TLorentzVector I get 9000 lines of errors, the first few lines of the log file are:
Can anyone help me on the right track? I think I am including the right libraries, but I may be wrong of course (the same happens when I try to load-and-compile into ROOT using .L main.cxx+
Ah, my setup was using another version of g++ than ROOT was compiled with, causing the error. I did not know that could be an issue, but have become better educated now.