Thank You. I will try following that.
On a totally different note, I just tried running Go4 on a different machine.
Root 6.24 and gcc 9.4. I was able to compile Go4, but when compiling an analysis code, I get a different error,
Generating root6 dictionary G__SCN.cxx ...
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with __GLIBCXX__ '20200808'
Extraction of runtime standard library version was: '20210601'
g++ -c EventUnpackStore.cxx -O2 -fPIC -Wall -DLinux -pthread -std=c++14 -m64 -I/home/utkarsh/root_v6.24.04/root/include -I/home/utkarsh/go4/build/include -I/home/utkarsh/go4/build -std=c++11 -fdiagnostics-color -g -Wno-unused-variable -Wno-unused-but-set-variable -o EventUnpackStore.o
In file included from /home/utkarsh/root_v6.24.04/root/include/TString.h:29,
from /home/utkarsh/root_v6.24.04/root/include/TNamed.h:26,
from /home/utkarsh/go4/build/include/TGo4EventElement.h:17,
from AIDA_Decay_Event_Store.h:4,
from Raw_Event.h:13,
from AIDA_Event.h:5,
from EventUnpackStore.h:20,
from EventUnpackStore.cxx:16:
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:32:37: error: ‘experimental’ in namespace ‘std’ does not name a type
32 | using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>;
| ^~~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:35:12: error: ‘basic_string_view’ does not name a type
35 | typedef basic_string_view<char> string_view;
| ^~~~~~~~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:36:12: error: ‘basic_string_view’ does not name a type
36 | typedef basic_string_view<char16_t> u16string_view;
| ^~~~~~~~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:37:12: error: ‘basic_string_view’ does not name a type
37 | typedef basic_string_view<char32_t> u32string_view;
| ^~~~~~~~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:38:12: error: ‘basic_string_view’ does not name a type
38 | typedef basic_string_view<wchar_t> wstring_view;
| ^~~~~~~~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:48:4: warning: inline variables are only available with ‘-std=c++17’ or ‘-std=gnu++17’
48 | inline double stod(std::string_view str, size_t *pos)
| ^~~~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:48:28: error: ‘string_view’ is not a member of ‘std’
48 | inline double stod(std::string_view str, size_t *pos)
| ^~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:48:28: note: ‘std::string_view’ is only available from C++17 onwards
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:48:52: error: expected primary-expression before ‘*’ token
48 | inline double stod(std::string_view str, size_t *pos)
| ^
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:48:53: error: ‘pos’ was not declared in this scope; did you mean ‘ios’?
48 | inline double stod(std::string_view str, size_t *pos)
| ^~~
| ios
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:48:56: error: expression list treated as compound expression in initializer [-fpermissive]
48 | inline double stod(std::string_view str, size_t *pos)
| ^
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:65:56: error: ‘std::string_view’ has not been declared
65 | inline std::string &operator+=(std::string &left, std::string_view right)
| ^~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx: In function ‘std::string& std::__ROOT::operator+=(std::string&, int)’:
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:67:29: error: request for member ‘data’ in ‘right’, which is of non-class type ‘int’
67 | return left.append(right.data(), right.size());
| ^~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:67:43: error: request for member ‘size’ in ‘right’, which is of non-class type ‘int’
67 | return left.append(right.data(), right.size());
| ^~~~
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx: At global scope:
/home/utkarsh/root_v6.24.04/root/include/ROOT/RStringView.hxx:84:17: error: expected type-specifier
84 | operator std::string_view() const { return std::string_view(fData,fLength); }
| ^~~
In file included from /home/utkarsh/root_v6.24.04/root/include/TNamed.h:26,
from /home/utkarsh/go4/build/include/TGo4EventElement.h:17,
from AIDA_Decay_Event_Store.h:4,
from Raw_Event.h:13,
from AIDA_Event.h:5,
from EventUnpackStore.h:20,
from EventUnpackStore.cxx:16:
/home/utkarsh/root_v6.24.04/root/include/TString.h:115:13: error: expected type-specifier
115 | operator std::string_view() const { return std::string_view(Data(),fExtent); }
| ^~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:280:32: error: ‘string_view’ in namespace ‘std’ does not name a type
280 | explicit TString(const std::string_view &sub);
| ^~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:280:27: note: ‘std::string_view’ is only available from C++17 onwards
280 | explicit TString(const std::string_view &sub);
| ^~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:317:37: error: ‘string_view’ in namespace ‘std’ does not name a type
317 | TString &operator=(const std::string_view &s);
| ^~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:317:32: note: ‘std::string_view’ is only available from C++17 onwards
317 | TString &operator=(const std::string_view &s);
| ^~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:444:9: error: ‘string_view’ in namespace ‘std’ does not name a type
444 | std::string_view View() const { return std::string_view(GetPointer(),Length()); }
| ^~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:444:4: note: ‘std::string_view’ is only available from C++17 onwards
444 | std::string_view View() const { return std::string_view(GetPointer(),Length()); }
| ^~~
In file included from /home/utkarsh/root_v6.24.04/root/include/TNamed.h:26,
from /home/utkarsh/go4/build/include/TGo4EventElement.h:17,
from AIDA_Decay_Event_Store.h:4,
from Raw_Event.h:13,
from AIDA_Event.h:5,
from EventUnpackStore.h:20,
from EventUnpackStore.cxx:16:
/home/utkarsh/root_v6.24.04/root/include/TString.h:839:53: error: ‘string_view’ in namespace ‘std’ does not name a type
839 | inline Bool_t operator==(const char *s1, const std::string_view &s2)
| ^~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:839:48: note: ‘std::string_view’ is only available from C++17 onwards
839 | inline Bool_t operator==(const char *s1, const std::string_view &s2)
| ^~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:839:15: error: ‘Bool_t operator==(const char*, const int&)’ must have an argument of class or enumerated type
839 | inline Bool_t operator==(const char *s1, const std::string_view &s2)
| ^~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:844:37: error: ‘string_view’ in namespace ‘std’ does not name a type
844 | inline Bool_t operator==(const std::string_view &s1, const char *s2)
| ^~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:844:32: note: ‘std::string_view’ is only available from C++17 onwards
844 | inline Bool_t operator==(const std::string_view &s1, const char *s2)
| ^~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:844:15: error: ‘Bool_t operator==(const int&, const char*)’ must have an argument of class or enumerated type
844 | inline Bool_t operator==(const std::string_view &s1, const char *s2)
| ^~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:857:37: error: ‘string_view’ in namespace ‘std’ does not name a type
857 | std::string printValue(const std::string_view* val);
| ^~~~~~~~~~~
/home/utkarsh/root_v6.24.04/root/include/TString.h:857:32: note: ‘std::string_view’ is only available from C++17 onwards
857 | std::string printValue(const std::string_view* val);
| ^~~
make: *** [/home/utkarsh/go4/build/Makefile.rules:50: EventUnpackStore.o] Error 1
utkarsh@utkarsh-Inspiron-14-5408:~/Documents/ms theisis project/Thorium_SINP_GSI/SonOfOdin2021_despec
Can you please share your inputs here as to what is going wrong, thanks a lot.