Jump to content
  • 0

Gcc48 Compile erro ( itertype )


Panda88

Question

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

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 7

      Metin2 2003 Beta Client!!!!!

    2. 32

      Boss Effect Over Head

    3. 1

      Open Source API for Metin2 Server Management - Early Development

    4. 0

      Official Item Combination [18.4]

    5. 2

      Proper SIGNAL management for Windows

    6. 2

      Proper SIGNAL management for Windows

    7. 4

      syserr erorr ( not working OK button on client )

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.