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.
https://wiki.opencog.org/w/Meta-Optimizing_Semantic_Evolutionary_Search
Other
127 stars 83 forks source link

‘pow’ is not a member of ‘std’ #44

Closed StrangeTcy closed 7 years ago

StrangeTcy commented 7 years ago

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.

ngeiswei commented 7 years ago

Thanks for your report!