# Installation of a software dependent on root

**URL:** <https://root-forum.cern.ch/t/installation-of-a-software-dependent-on-root/46111>\
**Category:** General Chat\
**Tags:** installation\
**Created:** [August 1, 2021, 5:25am UTC](https://root-forum.cern.ch/t/installation-of-a-software-dependent-on-root/46111 "2021-08-01T05:25:55Z")\
**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:** [August 1, 2021, 8:46am UTC](https://root-forum.cern.ch/t/installation-of-a-software-dependent-on-root/46111/2 "2021-08-01T08:46:53Z")

</div>

I guess there is a mismatch in the C++ language standard used by different libraries (i.e. GammaCombo and ROOT).

You need to make sure that the same “`-std=...`” C++ compiler flag is used when building all your software.

One of the first flags in the output of “`root-config --cflags`” is " `-std=...`" (and this tells you what C++ language standard your ROOT binaries were built with).

Looking at your first screenshot, I can see “HAS\_CPP17 - Success”. This may suggest that the GammaCombo is using “`-std=c++17`”.

You have two options then.

1. You can build ROOT using: `cmake -DCMAKE_CXX_STANDARD=17 ...`

2. You can build GammaCombo using the same standard as your existing ROOT is using. E.g., if ROOT is using “`c++=14`”, you could try to build GammaCombo using: `cmake -DCMAKE_CXX_STANDARD=14 ...`

---

_[View the full topic](https://root-forum.cern.ch/t/installation-of-a-software-dependent-on-root/46111)._
