Code: Select all
[ 0%] [ 0%] Building CXX object CMakeFiles/core_static.dir/Empire/Empire.cpp.o
Building CXX object CMakeFiles/core_static.dir/universe/Building.cpp.o
[ 20%] Built target parse_static
[ 21%] Building CXX object CMakeFiles/core_static.dir/universe/Condition.cpp.o
In file included from FreeOrion/universe/Universe.h:8:0,
from FreeOrion/universe/UniverseObject.h:5,
from FreeOrion/universe/Building.h:5,
from FreeOrion/universe/Building.cpp:1:
FreeOrion/universe/ObjectMap.h: In member function ‘const std::pair<int, const T*>* ObjectMap::const_iterator<T>::operator->() [with T = UniverseObject]’:
FreeOrion/universe/Building.cpp:227:27: instantiated from here
FreeOrion/universe/ObjectMap.h:52:23: error: taking address of temporary [-fpermissive]
FreeOrion/Empire/Empire.cpp: In member function ‘const std::map<int, std::set<int> > Empire::VisibleStarlanes() const’:
FreeOrion/Empire/Empire.cpp:1802:22: warning: unused variable ‘objects’ [-Wunused-variable]
make[2]: *** [CMakeFiles/core_static.dir/universe/Building.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from FreeOrion/Empire/../universe/Universe.h:8:0,
from FreeOrion/Empire/../universe/UniverseObject.h:5,
from FreeOrion/Empire/Empire.h:8,
from FreeOrion/Empire/Empire.cpp:1:
FreeOrion/Empire/../universe/ObjectMap.h: In member function ‘ObjectMap::value_iterator<T> ObjectMap::begin_values() [with T = System]’:
FreeOrion/Empire/Empire.cpp:1776:90: instantiated from here
FreeOrion/Empire/../universe/ObjectMap.h:306:25: error: could not convert ‘(& ObjectMap::Map [with T = System]())->std::map<_Key, _Tp, _Compare, _Alloc>::begin [with _Key = int, _Tp = System*, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, System*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, System*> >]()’ from ‘std::map<int, System*>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, System*> >}’ to ‘ObjectMap::value_iterator<System>’
FreeOrion/Empire/../universe/ObjectMap.h: In member function ‘ObjectMap::value_iterator<T> ObjectMap::end_values() [with T = System]’:
FreeOrion/Empire/Empire.cpp:1777:49: instantiated from here
FreeOrion/Empire/../universe/ObjectMap.h:310:23: error: could not convert ‘(& ObjectMap::Map [with T = System]())->std::map<_Key, _Tp, _Compare, _Alloc>::end [with _Key = int, _Tp = System*, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, System*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, System*> >]()’ from ‘std::map<int, System*>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, System*> >}’ to ‘ObjectMap::value_iterator<System>’
In file included from FreeOrion/Empire/../universe/Universe.h:8:0,
from FreeOrion/Empire/../universe/UniverseObject.h:5,
from FreeOrion/Empire/Empire.h:8,
from FreeOrion/Empire/Empire.cpp:1:
FreeOrion/Empire/../universe/ObjectMap.h: In member function ‘const std::pair<int, const T*>* ObjectMap::const_iterator<T>::operator->() [with T = System]’:
FreeOrion/Empire/../universe/ObjectMap.h:352:9: instantiated from ‘std::vector<int> ObjectMap::FindObjectIDs() const [with T = System]’
FreeOrion/Empire/Empire.cpp:1460:101: instantiated from here
FreeOrion/Empire/../universe/ObjectMap.h:52:23: error: taking address of temporary [-fpermissive]
In file included from FreeOrion/Empire/../universe/Universe.h:8:0,
from FreeOrion/Empire/../universe/UniverseObject.h:5,
from FreeOrion/Empire/Empire.h:8,
from FreeOrion/Empire/Empire.cpp:1:
FreeOrion/Empire/../universe/ObjectMap.h: In member function ‘ObjectMap::value_iterator<T> ObjectMap::begin_values() [with T = Fleet]’:
FreeOrion/Empire/../universe/ObjectMap.h:343:49: instantiated from ‘std::vector<T*> ObjectMap::FindObjects() [with T = Fleet]’
FreeOrion/Empire/Empire.cpp:1484:83: instantiated from here
FreeOrion/Empire/../universe/ObjectMap.h:306:25: error: could not convert ‘(& ObjectMap::Map [with T = Fleet]())->std::map<_Key, _Tp, _Compare, _Alloc>::begin [with _Key = int, _Tp = Fleet*, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, Fleet*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, Fleet*> >]()’ from ‘std::map<int, Fleet*>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, Fleet*> >}’ to ‘ObjectMap::value_iterator<Fleet>’
FreeOrion/Empire/../universe/ObjectMap.h: In member function ‘ObjectMap::value_iterator<T> ObjectMap::end_values() [with T = Fleet]’:
FreeOrion/Empire/../universe/ObjectMap.h:343:49: instantiated from ‘std::vector<T*> ObjectMap::FindObjects() [with T = Fleet]’
FreeOrion/Empire/Empire.cpp:1484:83: instantiated from here
FreeOrion/Empire/../universe/ObjectMap.h:310:23: error: could not convert ‘(& ObjectMap::Map [with T = Fleet]())->std::map<_Key, _Tp, _Compare, _Alloc>::end [with _Key = int, _Tp = Fleet*, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, Fleet*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, Fleet*> >]()’ from ‘std::map<int, Fleet*>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, Fleet*> >}’ to ‘ObjectMap::value_iterator<Fleet>’
FreeOrion/Empire/../universe/ObjectMap.h: In member function ‘ObjectMap::value_iterator<T> ObjectMap::begin_values() [with T = System]’:
FreeOrion/Empire/../universe/ObjectMap.h:306:28: warning: control reaches end of non-void function [-Wreturn-type]
FreeOrion/Empire/../universe/ObjectMap.h: In member function ‘ObjectMap::value_iterator<T> ObjectMap::end_values() [with T = System]’:
FreeOrion/Empire/../universe/ObjectMap.h:310:26: warning: control reaches end of non-void function [-Wreturn-type]
FreeOrion/Empire/../universe/ObjectMap.h: In member function ‘ObjectMap::value_iterator<T> ObjectMap::begin_values() [with T = Fleet]’:
FreeOrion/Empire/../universe/ObjectMap.h:306:28: warning: control reaches end of non-void function [-Wreturn-type]
FreeOrion/Empire/../universe/ObjectMap.h: In member function ‘ObjectMap::value_iterator<T> ObjectMap::end_values() [with T = Fleet]’:
FreeOrion/Empire/../universe/ObjectMap.h:310:26: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [CMakeFiles/core_static.dir/Empire/Empire.cpp.o] Error 1
In file included from FreeOrion/universe/Universe.h:8:0,
from FreeOrion/universe/UniverseObject.h:5,
from FreeOrion/universe/Condition.cpp:5:
FreeOrion/universe/ObjectMap.h: In member function ‘const std::pair<int, const T*>* ObjectMap::const_iterator<T>::operator->() [with T = UniverseObject]’:
FreeOrion/universe/Condition.cpp:170:55: instantiated from here
FreeOrion/universe/ObjectMap.h:52:23: error: taking address of temporary [-fpermissive]
make[2]: *** [CMakeFiles/core_static.dir/universe/Condition.cpp.o] Error 1
make[1]: *** [CMakeFiles/core_static.dir/all] Error 2
make: *** [all] Error 2
*** Failed ***