Comment #4 on issue 61 by
Muhammad...@gmail.com: Build fails with gcc 4.8
http://code.google.com/p/casacore/issues/detail?id=61
I am trying to build this in Ubuntu 13.10 and getting the error (at 32%),
In file included from
/home/md/Softs/casacore-read-only/tables/Tables/RecordGram.cc:39:0:
/home/md/Softs/casacore-read-only/tables/Tables/TableParse.h: In member
function ‘std::vector<casa::CountedPtr<casa::TableExprGroupFuncSet> >
casa::TableParseSelect::doGroupByAggrSingleKey(const
std::vector<casa::TableExprAggrNode*>&)’:
/home/md/Softs/casacore-read-only/tables/Tables/TableParse.h:663:17: error:
‘numeric_limits’ is not a member of ‘std’
T lastKey = std::numeric_limits<Double>::max();
^
/home/md/Softs/casacore-read-only/tables/Tables/TableParse.h:663:43: error:
expected primary-expression before ‘>’ token
T lastKey = std::numeric_limits<Double>::max();
^
/home/md/Softs/casacore-read-only/tables/Tables/TableParse.h:663:44: error:
‘::max’ has not been declared
T lastKey = std::numeric_limits<Double>::max();
^
/home/md/Softs/casacore-read-only/tables/Tables/TableParse.h:663:44: note:
suggested alternatives:
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/string:40,
from
/home/md/Softs/casacore-read-only/casa/BasicSL/String.h:35,
from
/home/md/Softs/casacore-read-only/tables/Tables/TableInfo.h:33,
from
/home/md/Softs/casacore-read-only/tables/Tables/BaseTable.h:34,
from
/home/md/Softs/casacore-read-only/tables/Tables/Table.h:34,
from
/home/md/Softs/casacore-read-only/tables/Tables/ExprNodeRep.h:33,
from
/home/md/Softs/casacore-read-only/tables/Tables/ExprNode.h:33,
from
/home/md/Softs/casacore-read-only/tables/Tables/RecordGram.cc:34:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: ‘std::max’
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
In file included from
/home/md/Softs/casacore-read-only/tables/Tables/RecordGram.cc:34:0:
/home/md/Softs/casacore-read-only/tables/Tables/ExprNode.h:1688:22: note:
‘casa::max’
inline TableExprNode max (const TableExprNode& node)
^
make[2]: *** [tables/CMakeFiles/casa_tables.dir/Tables/RecordGram.cc.o]
Error 1
make[1]: *** [tables/CMakeFiles/casa_tables.dir/all] Error 2