dsgame-zone.o error

Post Reply
muirchertach
Posts: 6
Joined: Wed Dec 04, 2013 10:59 am

dsgame-zone.o error

Post by muirchertach » Wed Dec 04, 2013 10:04 pm

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?

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: dsgame-zone.o error

Post by atom0s » Thu Dec 05, 2013 12:27 pm

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.

muirchertach
Posts: 6
Joined: Wed Dec 04, 2013 10:59 am

Re: dsgame-zone.o error

Post by muirchertach » Sat Dec 07, 2013 9:41 am

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]

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: dsgame-zone.o error

Post by kjLotus » Mon Dec 16, 2013 6:13 pm

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

muirchertach
Posts: 6
Joined: Wed Dec 04, 2013 10:59 am

Re: dsgame-zone.o error

Post by muirchertach » Mon Dec 16, 2013 7:51 pm

Well thanks for the help. Ill try to find a fix and post it if anybody else has the same problem.

Post Reply