dsgame-zone.o error
-
- Posts: 6
- Joined: Wed Dec 04, 2013 10:59 am
dsgame-zone.o error
When I run make I get a build error with dsgame-zone.o. Do you need more info to tell me how to fix it?
Re: dsgame-zone.o error
Without information on the error there is a 0% chance you will get help.muirchertach wrote:When I run make I get a build error with dsgame-zone.o. Do you need more info to tell me how to fix it?
-
- Posts: 6
- Joined: Wed Dec 04, 2013 10:59 am
Re: dsgame-zone.o error
Sorry here's what it is saying
/weapon_skill.cpp' || echo './'`src/map/weapon_skill.cpp mv -f .deps/dsgame-weapon_skill.Tpo .deps/dsgame-weapon_skill.Po g++ -std=gnu++0x -DHAVE_CONFIG_H -I. -I./src/common -DdsUDPSERV -g -O2 -MT dsgame-zone.o -MD -MP -MF .deps/dsgame-zone.Tpo -c -o dsgame-zone.o `test -f 'src/map/zone.cpp' || echo './'`src/map/zone.cpp src/map/zone.cpp: In member function ‘void CZone::ZoneServer(uint32)’: src/map/zone.cpp:1470:25: error: no matching function for call to ‘std::map<short unsigned int, CBaseEntity*>::erase(std::_Rb_tree_const_iterator<std::pair<const short unsigned int, CBaseEntity*> >::_Self)’ /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/s tl_map.h:573:7: note: candidates are: std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(std::map<_Key, _Tp, _Compare, _Alloc>::iterator) [with _Key = short unsigned int, _Tp = CBaseEntity*, _Compare = std::less<short unsigned int>, _Alloc = std::allocator<std::pair<const short unsigned int, CBaseEntity*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const short unsigned int, CBaseEntity*> >] /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/s tl_map.h:603:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::erase(const key_type&) [with _Key = short unsigned int, _Tp = CBaseEntity*, _Compare = std::less<short unsigned int>, _Alloc = std::allocator<std::pair<const short unsigned int, CBaseEntity*> >, std::map<_Key, _Tp, _Compare, _Alloc>::size_type = unsigned int, key_type = short unsigned int] /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/s tl_map.h:622:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(std::map<_Key, _Tp, _Compare, _Alloc>::iterator, std::map<_Key, _Tp, _Compare, _Alloc>::iterator) [with _Key = short unsigned int, _Tp = CBaseEntity*, _Compare = std::less<short unsigned int>, _Alloc = std::allocator<std::pair<const short unsigned int, CBaseEntity*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const short unsigned int, CBaseEntity*> >] make: *** [dsgame-zone.o]
/weapon_skill.cpp' || echo './'`src/map/weapon_skill.cpp mv -f .deps/dsgame-weapon_skill.Tpo .deps/dsgame-weapon_skill.Po g++ -std=gnu++0x -DHAVE_CONFIG_H -I. -I./src/common -DdsUDPSERV -g -O2 -MT dsgame-zone.o -MD -MP -MF .deps/dsgame-zone.Tpo -c -o dsgame-zone.o `test -f 'src/map/zone.cpp' || echo './'`src/map/zone.cpp src/map/zone.cpp: In member function ‘void CZone::ZoneServer(uint32)’: src/map/zone.cpp:1470:25: error: no matching function for call to ‘std::map<short unsigned int, CBaseEntity*>::erase(std::_Rb_tree_const_iterator<std::pair<const short unsigned int, CBaseEntity*> >::_Self)’ /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/s tl_map.h:573:7: note: candidates are: std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(std::map<_Key, _Tp, _Compare, _Alloc>::iterator) [with _Key = short unsigned int, _Tp = CBaseEntity*, _Compare = std::less<short unsigned int>, _Alloc = std::allocator<std::pair<const short unsigned int, CBaseEntity*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const short unsigned int, CBaseEntity*> >] /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/s tl_map.h:603:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::erase(const key_type&) [with _Key = short unsigned int, _Tp = CBaseEntity*, _Compare = std::less<short unsigned int>, _Alloc = std::allocator<std::pair<const short unsigned int, CBaseEntity*> >, std::map<_Key, _Tp, _Compare, _Alloc>::size_type = unsigned int, key_type = short unsigned int] /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/s tl_map.h:622:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(std::map<_Key, _Tp, _Compare, _Alloc>::iterator, std::map<_Key, _Tp, _Compare, _Alloc>::iterator) [with _Key = short unsigned int, _Tp = CBaseEntity*, _Compare = std::less<short unsigned int>, _Alloc = std::allocator<std::pair<const short unsigned int, CBaseEntity*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const short unsigned int, CBaseEntity*> >] make: *** [dsgame-zone.o]
Re: dsgame-zone.o error
couldn't tell you why that's happening.. i don't compile on linux (i don't think any current developers do), so you'll have to ask aroundmuirchertach wrote:In member function ‘void CZone::ZoneServer(uint32)’: src/map/zone.cpp:1470:25: error: no matching function for call to ‘std::map<short unsigned int, CBaseEntity*>::erase(std::_Rb_tree_const_iterator<std::pair<const short unsigned int, CBaseEntity*> >::_Self)’ /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/s tl_map.h:573:7: note: candidates are: std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(std::map<_Key, _Tp, _Compare, _Alloc>::iterator)
-
- Posts: 6
- Joined: Wed Dec 04, 2013 10:59 am
Re: dsgame-zone.o error
Well thanks for the help. Ill try to find a fix and post it if anybody else has the same problem.