c++ - error C2665 when building luabind -


i'm using lua5.1 , boost 1.58.0 try , build luabind-0.7.1-rc1. environment variables set properly. i've been searching answer week without success.

whenever try build luabind 20 of same error:

error c2665: 'boost::operator ==' : none of 4 overloads convert argument types s:\luabind-0.7.1-rc1\luabind\object.hpp 542 1 

all errors seem thrown last 2 lines before #undef:

// needed because of strange adl issues.  #define luabind_operator_adl_wknd(op) \   inline bool operator op( \       basic_iterator<basic_access> const& x \     , basic_iterator<basic_access> const& y) \   { \       return boost::operator op(x, y); \   } \  \   inline bool operator op( \       basic_iterator<raw_access> const& x \     , basic_iterator<raw_access> const& y) \   { \       return boost::operator op(x, y); \   }    luabind_operator_adl_wknd(==)   luabind_operator_adl_wknd(!=)  #undef luabind_operator_adl_wknd 

and here's of output itself(it repeats this):

s:\luabind-0.7.1-rc1\luabind\object.hpp(542): error c2665: 'boost::operator ==' : none of 4 overloads convert argument types           s:\boost_1_58_0\boost\function\function_base.hpp(750): 'bool boost::operator ==(boost::detail::function::useless_clear_type *,const boost::function_base &)'           s:\boost_1_58_0\boost\function\function_base.hpp(738): or       'bool boost::operator ==(const boost::function_base &,boost::detail::function::useless_clear_type *)'           s:\boost_1_58_0\boost\function\function_base.hpp(809): or       'bool boost::operator ==<luabind::detail::basic_iterator<luabind::detail::basic_access>>(functor,const boost::function_base &)'                     [               functor=luabind::detail::basic_iterator<luabind::detail::basic_access>           ]           s:\boost_1_58_0\boost\function\function_base.hpp(800): or       'bool boost::operator ==<luabind::detail::basic_iterator<luabind::detail::basic_access>>(const boost::function_base &,functor)'                     [               functor=luabind::detail::basic_iterator<luabind::detail::basic_access>           ]           while trying match argument list '(const luabind::detail::basic_iterator<luabind::detail::basic_access>, const luabind::detail::basic_iterator<luabind::detail::basic_access>)' 

does have insight or experience problem? causing error, how can fix it, , how can avoid in future?

you need use older boost library. luabind 0.7.1 2008. try boost version around same year. had exact same problem luabind 0.8.1 , boost 1.58.0.

in case 1.55.0 worked great , works vs2013. apparently older versions of boost needed patched vs2013.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -