CZEboy 29 Posted June 12, 2017 Share Posted June 12, 2017 Hello guys, I have problem while compiling on the freeBSD11 i installed clang and all needed stuff, all recompiled(including succesfull db compilation) and saddly on the game compilation I got this error: In file included from BattleArena.cpp:7: In file included from ./sectree_manager.h:4: ./sectree.h:90:29: error: no viable conversion from 'std::__1::list<SECTREE *, std::__1::allocator<SECTREE *> >::const_iterator' (aka '__list_const_iterator<SECTREE *, void *>') to 'LPSECTREE_LIST::iterator' (aka '__list_iterator<SECTREE *, void *>') ...LPSECTREE_LIST::iterator it_tree = m_neighbor_list.begin(); ^ ~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/list:274:29: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::__1::list<SECTREE *, std::__1::allocator<SECTREE *> >::const_iterator' (aka '__list_const_iterator<SECTREE *, void *>') to 'const std::__1::__list_iterator<SECTREE *, void *> &' for 1st argument class _LIBCPP_TYPE_VIS_ONLY __list_iterator ^ /usr/include/c++/v1/list:274:29: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'std::__1::list<SECTREE *, std::__1::allocator<SECTREE *> >::const_iterator' (aka '__list_const_iterator<SECTREE *, void *>') to 'std::__1::__list_iterator<SECTREE *, void *> &&' for 1st argument 1 error generated. gmake: *** [Makefile:98: OBJDIR_GAME/BattleArena.o] Error 1 Can you help me solve this please ? Kind regards, CZEboy Link to comment Share on other sites More sharing options...
casperkral12 0 Posted November 22, 2018 Share Posted November 22, 2018 (edited) On 6/13/2017 at 1:16 AM, CZEboy said: Hello guys, I have problem while compiling on the freeBSD11 i installed clang and all needed stuff, all recompiled(including succesfull db compilation) and saddly on the game compilation I got this error: In file included from BattleArena.cpp:7: In file included from ./sectree_manager.h:4: ./sectree.h:90:29: error: no viable conversion from 'std::__1::list<SECTREE *, std::__1::allocator<SECTREE *> >::const_iterator' (aka '__list_const_iterator<SECTREE *, void *>') to 'LPSECTREE_LIST::iterator' (aka '__list_iterator<SECTREE *, void *>') ...LPSECTREE_LIST::iterator it_tree = m_neighbor_list.begin(); ^ ~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/list:274:29: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::__1::list<SECTREE *, std::__1::allocator<SECTREE *> >::const_iterator' (aka '__list_const_iterator<SECTREE *, void *>') to 'const std::__1::__list_iterator<SECTREE *, void *> &' for 1st argument class _LIBCPP_TYPE_VIS_ONLY __list_iterator ^ /usr/include/c++/v1/list:274:29: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'std::__1::list<SECTREE *, std::__1::allocator<SECTREE *> >::const_iterator' (aka '__list_const_iterator<SECTREE *, void *>') to 'std::__1::__list_iterator<SECTREE *, void *> &&' for 1st argument 1 error generated. gmake: *** [Makefile:98: OBJDIR_GAME/BattleArena.o] Error 1 Can you help me solve this please ? Kind regards, CZEboy Have you solved the problem? I'm having the same problem Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
arlinamid 1139 Posted December 24, 2019 Share Posted December 24, 2019 I'm have a same problem, anybody could help me. Best regards, Arlinamid Link to comment Share on other sites More sharing options...
Premium Jira 465 Posted December 26, 2019 Premium Share Posted December 26, 2019 auto it_tree = m_neighbor_list.ebing(); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now