# Hiding ROOT::Cintex::Cintex::Enable(); from ROOT6 compilation in a backwards compatible way

**URL:** <https://root-forum.cern.ch/t/hiding-root-enable-from-root6-compilation-in-a-backwards-compatible-way/35134>\
**Category:** Newbie\
**Created:** [July 11, 2019, 9:19pm UTC](https://root-forum.cern.ch/t/hiding-root-enable-from-root6-compilation-in-a-backwards-compatible-way/35134 "2019-07-11T21:19:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 12, 2019, 6:25am UTC](https://root-forum.cern.ch/t/hiding-root-enable-from-root6-compilation-in-a-backwards-compatible-way/35134/4 "2019-07-12T06:25:42Z")

</div>

Try to “#include” anything from ROOT and then (if ROOT 5 will misbehave, replace `ROOT_VERSION(6,00,00)` with `393216`):

```cpp
#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/hiding-root-enable-from-root6-compilation-in-a-backwards-compatible-way/35134)._
