[Gate-users] Compilation Error GATE 7.1

Carlos Uribe carluri at phas.ubc.ca
Thu Apr 30 23:19:26 CEST 2015


Hello everybody,

I'm trying to compile GATE 7.1 but I'm getting the following error:


[ 32%] [ 32%] Building CXX object
CMakeFiles/Gate.dir/source/geometry/src/GateVolumePlacement.cc.o
Building CXX object
CMakeFiles/Gate.dir/source/geometry/src/GateEccentRotMove.cc.o
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc: In
member function âvoid GateARFTableMgr::SaveARFToBinaryFile()â:
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:225:1:
error: âofstreamâ was not declared in this scope
 ofstream dest;
 ^
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:225:1:
note: suggested alternative:
In file included from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/ios:38:0,
                 from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/istream:38,
                 from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/sstream:38,
                 from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/complex:45,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Types.hh:67,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4ios.hh:39,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/globals.hh:49,
                 from
/home.mirg/GATE71/opengate-public/source/arf/include/GateARFTableMgr.hh:12,
                 from
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:13:
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/iosfwd:160:34: note:
âstd::ofstreamâ
   typedef basic_ofstream<char>   ofstream;
                                  ^
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:225:10:
error: expected â;â before âdestâ
 ofstream dest;
          ^
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:226:1:
error: âdestâ was not declared in this scope
 dest.open ( theFN.c_str() );
 ^
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc: In
member function âvoid GateARFTableMgr::LoadARFFromBinaryFile(G4String)â:
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:301:3:
error: âifstreamâ was not declared in this scope
   ifstream dest;
   ^
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:301:3:
note: suggested alternative:
In file included from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/ios:38:0,
                 from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/istream:38,
                 from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/sstream:38,
                 from
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/complex:45,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Types.hh:67,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4ios.hh:39,
                 from
/home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/globals.hh:49,
                 from
/home.mirg/GATE71/opengate-public/source/arf/include/GateARFTableMgr.hh:12,
                 from
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:13:
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/iosfwd:157:34: note:
âstd::ifstreamâ
   typedef basic_ifstream<char>   ifstream;
                                  ^
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:301:12:
error: expected â;â before âdestâ
   ifstream dest;
            ^
/home.mirg/GATE71/opengate-public/source/arf/src/GateARFTableMgr.cc:302:3:
error: âdestâ was not declared in this scope
   dest.open ( theFileName.c_str(),std::ios::binary );
   ^
[ 32%] Building CXX object
CMakeFiles/Gate.dir/source/geometry/src/GateDMapdt_core.cc.o
make[2]: *** [CMakeFiles/Gate.dir/source/arf/src/GateARFTableMgr.cc.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
make: *** [all] Error 2

Any suggestions on how I can solve it?

Thank you,

-- 
Carlos F Uribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20150430/f2a1334c/attachment-0001.html>


More information about the Gate-users mailing list