MegaGlest Forum

Archives (read only) => Glest Advanced Engine => Bug reports => Topic started by: tomreyn on 15 April 2011, 00:34:32

Title: [Fixed] widget_invert branch won't build
Post by: tomreyn on 15 April 2011, 00:34:32
I'm currently having this build error on the widget_invert branch:
Code: [Select]
[ 33%] Building CXX object source/game/CMakeFiles/glestadv.dir/test_pane.cpp.o
[ 34%] In file included from /home/tomreyn/SCM/glestae/source/game/menu/main_menu.h:18:0,
                 from /home/tomreyn/SCM/glestae/source/game/test_pane.cpp:13:
/home/tomreyn/SCM/glestae/source/game/world/world.h:172:6: error: declaration of 'Glest::Sim::Map Glest::Sim::World::map'
/usr/include/c++/4.5/bits/stl_map.h:87:5: error: changes meaning of 'map' from 'class std::map<int, std::basic_string<char> >'
Title: Re: widget_invert branch won't build
Post by: silnarm on 15 April 2011, 06:32:11
I'm currently having this build error on the widget_invert branch:
Code: [Select]
[ 33%] Building CXX object source/game/CMakeFiles/glestadv.dir/test_pane.cpp.o
[ 34%] In file included from /home/tomreyn/SCM/glestae/source/game/menu/main_menu.h:18:0,
                 from /home/tomreyn/SCM/glestae/source/game/test_pane.cpp:13:
/home/tomreyn/SCM/glestae/source/game/world/world.h:172:6: error: declaration of 'Glest::Sim::Map Glest::Sim::World::map'
/usr/include/c++/4.5/bits/stl_map.h:87:5: error: changes meaning of 'map' from 'class std::map<int, std::basic_string<char> >'

Thanks, there was another nastier one after that too, I thought I could just erase from a map<> and get back an iterator to the next element, like with a vector<>. This is not the case, but I didn't know that because someone in Redmond thought that made sense too... Ooops.

btw, widget_invert is merged to master now.