Tipologie server: PvM
*Resursă folosită:-
*ServerFiles utilizat: serverfiles/serverfile-clean-freebsd-dm ... 06035.html
*Syserr:
Poză:
*Detalii suplimentare: folosesc VDS cu freebds13, are toate porturile necesare instalate si gcc12. As dori va un tutorial pentru rezolvarea problemei va rog!
ERROR:
Cod: Selectaţi tot
/usr/local/lib/gcc12/include/c++/bits/stl_list.h:632:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
632 | class list : protected _List_base<_Tp, _Alloc>
| ^~~~
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note: 'template<class T, class Allocator> class std::list'
81 | template <class T, class Allocator> class list;
| ^~~~
char.h:969:17: error: reference to 'list' is ambiguous
969 | std::list<CAffect *> m_list_pkAffect;
| ^~~
/usr/local/lib/gcc12/include/c++/bits/stl_list.h:632:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
632 | class list : protected _List_base<_Tp, _Alloc>
| ^~~~
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note: 'template<class T, class Allocator> class std::list'
81 | template <class T, class Allocator> class list;
| ^~~~
char_manager.cpp: In member function 'void CHARACTER_MANAGER::Update(int)':
char_manager.cpp:679:77: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = CHARACTER; _Arg = unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations]
679 | for_each(v.begin(), v.end(), bind2nd(mem_fun(&CHARACTER::UpdateCharacter), iPulse));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc12/include/c++/bits/stl_function.h:1395:5: note: declared here
1395 | mem_fun(_Ret (_Tp::*__f)(_Arg))
| ^~~~~~~
char_manager.cpp:679:69: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t<void, CHARACTER, unsigned int>; _Tp = int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations]
679 | for_each(v.begin(), v.end(), bind2nd(mem_fun(&CHARACTER::UpdateCharacter), iPulse));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/gcc12/include/c++/bits/stl_function.h:1438:
/usr/local/lib/gcc12/include/c++/backward/binders.h:172:5: note: declared here
172 | bind2nd(const _Operation& __fn, const _Tp& __x)
| ^~~~~~~
char_manager.cpp:697:69: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = CHARACTER; _Arg = unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations]
697 | for_each(v.begin(), v.end(), bind2nd(mem_fun(&CHARACTER::UpdateStateMachine), iPulse));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc12/include/c++/bits/stl_function.h:1395:5: note: declared here
1395 | mem_fun(_Ret (_Tp::*__f)(_Arg))
| ^~~~~~~
char_manager.cpp:697:61: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t<void, CHARACTER, unsigned int>; _Tp = int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations]
697 | for_each(v.begin(), v.end(), bind2nd(mem_fun(&CHARACTER::UpdateStateMachine), iPulse));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc12/include/c++/backward/binders.h:172:5: note: declared here
172 | bind2nd(const _Operation& __fn, const _Tp& __x)
| ^~~~~~~
char_manager.cpp:708:56: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = CHARACTER; _Arg = unsigned int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations]
708 | bind2nd(mem_fun(&CHARACTER::UpdateStateMachine), iPulse));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc12/include/c++/bits/stl_function.h:1395:5: note: declared here
1395 | mem_fun(_Ret (_Tp::*__f)(_Arg))
| ^~~~~~~
char_manager.cpp:708:48: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t<void, CHARACTER, unsigned int>; _Tp = int]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations]
708 | bind2nd(mem_fun(&CHARACTER::UpdateStateMachine), iPulse));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc12/include/c++/backward/binders.h:172:5: note: declared here
172 | bind2nd(const _Operation& __fn, const _Tp& __x)
| ^~~~~~~
In file included from char.cpp:49:
arena.h:82:9: error: reference to 'list' is ambiguous
82 | std::list<CArena*> m_listArena;
| ^~~
/usr/local/lib/gcc12/include/c++/bits/stl_list.h:632:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
632 | class list : protected _List_base<_Tp, _Alloc>
| ^~~~
../../../Extern/include/boost/detail/container_fwd.hpp:81:47: note: 'template<class T, class Allocator> class std::list'
81 | template <class T, class Allocator> class list;
| ^~~~
gmake: *** [Makefile:191: .obj/building.o] Error 1
gmake: *** [Makefile:191: .obj/char_battle.o] Error 1
gmake: *** [Makefile:189: .obj/char_quickslot.o] Error 1
gmake: *** [Makefile:189: .obj/char_manager.o] Error 1
gmake: *** [Makefile:189: .obj/char.o] Error 1





de