opencog / moses

MOSES Machine Learning: Meta-Optimizing Semantic Evolutionary Search. See also AS-MOSES https://github.com/opencog/asmoses but kept to guaranty backward compatibility.

Home Page:https://wiki.opencog.org/w/Meta-Optimizing_Semantic_Evolutionary_Search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

‘pow’ is not a member of ‘std’

StrangeTcy opened this issue · comments

While makeing (a freshly git pulled)MOSES, I've run into an error:

[ 68%] Building CXX object moses/moses/CMakeFiles/moses.dir/moses/moses_main.cc.o
In file included from /home/myname/opencog/moses/moses/moses/moses/../metapopulation/metapopulation.h:42:0,
                 from /home/enoch/opencog/moses/moses/moses/moses/moses_main.cc:27:
/usr/local/include/opencog/util/boost_ext/accumulators/statistics/geometric_mean_mirror.h: In member function ‘boost::accumulators::impl::geometric_mean_mirror_impl<Sample, Tag>::result_type boost::accumulators::impl::geometric_mean_mirror_impl<Sample, Tag>::result(const Args&) const’:
/usr/local/include/opencog/util/boost_ext/accumulators/statistics/geometric_mean_mirror.h:73:24: error: ‘pow’ is not a member of ‘std’
             return 1 - std::pow(this->prod, 1.0 / count(args));

This looks like a simple C++ error, and should be easy to correct, unless I'm missing something vital.

Thanks for your report!