# Problem in installation

**URL:** <https://root-forum.cern.ch/t/problem-in-installation/45918>\
**Category:** Garfield++\
**Created:** [July 20, 2021, 2:55am UTC](https://root-forum.cern.ch/t/problem-in-installation/45918 "2021-07-20T02:55:50Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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 23, 2021, 7:37am UTC](https://root-forum.cern.ch/t/problem-in-installation/45918/12 "2021-07-23T07:37:08Z")

</div>

You can build a `c++14` aware Geant4 using: `cmake -DGEANT4_BUILD_CXXSTD=14 ...`

If you want to have everything using `c++17`, you need to build ROOT using “`cmake -DCMAKE_CXX_STANDARD=17`” and Geant4 using “`cmake -DGEANT4_BUILD_CXXSTD=17`”

Note that, afterward, in any case, you also need to build Garfield++ with the same C++ standard (I guess @hschindl can tell you how).

---

_[View the full topic](https://root-forum.cern.ch/t/problem-in-installation/45918)._
