src/gui/dialogs/multiplayer/mp_staging.cpp: In member function ‘void gui2::tmp_staging::add_side_node(gui2::twindow&, ng::side_engine_ptr)’: src/gui/dialogs/multiplayer/mp_staging.cpp:271:100: error: no matching function for call to ‘bind(, gui2::tmp_staging*, ng::side_engine_ptr&, std::reference_wrapper)’ &tmp_staging::on_side_slider_change, this, side, std::ref(slider_gold))); ^ In file included from /usr/include/c++/6/memory:79:0, from /usr/include/boost/move/algorithm.hpp:33, from /usr/include/boost/move/move.hpp:32, from /usr/include/boost/variant/detail/move.hpp:28, from /usr/include/boost/variant/detail/initializer.hpp:23, from /usr/include/boost/variant/variant.hpp:30, from src/config.hpp:45, from src/ai/configuration.hpp:23, from src/gui/dialogs/multiplayer/mp_staging.hpp:17, from src/gui/dialogs/multiplayer/mp_staging.cpp:16: /usr/include/c++/6/functional:1331:5: note: candidate: template typename std::_Bind_helper::value, _Func, _BoundArgs ...>::type std::bind(_Func&&, _BoundArgs&& ...) bind(_Func&& __f, _BoundArgs&&... __args) ^~~~ /usr/include/c++/6/functional:1331:5: note: template argument deduction/substitution failed: src/gui/dialogs/multiplayer/mp_staging.cpp:271:100: note: couldn't deduce template parameter ‘_Func’ &tmp_staging::on_side_slider_change, this, side, std::ref(slider_gold))); ^ In file included from /usr/include/c++/6/memory:79:0, from /usr/include/boost/move/algorithm.hpp:33, from /usr/include/boost/move/move.hpp:32, from /usr/include/boost/variant/detail/move.hpp:28, from /usr/include/boost/variant/detail/initializer.hpp:23, from /usr/include/boost/variant/variant.hpp:30, from src/config.hpp:45, from src/ai/configuration.hpp:23, from src/gui/dialogs/multiplayer/mp_staging.hpp:17, from src/gui/dialogs/multiplayer/mp_staging.cpp:16: /usr/include/c++/6/functional:1359:5: note: candidate: template typename std::_Bindres_helper<_Result, _Func, _BoundArgs>::type std::bind(_Func&&, _BoundArgs&& ...) bind(_Func&& __f, _BoundArgs&&... __args) ^~~~ /usr/include/c++/6/functional:1359:5: note: template argument deduction/substitution failed: src/gui/dialogs/multiplayer/mp_staging.cpp:271:100: note: couldn't deduce template parameter ‘_Result’ &tmp_staging::on_side_slider_change, this, side, std::ref(slider_gold))); ^ src/gui/dialogs/multiplayer/mp_staging.cpp:277:104: error: no matching function for call to ‘bind(, gui2::tmp_staging*, ng::side_engine_ptr&, std::reference_wrapper)’ &tmp_staging::on_side_slider_change, this, side, std::ref(slider_income))); ^ In file included from /usr/include/c++/6/memory:79:0, from /usr/include/boost/move/algorithm.hpp:33, from /usr/include/boost/move/move.hpp:32, from /usr/include/boost/variant/detail/move.hpp:28, from /usr/include/boost/variant/detail/initializer.hpp:23, from /usr/include/boost/variant/variant.hpp:30, from src/config.hpp:45, from src/ai/configuration.hpp:23, from src/gui/dialogs/multiplayer/mp_staging.hpp:17, from src/gui/dialogs/multiplayer/mp_staging.cpp:16: /usr/include/c++/6/functional:1331:5: note: candidate: template typename std::_Bind_helper::value, _Func, _BoundArgs ...>::type std::bind(_Func&&, _BoundArgs&& ...) bind(_Func&& __f, _BoundArgs&&... __args) ^~~~ /usr/include/c++/6/functional:1331:5: note: template argument deduction/substitution failed: src/gui/dialogs/multiplayer/mp_staging.cpp:277:104: note: couldn't deduce template parameter ‘_Func’ &tmp_staging::on_side_slider_change, this, side, std::ref(slider_income))); ^ In file included from /usr/include/c++/6/memory:79:0, from /usr/include/boost/move/algorithm.hpp:33, from /usr/include/boost/move/move.hpp:32, from /usr/include/boost/variant/detail/move.hpp:28, from /usr/include/boost/variant/detail/initializer.hpp:23, from /usr/include/boost/variant/variant.hpp:30, from src/config.hpp:45, from src/ai/configuration.hpp:23, from src/gui/dialogs/multiplayer/mp_staging.hpp:17, from src/gui/dialogs/multiplayer/mp_staging.cpp:16: /usr/include/c++/6/functional:1359:5: note: candidate: template typename std::_Bindres_helper<_Result, _Func, _BoundArgs>::type std::bind(_Func&&, _BoundArgs&& ...) bind(_Func&& __f, _BoundArgs&&... __args) ^~~~ /usr/include/c++/6/functional:1359:5: note: template argument deduction/substitution failed: src/gui/dialogs/multiplayer/mp_staging.cpp:277:104: note: couldn't deduce template parameter ‘_Result’ &tmp_staging::on_side_slider_change, this, side, std::ref(slider_income))); ^ scons: *** [build/release/gui/dialogs/multiplayer/mp_staging.o] Error 1 src/gui/widgets/text.cpp: In function ‘void gui2::toggle_cursor_timer(bool)’: src/gui/widgets/text.cpp:257:5: error: ‘cursor_timer_’ was not declared in this scope if(cursor_timer_) { ^~~~~~~~~~~~~ src/gui/widgets/text.cpp:261:2: error: ‘cursor_timer_’ was not declared in this scope cursor_timer_ = enable ^~~~~~~~~~~~~ src/gui/widgets/text.cpp:262:16: error: ‘cursor_blink_rate_ms_’ was not declared in this scope ? add_timer(cursor_blink_rate_ms_, std::bind(&ttext_::cursor_timer_callback, this), true); ^~~~~~~~~~~~~~~~~~~~~ src/gui/widgets/text.cpp:262:58: error: ‘virtual void gui2::ttext_::cursor_timer_callback()’ is private within this context ? add_timer(cursor_blink_rate_ms_, std::bind(&ttext_::cursor_timer_callback, this), true); ^~~~~~~~~~~~~~~~~~~~~ In file included from src/gui/widgets/text.cpp:17:0: src/gui/widgets/text.hpp:270:15: note: declared private here virtual void cursor_timer_callback(); ^~~~~~~~~~~~~~~~~~~~~ src/gui/widgets/text.cpp:262:81: error: invalid use of ‘this’ in non-member function ? add_timer(cursor_blink_rate_ms_, std::bind(&ttext_::cursor_timer_callback, this), true); ^~~~ src/gui/widgets/text.cpp:262:93: error: expected ‘:’ before ‘;’ token ? add_timer(cursor_blink_rate_ms_, std::bind(&ttext_::cursor_timer_callback, this), true); ^ src/gui/widgets/text.cpp:262:93: error: expected primary-expression before ‘;’ token src/gui/widgets/text.cpp:263:4: error: expected primary-expression before ‘:’ token : 0; ^