2015年1月4日 星期日

install error on rnnlib

rnnlib source
http://sourceforge.net/p/rnnl/wiki/Home/

refer to
http://sourceforge.net/p/rnnl/discussion/1183966/thread/84f2025b/#742b/f9c9/c849/5687

error message:
Helpers.hpp:311:41: error: ‘range_min_size’ was not declared in this scope
Container.hpp:157:24: error: ‘resize’ was not declared in this scope

Helpers.hpp:
Moving the 4 templates for range_min_size to the top of the file fixed all the issues.

move line 532 ~ 547 to line 163

 template<class R1, class R2> static size_t range_min_size (const R1& a, const R2& b)
{
    return min(boost::size(a), boost::size(b));
}
template<class R1, class R2, class R3> static size_t range_min_size (const R1& a, const R2& b, const R3& c)
{
    return min(min(boost::size(a), boost::size(b)), boost::size(c));
}
template<class R1, class R2, class R3, class R4> static size_t range_min_size (const R1& a, const R2& b, const R3& c, const R4& d)
{
    return min(min(min(boost::size(a), boost::size(b)), boost::size(c)), boost::size(d));
}
template<class R1, class R2, class R3, class R4, class R5> static size_t range_min_size (const R1& a, const R2& b, const R3& c, const R4& d, const R5& e)
{
    return min(min(min(min(boost::size(a), boost::size(b)), boost::size(c)), boost::size(d)), boost::size(e));
}

Container.hpp:
On line 157, revise "resize" instead of "this->resize."


沒有留言:

張貼留言