Panda88 9 Posted December 28, 2014 Share Posted December 28, 2014 Hey i try Compile the Src with Gcc48, in Windows with VC120 Works. compile BattleArena.cpp In file included from sectree_manager.h:4:0, from BattleArena.cpp:7: sectree.h:142:4: warnieng: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat] itertype(m_set_entity) it = m_set_entity.begin(); ^ In file included from ../../../../extern/include/boost/tuple/tuple.hpp:33:0, from ../../../../extern/include/boost/unordered/detail/allocate.hpp:27, from ../../../../extern/include/boost/unordered/detail/buckets.hpp:15, from ../../../../extern/include/boost/unordered/detail/table.hpp:10, from ../../../../extern/include/boost/unordered/detail/equivalent.hpp:14, from ../../../../extern/include/boost/unordered/unordered_map.hpp:17, from ../../../../extern/include/boost/unordered_map.hpp:16, from char.h:4, from BattleArena.cpp:6: ../../../../extern/include/boost/tuple/detail/tuple_basic.hpp: In function 'typename boost::tuples::access_traits<typename boost::tuples::element<N, boost::tuples::cons<HT, TT> >::type>::const_type boost::tuples::get(const boost::tuples::cons<HT, TT>&)': ../../../../extern/include/boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef 'cons_element' locally defined but not used [-Wunused-local-typedefs] typedef BOOST_DEDUCED_TYPENAME impl::type cons_element; ^ In file included from stdafx.h:37:0, from BattleArena.cpp:1: sectree.h: In member function 'bool SECTREE::for_each_entity_for_find_victim(_Func&)': typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive] #define itertype(v) decltype((v).begin()) ^ sectree.h:142:4: note: in expansion of macro 'itertype' itertype(m_set_entity) it = m_set_entity.begin(); ^ typedef.h:105:41: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) #define itertype(v) decltype((v).begin()) ^ sectree.h:142:4: note: in expansion of macro 'itertype' itertype(m_set_entity) it = m_set_entity.begin(); ^ In file included from sectree_manager.h:4:0, from BattleArena.cpp:7: sectree.h:142:27: error: expected ';' before 'it' itertype(m_set_entity) it = m_set_entity.begin(); ^ sectree.h:144:11: error: 'it' was not declared in this scope while (it != m_set_entity.end()) ^ In file included from stdafx.h:37:0, from BattleArena.cpp:1: sectree.h: In member function 'void SECTREE::for_each_entity(_Func&)': typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive] #define itertype(v) decltype((v).begin()) ^ sectree.h:189:4: note: in expansion of macro 'itertype' itertype(m_set_entity) it = m_set_entity.begin(); ^ In file included from sectree_manager.h:4:0, from BattleArena.cpp:7: sectree.h:189:27: error: expected ';' before 'it' itertype(m_set_entity) it = m_set_entity.begin(); ^ sectree.h:190:12: error: 'it' was not declared in this scope for ( ; it != m_set_entity.end(); ++it) { ^ In file included from stdafx.h:37:0, from BattleArena.cpp:1: sectree.h: In instantiation of 'void SECTREE::for_each_entity(_Func&) [with _Func = FCollectEntity]': sectree_manager.h:79:39: required from 'void SECTREE_MAP::for_each(Func&) [with Func = FWarpToHome]' BattleArena.cpp:180:28: required from here typedef.h:105:41: error: 'decltype' was not declared in this scope #define itertype(v) decltype((v).begin()) ^ sectree.h:189:4: note: in expansion of macro 'itertype' itertype(m_set_entity) it = m_set_entity.begin(); ^ Makefile:121: recipe for target 'OBJDIR/BattleArena.o' failed gmake: *** [OBJDIR/BattleArena.o] Error 1 Link to comment Share on other sites More sharing options...
Panda88 9 Posted December 29, 2014 Author Share Posted December 29, 2014 any one can help Link to comment Share on other sites More sharing options...
Lami666 4 Posted January 8, 2015 Share Posted January 8, 2015 Hey you fix this bug? Link to comment Share on other sites More sharing options...
Reboot 772 Posted January 8, 2015 Share Posted January 8, 2015 Gcc uses other syntaxes, other bookstores with VSS. If you do not experience not to succeed, compiles normal source 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