# Installation issue

**URL:** <https://root-forum.cern.ch/t/installation-issue/62612>\
**Category:** Garfield++\
**Tags:** root\
**Created:** [January 9, 2025, 7:33am UTC](https://root-forum.cern.ch/t/installation-issue/62612 "2025-01-09T07:33:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [January 9, 2025, 7:33am UTC](https://root-forum.cern.ch/t/installation-issue/62612/1 "2025-01-09T07:33:14Z")

</div>

Dear experts

I’m not sure this is an issue of ROOT or Garfield++, when I tried to install Garfield++ on server I got those errors:

```auto
[98%] Building CXX object Tests/CMakeFiles/RandomNumberGenerators.dir/RandomNumberGenerators.cpp.o
In file included from /group/had/muon/ssun/ICEDUST_master/ICEDUST_externals_install/root_v6.24.02/include/TString.h:29,
                 from /group/had/muon/ssun/ICEDUST_master/ICEDUST_externals_install/root_v6.24.02/include/TNamed.h:26,
                 from /group/had/muon/ssun/ICEDUST_master/ICEDUST_externals_install/root_v6.24.02/include/TRandom.h:25,
                 from /group/had/muon/ssun/ICEDUST_master/ICEDUST_externals_install/root_v6.24.02/include/TRandom3.h:25,
                 from /group/had/muon/ssun/garfieldpp/Include/Garfield/RandomEngineRoot.hh:4,
                 from /group/had/muon/ssun/garfieldpp/Tests/RandomNumberGenerators.cpp:3:
/group/had/muon/ssun/ICEDUST_master/ICEDUST_externals_install/root_v6.24.02/include/ROOT/RStringView.hxx:32:10: error: conflicting declaration of template ‘template<class _CharT, class _Traits> using basic_string_view = std::experimental::__ROOT::basic_string_view<_CharT, _Traits>’
   32 | using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>;
      | ^ ~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from /group/had/muon/ssun/garfieldpp/Tests/RandomNumberGenerators.cpp:1:
/usr/include/c++/11/string_view:98:11: note: previous declaration ‘template<class _CharT, class _Traits> class std::basic_string_view’
   98 | class basic_string_view
      | ^ ~~~~~~~~~~~~~~~~

```

That’s not the only error (so many errors), I’m using ROOT v6.24.02, g++ v11.4.1, and the newest Garfield++ from GitLab. Any suggestions?

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [January 9, 2025, 9:47am UTC](https://root-forum.cern.ch/t/installation-issue/62612/2 "2025-01-09T09:47:30Z")

</div>

Maybe it’s more related to `Garfield++` since I already have `ROOT 6.24.02` installed on the server.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 9, 2025, 9:48am UTC](https://root-forum.cern.ch/t/installation-issue/62612/3 "2025-01-09T09:48:31Z")

</div>

maybe @hschindl can give some hints

---

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [January 9, 2025, 12:39pm UTC](https://root-forum.cern.ch/t/installation-issue/62612/4 "2025-01-09T12:39:24Z")

</div>

Dear @Crisps

On my macOS (11.7.10) I have ROOT 6.24/06 and g++ 13.0.0. When checking out today the latest version of garfield++, I had no problems with the compilation.  
Kind regards  
Piet

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [January 9, 2025, 12:53pm UTC](https://root-forum.cern.ch/t/installation-issue/62612/5 "2025-01-09T12:53:05Z")

</div>

This looks like a C++ standard mismatch. Is it possible that the ROOT installation you are using was built using a different compiler/C++ standard than the compiler you are using for building Garfield++?

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [January 9, 2025, 3:36pm UTC](https://root-forum.cern.ch/t/installation-issue/62612/6 "2025-01-09T15:36:34Z")

</div>

You are right, after I set c++ standard to the same as ROOT it worked.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 23, 2025, 3:36pm UTC](https://root-forum.cern.ch/t/installation-issue/62612/7 "2025-01-23T15:36:56Z")

</div>

Closed on January 23, 2025, 3:36pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
