Hello Rooters,
I have a root project which needs to run on Windows and on Linux. For Windows compilation with VisualStudio I learned in the forum that only Root5 works. For the Linux compilation any version should work, especially since my collaborators mostly always have the newest version. It turns out, that Root6 TF1::Integral() is not backwards compatible with Root5 TF1:Integral() and consequently I cannot compile my project since I need the TF1::Integral() functionality to work in both:
Root6:
Root5:
Double_t Integral(Double_t a, Double_t b, const Double_t* params = 0, Double_t epsilon = 1e-12)
Double_t Integral(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t epsilon = 1e-12)
Double_t Integral(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon = 1e-12)
Do you have a tip how I can solve this? Is there maybe a flag for the compiler to leave out or include sections of code depending on the Root version?
Cheers,
Andreas