# Rootrc load with different version

**URL:** <https://root-forum.cern.ch/t/rootrc-load-with-different-version/36135>\
**Category:** ROOT\
**Created:** [September 24, 2019, 9:09am UTC](https://root-forum.cern.ch/t/rootrc-load-with-different-version/36135 "2019-09-24T09:09:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [September 24, 2019, 9:19am UTC](https://root-forum.cern.ch/t/rootrc-load-with-different-version/36135/2 "2019-09-24T09:19:17Z")

</div>

> [@Hiding ROOT::Cintex::Cintex::Enable(); from ROOT6 compilation in a backwards compatible way](https://root-forum.cern.ch/t/hiding-root-enable-from-root6-compilation-in-a-backwards-compatible-way/35134/4):
>
> Try to “#include” anything from ROOT and then (if ROOT 5 will misbehave, replace ROOT\_VERSION(6,00,00) with 393216): #if ROOT\_VERSION\_CODE \>= ROOT\_VERSION(6,00,00) // ... ROOT 6.00/00 and newer #else /\* ROOT\_VERSION\_CODE \>= ROOT\_VERSION(6,00,00) \*/ // ... ROOT 5 (and older) #endif /\* ROOT\_VERSION\_CODE \>= ROOT\_VERSION(6,00,00) \*/ See also:

> [@Legendre polynomials missing, not linking to GSL (Mathmore already installed)](https://root-forum.cern.ch/t/legendre-polynomials-missing-not-linking-to-gsl-mathmore-already-installed/34879/6):
>
> If you run your macros through the standard “root” (or “root.exe”) executable, try to create a “rootlogon.C” file: void rootlogon(void) { // rootlogon.C ... // std::cout \<\< "... rootlogon.C ..." \<\< std::endl; if (gROOT-\>GetVersionCode() \< 393216) { // 393216 = ROOT\_VERSION(6,00,00) gSystem-\>Load("libMathMore"); } } // ... rootlogon.C

---

_[View the full topic](https://root-forum.cern.ch/t/rootrc-load-with-different-version/36135)._
