Message: error: ‘XML_Index’ was not declared in this scope Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None error: ‘XML_Index’ was not declared in this scope 

Forum: Installation and Configuration
Date: 25 Sep, 2017
From: Shane Hesprich <Shane Hesprich>

Hello. I am trying to install geant4.10.3 on a linux redhat cluster running RHEL 5.6. I am using cmake version 3.5 and gcc version 4.9.3 (which does have stdc++11 compatibility). I unpacked the geant4 source code to the directory ~/src/geant4.3.10 and my build directory is in ~/bin/geant4.3.10. Additionally, there are multiple compilers installed on this machine and the compiler I am using in on the path /exports/apps/gcc/4.9.3/bin. Finally these are the commands I have used to install the program

cmake -DCMAKE_INSTALL_PREFIX=~/bin/geant4.10.3/ -DCMAKE_C_COMPILER=/exports/apps/gcc/4.9.3/bin/gcc -DCMAKE_CXX_COMPILER=/exports/apps/gcc/4.9.3/bin/g++ ~/src/geant4.10.3/

cmake -DGEANT4_INSTALL_DATA=ON .

Both of these ran without error or issue. However when I attempt to run the make command from the directory ~/bin/geant4.3.10, I get the following errors:

[  9%] Building CXX object source/analysis/CMakeFiles/G4analysis.dir/xml/src/G4XmlAnalysisReader.cc.o
In file included from ~/src/geant4.10.3/source/analysis/g4tools/include/tools/raxml:9:0,
                 from ~/src/geant4.10.3/source/analysis/xml/include/G4XmlAnalysisReader.hh:44,
                 from ~/src/geant4.10.3/source/analysis/xml/src/G4XmlAnalysisReader.cc:30:
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader: In member function ‘bool tools::xml::loader::parse_buffer(size_t, const char*, XML_StartElementHandler, XML_EndElementHandler, void*)’:
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader:221:9: error: ‘XML_Index’ was not declared in this scope
        {XML_Index pos = XML_GetCurrentByteIndex(_parser);
         ^
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader:222:19: error: expected ‘;’ before ‘pmn’
         XML_Index pmn = tools::mx<XML_Index>(pos-10,0);
                   ^
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader:223:19: error: expected ‘;’ before ‘pmx’
         XML_Index pmx = tools::mn<XML_Index>(pos+10,XML_Index(aSize)-1);
                   ^
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader:225:23: error: expected ‘;’ before ‘p’
        {for(XML_Index p=pmn;p<=pmx;p++) {c[0] = *(aBuffer+p);m_out << c;}
                       ^
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader:225:29: error: ‘p’ was not declared in this scope
        {for(XML_Index p=pmn;p<=pmx;p++) {c[0] = *(aBuffer+p);m_out << c;}
                             ^
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader:225:32: error: ‘pmx’ was not declared in this scope
        {for(XML_Index p=pmn;p<=pmx;p++) {c[0] = *(aBuffer+p);m_out << c;}
                                ^
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader:227:23: error: expected ‘;’ before ‘p’
        {for(XML_Index p=pmn;p<pos;p++) m_out << " ";
                       ^
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader:227:29: error: ‘p’ was not declared in this scope
        {for(XML_Index p=pmn;p<pos;p++) m_out << " ";
                             ^
~/src/geant4.10.3/source/analysis/g4tools/include/tools/xml/loader:227:31: error: ‘pos’ was not declared in this scope
        {for(XML_Index p=pmn;p<pos;p++) m_out << " ";
                               ^
make[2]: *** [source/analysis/CMakeFiles/G4analysis.dir/xml/src/G4XmlAnalysisReader.cc.o] Error 1
make[1]: *** [source/analysis/CMakeFiles/G4analysis.dir/all] Error 2
make: *** [all] Error 2

Any assistance on this issue would be greatly appreciated!

Thank you, Shane

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: error: ‘XML_Index’ was not declared in this scope   (Ziyi Guo - 20 Oct, 2017)
 Add Message Add Message
to: "error: ‘XML_Index’ was not declared in this scope"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]