<div dir="ltr">Hello everybody,<div><br></div><div>I'm trying to compile GATE 7.1 but I'm getting the following error:</div><div><br></div><div><br></div><div><div>[ 32%] [ 32%] Building CXX object CMakeFiles/Gate.dir/source/geometry/src/GateVolumePlacement.cc.o</div><div>Building CXX object CMakeFiles/Gate.dir/source/geometry/src/GateEccentRotMove.cc.o</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc: In member function âvoid GateARFTableMgr::SaveARFToBinaryFile()â:</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:225:1: error: âofstreamâ was not declared in this scope</div><div> ofstream dest;</div><div> ^</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:225:1: note: suggested alternative:</div><div>In file included from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/ios:38:0,</div><div> from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/istream:38,</div><div> from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/sstream:38,</div><div> from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/complex:45,</div><div> from /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Types.hh:67,</div><div> from /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4ios.hh:39,</div><div> from /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/globals.hh:49,</div><div> from /home.mirg/GATE71/opengate-public/source/arf/include/GateARFTableMgr.hh:12,</div><div> from /home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:13:</div><div>/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/iosfwd:160:34: note: âstd::ofstreamâ</div><div> typedef basic_ofstream<char> ofstream;</div><div> ^</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:225:10: error: expected â;â before âdestâ</div><div> ofstream dest;</div><div> ^</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:226:1: error: âdestâ was not declared in this scope</div><div> dest.open ( theFN.c_str() );</div><div> ^</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc: In member function âvoid GateARFTableMgr::LoadARFFromBinaryFile(G4String)â:</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:301:3: error: âifstreamâ was not declared in this scope</div><div> ifstream dest;</div><div> ^</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:301:3: note: suggested alternative:</div><div>In file included from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/ios:38:0,</div><div> from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/istream:38,</div><div> from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/sstream:38,</div><div> from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/complex:45,</div><div> from /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Types.hh:67,</div><div> from /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4ios.hh:39,</div><div> from /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/globals.hh:49,</div><div> from /home.mirg/GATE71/opengate-public/source/arf/include/GateARFTableMgr.hh:12,</div><div> from /home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:13:</div><div>/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/iosfwd:157:34: note: âstd::ifstreamâ</div><div> typedef basic_ifstream<char> ifstream;</div><div> ^</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:301:12: error: expected â;â before âdestâ</div><div> ifstream dest;</div><div> ^</div><div>/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:302:3: error: âdestâ was not declared in this scope</div><div> dest.open ( theFileName.c_str(),std::ios::binary );</div><div> ^</div><div>[ 32%] Building CXX object CMakeFiles/Gate.dir/source/geometry/src/GateDMapdt_core.cc.o</div><div>make[2]: *** [CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgr.cc.o] Error 1</div><div>make[2]: *** Waiting for unfinished jobs....</div><div>make[1]: *** [CMakeFiles/Gate.dir/all] Error 2</div><div>make: *** [all] Error 2</div><div><br></div><div>Any suggestions on how I can solve it?</div><div><br></div><div>Thank you,</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Carlos F Uribe</div></div></div>
</div></div>