Page 1 of 1

dsgame-zone.o error

Posted: Wed Dec 04, 2013 10:04 pm
by muirchertach
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

Posted: Thu Dec 05, 2013 12:27 pm
by atom0s
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?
Without information on the error there is a 0% chance you will get help.

Re: dsgame-zone.o error

Posted: Sat Dec 07, 2013 9:41 am
by muirchertach
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]

Re: dsgame-zone.o error

Posted: Mon Dec 16, 2013 6:13 pm
by kjLotus
muirchertach 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)
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 around

Re: dsgame-zone.o error

Posted: Mon Dec 16, 2013 7:51 pm
by muirchertach
Well thanks for the help. Ill try to find a fix and post it if anybody else has the same problem.