Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rts/Hotkey.h:321:37: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- bool commandCardControl_ = false;
- ^
- rts/Hotkey.h:304:34: warning: unused parameter 'other' [-Wunused-parameter]
- bool operator < (const Hotkey& other) const
- ^
- rts/Hotkey.h:332:10: error: 'hash' is not a class template
- struct hash<Hotkey>
- ^
- rts/Hotkey.h:332:21: error: 'std::hash' is not a template type
- struct hash<Hotkey>
- ^
- In file included from rts/general/Unit.h:29:0,
- from rts/Init.h:38,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- rts/general/OrderQueu.h:46:35: warning: non-static data member initializers only available with -st
- =c++11 or -std=gnu++11
- deque<Order> queu = deque<Order>(0);
- ^
- rts/general/OrderQueu.h:47:43: warning: non-static data member initializers only available with -st
- =c++11 or -std=gnu++11
- Order noOrder = Order(f2(0, 0), NO_COMMAND);
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- supportClasses/Pathfinding.h:16:12: error: 'std::unordered_map' has not been declared
- using std::unordered_map;
- ^
- supportClasses/Pathfinding.h:19:12: error: 'std::make_tuple' has not been declared
- using std::make_tuple;
- ^
- supportClasses/Pathfinding.h:22:12: error: 'std::unordered_set' has not been declared
- using std::unordered_set;
- ^
- supportClasses/Pathfinding.h:24:22: error: 'placeholders' is not a namespace-name
- using namespace std::placeholders;
- ^
- supportClasses/Pathfinding.h:24:34: error: expected namespace-name before ';' token
- using namespace std::placeholders;
- ^
- supportClasses/Pathfinding.h:30:75: error: '>>' should be '> >' within a nested template argument l
- st
- std::priority_queue<PQElement, vector<PQElement>, std::greater<PQElement>> elements;
- ^
- supportClasses/Pathfinding.h:551:36: error: 'unordered_map' has not been declared
- inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
- ^
- supportClasses/Pathfinding.h:551:49: error: expected ',' or '...' before '<' token
- inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- supportClasses/Pathfinding.h:740:1: error: 'unordered_map' does not name a type
- unordered_map<f2, Node*> nodes_;
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- supportClasses/Pathfinding.h: In member function 'std::vector<Node*> Pathfinding::neighbors(f2)':
- supportClasses/Pathfinding.h:95:7: error: 'nodes_' was not declared in this scope
- if (nodes_.count(position))
- ^
- supportClasses/Pathfinding.h:99:22: warning: comparison between signed and unsigned integer express
- ons [-Wsign-compare]
- for (int i = 0; i < node->links_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:111:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In static member function 'static bool Pathfinding::straightPath(f2,
- 2, std::vector<Rect>*)':
- supportClasses/Pathfinding.h:172:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:188:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:207:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:223:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'bool Pathfinding::straightPath(f2, f2, const f2&)
- :
- supportClasses/Pathfinding.h:263:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:296:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:332:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:364:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
- , f2)':
- supportClasses/Pathfinding.h:394:11: warning: extended initializer lists only available with -std=c
- +11 or -std=gnu++11
- return {start, goal};
- ^
- supportClasses/Pathfinding.h:416:3: error: 'unordered_map' was not declared in this scope
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:416:19: error: expected primary-expression before ',' token
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:416:21: error: expected primary-expression before 'float'
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:417:19: error: expected primary-expression before ',' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:417:23: error: expected primary-expression before '>' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:417:25: error: 'cameFrom' was not declared in this scope
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:422:3: error: 'costSoFar' was not declared in this scope
- costSoFar[start] = 0;
- ^
- supportClasses/Pathfinding.h:438:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(current))
- ^
- supportClasses/Pathfinding.h:446:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nb.size(); ++i)
- ^
- supportClasses/Pathfinding.h:464:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc
- +0x-compat]
- for(auto i : cameFrom)
- ^
- supportClasses/Pathfinding.h:464:12: error: 'i' does not name a type
- for(auto i : cameFrom)
- ^
- supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
- if (start == pos)
- ^
- supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected ')' before 'if'
- supportClasses/Pathfinding.h:475:11: warning: extended initializer lists only available with -std=c
- +11 or -std=gnu++11
- return {};
- ^
- supportClasses/Pathfinding.h:461:9: warning: unused variable 'distance' [-Wunused-variable]
- float distance = - 1;
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
- , std::vector<Rect>)':
- supportClasses/Pathfinding.h:491:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:493:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(start) > 0 && straightPath(nodesV_[i]->position_, start))
- ^
- supportClasses/Pathfinding.h:500:3: error: 'unordered_map' was not declared in this scope
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:500:19: error: expected primary-expression before ',' token
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:500:21: error: expected primary-expression before 'float'
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:501:19: error: expected primary-expression before ',' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:501:23: error: expected primary-expression before '>' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:501:25: error: 'cameFrom' was not declared in this scope
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:506:3: error: 'costSoFar' was not declared in this scope
- costSoFar[start] = 0;
- ^
- supportClasses/Pathfinding.h:516:39: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = startingNodeCount; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:525:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(current))
- ^
- supportClasses/Pathfinding.h:533:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nb.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::reconstructPath(int)
- :
- supportClasses/Pathfinding.h:555:18: error: 'goal' was not declared in this scope
- path.push_back(goal);
- ^
- supportClasses/Pathfinding.h:558:23: error: 'cameFrom' was not declared in this scope
- for (int i = 0; i < cameFrom.size(); ++i)
- ^
- supportClasses/Pathfinding.h:562:16: error: 'start' was not declared in this scope
- if (next == start)
- ^
- supportClasses/Pathfinding.h: In member function 'Node* Pathfinding::addNode(const f2&)':
- supportClasses/Pathfinding.h:585:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:605:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:676:3: error: 'nodes_' was not declared in this scope
- nodes_[position] = node;
- ^
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::removeNode(Node*)':
- supportClasses/Pathfinding.h:682:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < node->links_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:684:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int j = 0; j < node->links_[i]->links_.size(); ++j)
- ^
- supportClasses/Pathfinding.h:696:3: error: 'nodes_' was not declared in this scope
- nodes_.erase(node->position_);
- ^
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::generateNodes(const std::vector
- Rect>&)':
- supportClasses/Pathfinding.h:703:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles.size(); ++i)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::update()':
- supportClasses/Pathfinding.h:718:3: error: 'nodes_' was not declared in this scope
- nodes_.clear();
- ^
- supportClasses/Pathfinding.h: In member function 'bool Pathfinding::checkPath(std::vector<f2>)':
- supportClasses/Pathfinding.h:725:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 1; i < path.size(); ++i)
- ^
- In file included from rts/general/Unit.h:37:0,
- from rts/Init.h:38,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- rts/general/Wall.h: At global scope:
- rts/general/Wall.h:36:25: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool canBeShotTrough_ = false;
- ^
- rts/general/Wall.h:39:26: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- f2 unitIndex_ = f2(0, - 1);
- ^
- rts/general/Wall.h:40:17: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool enabled_ = true;
- ^
- rts/general/Wall.h: In copy constructor 'Wall::Wall(const Wall&)':
- rts/general/Wall.h:16:2: warning: base class 'class Rectangle' should be explicitly initialized in
- he copy constructor [-Wextra]
- Wall(const Wall& wall) {*this = wall;}
- ^
- In file included from rts/Init.h:38:0,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- rts/general/Unit.h: At global scope:
- rts/general/Unit.h:88:26: warning: type qualifiers ignored on function return type [-Wignored-quali
- iers]
- void removeCurrentOrder() {orders_.remove();}
- ^
- rts/general/Unit.h:99:18: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool selected_ = false;
- ^
- rts/general/Unit.h:113:16: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- bool pushed_ = false;
- ^
- rts/general/Unit.h:156:31: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- OrderQueu orders_ = OrderQueu();
- ^
- rts/general/Unit.h:170:24: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- int pathfindingStep_ = 0;
- ^
- rts/general/Unit.h:180:32: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- f2 previousTarget_ = f2(- 1, -1);
- ^
- rts/general/Unit.h:181:17: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- bool enabled_ = true;
- ^
- rts/general/Unit.h: In copy constructor 'Unit::Unit(const Unit&)':
- rts/general/Unit.h:74:2: warning: base class 'class Object' should be explicitly initialized in the
- copy constructor [-Wextra]
- Unit(const Unit& unit) {*this = unit;}
- ^
- In file included from rts/Init.h:39:0,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- rts/Faction.h: At global scope:
- rts/Faction.h:18:21: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- float usedSupply_ = 0;
- ^
- rts/Faction.h:19:24: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- float currentSupply_ = 0;
- ^
- In file included from rts/general/Terrain.h:4:0,
- from rts/general/Terrain.cpp:1:
- rts/Init.h: In constructor 'Init::Init(std::string)':
- rts/Init.h:49:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
- (std::string&)'
- ifstream ini(iniPath);
- ^
- rts/Init.h:49:23: note: candidates are:
- In file included from rts/Init.h:29:0,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
- h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
- basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
- char*'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
- _traits<char>]
- basic_ifstream() : __istream_type(), _M_filebuf()
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: candidate expects 0 arguments, 1 provided
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
- class basic_ifstream : public basic_istream<_CharT, _Traits>
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
- t std::basic_ifstream<char>&'
- In file included from rts/general/Terrain.h:4:0,
- from rts/general/Terrain.cpp:1:
- rts/Init.h:71:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& x : valueMap)
- ^
- rts/Init.h:71:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& x : valueMap)
- ^
- rts/Init.h:73:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h:73:41: error: request for member 'second' in 'x', which is of non-class type 'const int'
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h: In member function 'void Init::loadFile(std::string)':
- rts/Init.h:81:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
- (std::string&)'
- ifstream ini(iniPath);
- ^
- rts/Init.h:81:23: note: candidates are:
- In file included from rts/Init.h:29:0,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
- h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
- basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
- char*'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
- _traits<char>]
- basic_ifstream() : __istream_type(), _M_filebuf()
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: candidate expects 0 arguments, 1 provided
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
- class basic_ifstream : public basic_istream<_CharT, _Traits>
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
- t std::basic_ifstream<char>&'
- In file included from rts/general/Terrain.h:4:0,
- from rts/general/Terrain.cpp:1:
- rts/Init.h:103:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& x : valueMap)
- ^
- rts/Init.h:103:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& x : valueMap)
- ^
- rts/Init.h:105:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h:105:41: error: request for member 'second' in 'x', which is of non-class type 'const int
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h: In member function 'std::string Init::evaluate(std::vector<std::basic_string<char> >)':
- rts/Init.h:112:21: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < arguments.size(); ++i)
- ^
- rts/Init.h: In member function 'Rect Init::getRect(const string&) const':
- rts/Init.h:144:19: error: 'stof' is not a member of 'std'
- float top = std::stof(arguments[1]);
- ^
- rts/Init.h:145:20: error: 'stof' is not a member of 'std'
- float left = std::stof(arguments[2]);
- ^
- rts/Init.h:146:20: error: 'stof' is not a member of 'std'
- float width = std::stof(arguments[3]);
- ^
- rts/Init.h:147:21: error: 'stof' is not a member of 'std'
- float height = std::stof(arguments[4]);
- ^
- rts/Init.h: In member function 'sf::Color Init::getColor(const string&) const':
- rts/Init.h:175:17: error: 'stof' is not a member of 'std'
- float r = std::stof(arguments[1]);
- ^
- rts/Init.h:176:17: error: 'stof' is not a member of 'std'
- float g = std::stof(arguments[2]);
- ^
- rts/Init.h:177:18: error: 'stof' is not a member of 'std'
- float b = std::stof(arguments[3]);
- ^
- rts/Init.h:178:18: error: 'stof' is not a member of 'std'
- float a = std::stof(arguments[4]);
- ^
- rts/Init.h: In member function 'Function Init::getFunction(const string&) const':
- rts/Init.h:206:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:218:55: error: 'stoi' is not a member of 'std'
- FunctionType type = static_cast<FunctionType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:219:26: error: 'stoi' is not a member of 'std'
- bool global = std::stoi(get(arguments, "global"));
- ^
- rts/Init.h:220:33: error: 'stoi' is not a member of 'std'
- bool ignoreMousePosition = std::stoi(get(arguments, "ignoreMousePosition"));
- ^
- rts/Init.h:221:29: error: 'stoi' is not a member of 'std'
- bool useDoubleTap = std::stoi(get(arguments, "useDoubleTap"));
- ^
- rts/Init.h: In member function 'f2 Init::getf2(const string&) const':
- rts/Init.h:247:11: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
- 1
- return {0, 0};
- ^
- rts/Init.h:253:14: error: 'stof' is not a member of 'std'
- float x = std::stof(arguments[1]);
- ^
- rts/Init.h:254:14: error: 'stof' is not a member of 'std'
- float y = std::stof(arguments[2]);
- ^
- rts/Init.h:261:10: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
- 1
- return {0, 0};
- ^
- rts/Init.h: In member function 'Animation Init::getAnimation(const string&) const':
- rts/Init.h:276:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:288:26: error: 'stof' is not a member of 'std'
- float rectWidth = std::stof(get(arguments, "rectWidth"));
- ^
- rts/Init.h:289:26: error: 'stof' is not a member of 'std'
- float rectHeight = std::stof(get(arguments, "rectHeight"));
- ^
- rts/Init.h:290:27: error: 'stof' is not a member of 'std'
- float duration = std::stof(get(arguments, "duration"));
- ^
- rts/Init.h:291:26: error: 'stof' is not a member of 'std'
- f2 textureDimensions(std::stof(get(arguments, "columns")),
- ^
- rts/Init.h:292:16: error: 'stof' is not a member of 'std'
- std::stof(get(arguments, "rows")));
- ^
- rts/Init.h:293:24: error: 'stoi' is not a member of 'std'
- bool loops = std::stoi(get(arguments, "loops"));
- ^
- rts/Init.h: In member function 'Projectile Init::getProjectile(const string&) const':
- rts/Init.h:323:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:335:21: error: 'stof' is not a member of 'std'
- float width = std::stof(get(arguments, "width"));
- ^
- rts/Init.h:336:22: error: 'stof' is not a member of 'std'
- float height = std::stof(get(arguments, "height"));
- ^
- rts/Init.h:337:22: error: 'stof' is not a member of 'std'
- float velocity = std::stof(get(arguments, "velocity"));
- ^
- rts/Init.h:338:21: error: 'stof' is not a member of 'std'
- float damage = std::stof(get(arguments, "damage"));
- ^
- rts/Init.h: In member function 'Ability Init::getAbility(const string&) const':
- rts/Init.h:370:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:384:33: error: 'stoi' is not a member of 'std'
- bool firstTargetIsUnit = std::stoi(get(arguments, "firstTargetIsUnit"));
- ^
- rts/Init.h:385:34: error: 'stoi' is not a member of 'std'
- bool secondTargetIsUnit = std::stoi(get(arguments, "secondTargetIsUnit"));
- ^
- rts/Init.h:386:27: error: 'stof' is not a member of 'std'
- float cost = std::stof(get(arguments, "cost"));
- ^
- rts/Init.h:387:28: error: 'stof' is not a member of 'std'
- float range = std::stof(get(arguments, "range"));
- ^
- rts/Init.h:388:29: error: 'stof' is not a member of 'std'
- float cooldown = std::stof(get(arguments, "cooldown"));
- ^
- rts/Init.h:389:28: error: 'stof' is not a member of 'std'
- float radius = std::stof(get(arguments, "radius"));
- ^
- rts/Init.h:390:29: error: 'stoi' is not a member of 'std'
- bool targeted = std::stoi(get(arguments, "targeted"));
- ^
- rts/Init.h:391:29: error: 'stof' is not a member of 'std'
- float velocity = std::stof(get(arguments, "velocity"));
- ^
- rts/Init.h:392:28: error: 'stof' is not a member of 'std'
- float damage = std::stof(get(arguments, "damage"));
- ^
- rts/Init.h:393:29: error: 'stof' is not a member of 'std'
- float duration = std::stof(get(arguments, "duration"));
- ^
- rts/Init.h:395:28: error: 'stoi' is not a member of 'std'
- bool hitsAir = std::stoi(get(arguments, "hitsAir"));
- ^
- rts/Init.h:396:30: error: 'stoi' is not a member of 'std'
- bool hitsGround = std::stoi(get(arguments, "hitsGround"));
- ^
- rts/Init.h:397:28: error: 'stoi' is not a member of 'std'
- bool active = std::stoi(get(arguments, "active"));
- ^
- rts/Init.h:398:28: error: 'stoi' is not a member of 'std'
- bool applied = std::stoi(get(arguments, "applied"));
- ^
- rts/Init.h:399:30: error: 'stoi' is not a member of 'std'
- bool targetEnemy = std::stoi(get(arguments, "targetEnemy"));
- ^
- rts/Init.h:400:32: error: 'stoi' is not a member of 'std'
- bool targetFriendly = std::stoi(get(arguments, "targetFriendly"));
- ^
- rts/Init.h:401:29: error: 'stoi' is not a member of 'std'
- bool hitEnemy = std::stoi(get(arguments, "hitEnemy"));
- ^
- rts/Init.h:402:30: error: 'stoi' is not a member of 'std'
- bool hitFriendly = std::stoi(get(arguments, "hitFriendly"));
- ^
- rts/Init.h:403:29: error: 'stoi' is not a member of 'std'
- bool autoCast = std::stoi(get(arguments, "autoCast"));
- ^
- rts/Init.h:405:29: error: 'stoi' is not a member of 'std'
- bool piercing = std::stoi(get(arguments, "piercing"));
- ^
- rts/Init.h:406:29: error: 'stoi' is not a member of 'std'
- bool collision = std::stoi(get(arguments, "collision"));
- ^
- rts/Init.h:407:31: error: 'stoi' is not a member of 'std'
- bool makesBuilding = std::stoi(get(arguments, "makesBuilding"));
- ^
- rts/Init.h:408:29: error: 'stoi' is not a member of 'std'
- bool makesUnit = std::stoi(get(arguments, "makesUnit"));
- ^
- rts/Init.h:409:31: error: 'stoi' is not a member of 'std'
- bool isProjectile = std::stoi(get(arguments, "isProjectile"));
- ^
- rts/Init.h:410:30: error: 'stoi' is not a member of 'std'
- bool isResearch = std::stoi(get(arguments, "isResearch"));
- ^
- rts/Init.h:411:29: error: 'stoi' is not a member of 'std'
- bool useOnce = std::stoi(get(arguments, "useOnce"));
- ^
- rts/Init.h:412:34: error: 'stoi' is not a member of 'std'
- bool useForAllUnitTypes = std::stoi(get(arguments, "useForAllUnitTypes"));
- ^
- rts/Init.h:413:53: error: 'stoi' is not a member of 'std'
- Research research = static_cast<Research>(std::stoi(get(arguments, "research")));
- ^
- rts/Init.h:414:57: error: 'stoi' is not a member of 'std'
- OrderType abilityEnum = static_cast<OrderType>(std::stoi(get(arguments, "abilityEnum")));
- ^
- rts/Init.h:420:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < typesString.size(); ++i)
- ^
- rts/Init.h:422:51: error: 'stoi' is not a member of 'std'
- effects.push_back(static_cast<AbilityEffect>(std::stoi(typesString[i])));
- ^
- In file included from rts/general/Terrain.h:4:0,
- from rts/general/Terrain.cpp:1:
- rts/Init.h: In member function 'std::vector<Ability> Init::getAbilities() const':
- rts/Init.h:448:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& x : valueMap)
- ^
- rts/Init.h:448:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& x : valueMap)
- ^
- rts/Init.h:450:46: error: request for member 'first' in 'x', which is of non-class type 'const int'
- vector<string> args = split(valueMap.at(x.first));
- ^
- rts/Init.h:453:38: error: request for member 'first' in 'x', which is of non-class type 'const int'
- abilities.push_back(getAbility(x.first));
- ^
- rts/Init.h: In member function 'Unit Init::getUnit(const string&) const':
- rts/Init.h:471:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:483:26: error: 'stof' is not a member of 'std'
- float RectWidth = std::stof(get(arguments, "RectWidth"));
- ^
- rts/Init.h:484:26: error: 'stof' is not a member of 'std'
- float RectHeight = std::stof(get(arguments, "RectHeight"));
- ^
- rts/Init.h:489:20: error: 'stof' is not a member of 'std'
- float radius = std::stof(get(arguments, "radius"));
- ^
- rts/Init.h:496:26: error: 'stof' is not a member of 'std'
- float health = std::stof(get(arguments, "health"));
- ^
- rts/Init.h:497:28: error: 'stof' is not a member of 'std'
- float attackPoint = std::stof(get(arguments, "attackPoint"));
- ^
- rts/Init.h:498:28: error: 'stof' is not a member of 'std'
- float attackDelay = std::stof(get(arguments, "attackDelay"));
- ^
- rts/Init.h:499:25: error: 'stof' is not a member of 'std'
- float armor = std::stof(get(arguments, "armor"));
- ^
- rts/Init.h:500:29: error: 'stof' is not a member of 'std'
- float movementSpeed = std::stof(get(arguments, "movementSpeed"));
- ^
- rts/Init.h:501:25: error: 'stof' is not a member of 'std'
- float range = std::stof(get(arguments, "range"));
- ^
- rts/Init.h:502:28: error: 'stof' is not a member of 'std'
- float sightRange = std::stof(get(arguments, "sightRange"));
- ^
- rts/Init.h:503:26: error: 'stof' is not a member of 'std'
- float supply = std::stof(get(arguments, "supply"));
- ^
- rts/Init.h:504:27: error: 'stof' is not a member of 'std'
- float buildTime = std::stof(get(arguments, "buildTime"));
- ^
- rts/Init.h:505:28: error: 'stof' is not a member of 'std'
- float barrelLength = std::stof(get(arguments, "barrelLength"));
- ^
- rts/Init.h:506:31: error: 'stof' is not a member of 'std'
- float resourceCapacity = std::stof(get(arguments, "resourceCapacity"));
- ^
- rts/Init.h:507:27: error: 'stof' is not a member of 'std'
- float maxEnergy = std::stof(get(arguments, "maxEnergy"));
- ^
- rts/Init.h:508:26: error: 'stof' is not a member of 'std'
- float energy = std::stof(get(arguments, "energy"));
- ^
- rts/Init.h:509:27: error: 'stof' is not a member of 'std'
- float maxShield = std::stof(get(arguments, "maxShield"));
- ^
- rts/Init.h:510:30: error: 'stof' is not a member of 'std'
- float gatherDuration = std::stof(get(arguments, "gatherDuration"));
- ^
- rts/Init.h:511:28: error: 'stof' is not a member of 'std'
- float vertOffset = std::stof(get(arguments, "vertOffset"));
- ^
- rts/Init.h:512:27: error: 'stof' is not a member of 'std'
- float horOffset = std::stof(get(arguments, "horOffset"));
- ^
- rts/Init.h:514:26: error: 'stoi' is not a member of 'std'
- bool canAttack = std::stoi(get(arguments, "canAttack"));
- ^
- rts/Init.h:515:27: error: 'stoi' is not a member of 'std'
- bool canBeMoved = std::stoi(get(arguments, "canBeMoved"));
- ^
- rts/Init.h:516:26: error: 'stoi' is not a member of 'std'
- bool canRotate = std::stoi(get(arguments, "canRotate"));
- ^
- rts/Init.h:517:25: error: 'stoi' is not a member of 'std'
- bool flying = std::stoi(get(arguments, "flying"));
- ^
- rts/Init.h:518:25: error: 'stoi' is not a member of 'std'
- bool hasHead = std::stoi(get(arguments, "hasHead"));
- ^
- rts/Init.h:519:30: error: 'stoi' is not a member of 'std'
- bool returnsResources = std::stoi(get(arguments, "returnsResources"));
- ^
- rts/Init.h:520:26: error: 'stoi' is not a member of 'std'
- bool animated = std::stoi(get(arguments, "animated"));
- ^
- rts/Init.h:521:27: error: 'stoi' is not a member of 'std'
- bool isBuilding = std::stoi(get(arguments, "isBuilding"));
- ^
- rts/Init.h:522:27: error: 'stoi' is not a member of 'std'
- bool noCollision = std::stoi(get(arguments, "noCollision"));
- ^
- rts/Init.h:523:29: error: 'stoi' is not a member of 'std'
- int workersRequired = std::stoi(get(arguments, "workersRequired"));
- ^
- rts/Init.h:524:46: error: in C++98 'offset' must be initialized by constructor, not by '{...}'
- f2 offset = {horOffset, vertOffset};
- ^
- rts/Init.h:530:51: error: 'stoi' is not a member of 'std'
- OrderType projectile = static_cast<OrderType>(std::stoi(get(arguments, "projectile")));
- ^
- rts/Init.h:538:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < costsstring.size(); ++i)
- ^
- rts/Init.h:540:22: error: 'stof' is not a member of 'std'
- costs.push_back(std::stof(costsstring[i]));
- ^
- rts/Init.h:545:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < typesString.size(); ++i)
- ^
- rts/Init.h:547:44: error: 'stoi' is not a member of 'std'
- types.push_back(static_cast<unitType>(std::stoi(typesString[i])));
- ^
- rts/Init.h:553:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < abl.size(); ++i)
- ^
- rts/Init.h:555:49: error: 'stoi' is not a member of 'std'
- abilities.push_back(static_cast<OrderType>(std::stoi(abl[i])));
- ^
- rts/Init.h:561:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < pass.size(); ++i)
- ^
- rts/Init.h:565:49: error: 'stoi' is not a member of 'std'
- passives.push_back(static_cast<OrderType>(std::stoi(pass[i])));
- ^
- rts/Init.h:577:24: error: 'stof' is not a member of 'std'
- unit.aggroRange_ = std::stof(get(arguments, "aggroRange"));
- ^
- rts/Init.h: In member function 'float Init::getfloat(const string&) const':
- rts/Init.h:603:10: error: 'stof' is not a member of 'std'
- return std::stof(get(valueMap, key));
- ^
- rts/Init.h: In member function 'Hotkey Init::getHotkey(const string&) const':
- rts/Init.h:618:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:631:21: error: 'stoi' is not a member of 'std'
- bool realtime = std::stoi(get(arguments, "realtime"));
- ^
- rts/Init.h:635:25: error: 'stoi' is not a member of 'std'
- bool control = std::stoi(get(arguments, "control"));
- ^
- rts/Init.h:636:25: error: 'stoi' is not a member of 'std'
- bool shift = std::stoi(get(arguments, "shift"));
- ^
- rts/Init.h:637:24: error: 'stoi' is not a member of 'std'
- bool alt = std::stoi(get(arguments, "alt"));
- ^
- rts/Init.h:638:25: error: 'stoi' is not a member of 'std'
- bool super = std::stoi(get(arguments, "super"));
- ^
- rts/Init.h:639:26: error: 'stoi' is not a member of 'std'
- bool isButton = std::stoi(get(arguments, "isButton"));
- ^
- rts/Init.h:640:29: error: 'stoi' is not a member of 'std'
- bool unitCardControl = std::stoi(get(arguments, "unitCardControl"));
- ^
- rts/Init.h:641:29: error: 'stoi' is not a member of 'std'
- bool miniMapControl = std::stoi(get(arguments, "miniMapControl"));
- ^
- rts/Init.h:642:27: error: 'stoi' is not a member of 'std'
- bool doubleTap = std::stoi(get(arguments, "doubleTap"));
- ^
- rts/Init.h:643:32: error: 'stoi' is not a member of 'std'
- bool commandCardControl = std::stoi(get(arguments, "commandCardControl"));
- ^
- rts/Init.h:645:16: error: 'stoi' is not a member of 'std'
- int key = std::stoi(get(arguments, "key"));
- ^
- rts/Init.h:646:19: error: 'stoi' is not a member of 'std'
- int button = std::stoi(get(arguments, "button"));
- ^
- rts/Init.h:655:26: error: 'stoi' is not a member of 'std'
- hotkey.eventType_ = std::stoi(get(arguments, "eventType"));
- ^
- rts/Init.h:679:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < stringKeys.size(); ++i)
- ^
- rts/Init.h:681:31: error: 'stoi' is not a member of 'std'
- hotkey.keys_.push_back(std::stoi(stringKeys[i]));
- ^
- rts/Init.h:689:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < stringButtons.size(); ++i)
- ^
- rts/Init.h:691:34: error: 'stoi' is not a member of 'std'
- hotkey.buttons_.push_back(std::stoi(stringButtons[i]));
- ^
- rts/Init.h: In member function 'sf::Mouse::Button Init::getButton(const string&) const':
- rts/Init.h:715:41: error: 'stoi' is not a member of 'std'
- return static_cast<sf::Mouse::Button>(std::stoi(get(valueMap, key)));
- ^
- rts/Init.h: In member function 'sf::Keyboard::Key Init::getKey(const string&) const':
- rts/Init.h:720:41: error: 'stoi' is not a member of 'std'
- return static_cast<sf::Keyboard::Key>(std::stoi(get(valueMap, key)));
- ^
- rts/Init.h: In member function 'Tile Init::getTile(const string&) const':
- rts/Init.h:735:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:747:22: error: 'stof' is not a member of 'std'
- float width = std::stof(get(arguments, "width"));
- ^
- rts/Init.h:748:22: error: 'stof' is not a member of 'std'
- float height = std::stof(get(arguments, "height"));
- ^
- rts/Init.h:753:25: error: 'stof' is not a member of 'std'
- float resources = std::stof(get(arguments, "resources"));
- ^
- rts/Init.h:755:25: error: 'stoi' is not a member of 'std'
- bool passable = std::stoi(get(arguments, "passable"));
- ^
- rts/Init.h:756:46: error: 'stoi' is not a member of 'std'
- TileType type = static_cast<TileType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:753:11: warning: unused variable 'resources' [-Wunused-variable]
- float resources = std::stof(get(arguments, "resources"));
- ^
- rts/Init.h: In member function 'Wall Init::getWall(const string&) const':
- rts/Init.h:788:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:801:27: error: 'stof' is not a member of 'std'
- float width = std::stof(get(arguments, "width"));
- ^
- rts/Init.h:802:27: error: 'stof' is not a member of 'std'
- float height = std::stof(get(arguments, "height"));
- ^
- rts/Init.h:807:50: error: 'stoi' is not a member of 'std'
- WallType type = static_cast<WallType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:813:30: error: 'stoi' is not a member of 'std'
- wall.canBeSeenThrough_ = std::stoi(get(arguments, "canBeSeenThrough"));
- ^
- rts/Init.h:814:31: error: 'stoi' is not a member of 'std'
- wall.canBeMovedThrough_ = std::stoi(get(arguments, "canBeMovedThrough"));
- ^
- rts/Init.h:815:28: error: 'stoi' is not a member of 'std'
- wall.canBeDestroyed_ = std::stoi(get(arguments, "canBeDestroyed"));
- ^
- rts/Init.h:816:37: error: 'stoi' is not a member of 'std'
- wall.canBePartiallyDestroyed_ = std::stoi(get(arguments, "canBePartiallyDestroyed"));
- ^
- rts/Init.h:817:23: error: 'stof' is not a member of 'std'
- wall.hitPoints_ = std::stof(get(arguments, "hitPoints"));
- ^
- rts/Init.h: In member function 'std::vector<Wall*> Init::getWalls(const string&) const':
- rts/Init.h:848:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:852:24: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int j = 0; j < dataSet.size(); ++j)
- ^
- rts/Init.h:859:13: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h:859:33: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h:859:53: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h:859:73: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h: In member function 'Faction Init::getFaction(const string&) const':
- rts/Init.h:888:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:900:35: error: 'stoi' is not a member of 'std'
- int numberOfResourceTypes = std::stoi(get(arguments, "numberOfResourceTypes"));
- ^
- rts/Init.h:901:30: error: 'stof' is not a member of 'std'
- float maxSupply = std::stof(get(arguments, "maxSupply"));
- ^
- rts/Init.h:902:32: error: 'stof' is not a member of 'std'
- float civilianFavor = std::stof(get(arguments, "civilianFavor"));
- ^
- rts/Init.h:903:55: error: 'stoi' is not a member of 'std'
- FactionType type = static_cast<FactionType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:912:40: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- if (currentResourcesstring.size() > i)
- ^
- rts/Init.h:914:34: error: 'stof' is not a member of 'std'
- currentResources.push_back(std::stof(currentResourcesstring[i]));
- ^
- rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allUnits() const':
- rts/Init.h:947:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& element : valueMap)
- ^
- rts/Init.h:947:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : valueMap)
- ^
- rts/Init.h:949:16: error: request for member 'second' in 'element', which is of non-class type 'con
- t int'
- if (element.second.compare(0, 4, "Unit") == 0)
- ^
- rts/Init.h:951:30: error: request for member 'first' in 'element', which is of non-class type 'cons
- int'
- result.push_back(element.first);
- ^
- rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allWalls() const':
- rts/Init.h:961:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& element : valueMap)
- ^
- rts/Init.h:961:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : valueMap)
- ^
- rts/Init.h:963:16: error: request for member 'second' in 'element', which is of non-class type 'con
- t int'
- if (element.second.compare(0, 4, "Wall") == 0)
- ^
- rts/Init.h:965:30: error: request for member 'first' in 'element', which is of non-class type 'cons
- int'
- result.push_back(element.first);
- ^
- In file included from rts/general/Terrain.cpp:1:0:
- rts/general/Terrain.h: In member function 'int Terrain::findTile(f2)':
- rts/general/Terrain.h:17:21: warning: comparison between signed and unsigned integer expressions [-
- sign-compare]
- for (int i = 0; i < objects_.size(); ++i)
- ^
- rts/general/Terrain.cpp: In constructor 'Terrain::Terrain(f2, f2, const std::vector<Tile*>&, f2, f2
- ':
- rts/general/Terrain.cpp:19:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < objects.size(); ++i)
- ^
- rts/general/Terrain.cpp: In member function 'std::vector<Tile*> Terrain::getUnpassableTiles()':
- rts/general/Terrain.cpp:40:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < objects_.size(); ++i)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Terrain.h:4,
- from rts/general/Terrain.cpp:1:
- supportClasses/Pathfinding.h: In instantiation of 'void PriorityQueue<T, Number>::put(T, Number) [w
- th T = f2; Number = float]':
- supportClasses/Pathfinding.h:419:24: required from here
- supportClasses/Pathfinding.h:36:5: error: 'class std::priority_queue<std::pair<float, f2>, std::vec
- or<std::pair<float, f2>, std::allocator<std::pair<float, f2> > >, std::greater<std::pair<float, f2>
- > >' has no member named 'emplace'
- elements.emplace(priority, item);
- ^
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/bits/stl_algobase.h:65:0,
- from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:60,
- from supportClasses/Rectangle.h:3,
- from rts/general/Object.h:3,
- from rts/general/Tile.h:3,
- from rts/general/Terrain.h:3,
- from rts/general/Terrain.cpp:1:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h: In instantiation of 'struct std::iterator_traits<f2>':
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:1262:24: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _
- nputIterator, std::__false_type) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>]'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:413:55: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const a
- locator_type&) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>; std::vector<_Tp, _
- lloc>::allocator_type = std::allocator<f2>]'
- supportClasses/Pathfinding.h:394:23: required from here
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:165:53: error: no type named 'iterator_category' in 'class f2'
- typedef typename _Iterator::iterator_category iterator_category;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:166:53: error: no type named 'value_type' in 'class f2'
- typedef typename _Iterator::value_type value_type;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:167:53: error: no type named 'difference_type' in 'class f2'
- typedef typename _Iterator::difference_type difference_type;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:168:53: error: no type named 'pointer' in 'class f2'
- typedef typename _Iterator::pointer pointer;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:169:53: error: no type named 'reference' in 'class f2'
- typedef typename _Iterator::reference reference;
- ^
- In file included from rts/general/Terrain.h:4:0,
- from rts/general/Terrain.cpp:1:
- rts/Init.h: In member function 'float Init::getfloat(const string&) const':
- rts/Init.h:604:2: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
- from D:/sfml-source/include/SFML/Window.hpp:32,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from supportClasses/Rectangle.h:9,
- from rts/general/Object.h:3,
- from rts/general/Tile.h:3,
- from rts/general/Tile.cpp:1:
- D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef signed long long Int64;
- ^
- D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef unsigned long long Uint64;
- ^
- In file included from supportClasses/Rectangle.h:9:0,
- from rts/general/Object.h:3,
- from rts/general/Tile.h:3,
- from rts/general/Tile.cpp:1:
- supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
- supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
- ng, char)':
- supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
- seglist.push_back(std::stof(segment));
- ^
- supportClasses/f2.h: At global scope:
- supportClasses/f2.h:432:9: error: 'hash' is not a class template
- struct hash<f2>
- ^
- supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
- {
- ^
- supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
- supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:442:13: error: 'std::hash' is not a template
- return hash<string>()(str);
- ^
- supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
- return hash<string>()(str);
- ^
- supportClasses/f2.h:432:9: note: candidate is:
- struct hash<f2>
- ^
- supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
- std::size_t operator()(const f2& k) const
- ^
- supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
- asic_string<char>}' to 'const f2&'
- In file included from supportClasses/Rect.h:17:0,
- from supportClasses/Rectangle.h:11,
- from rts/general/Object.h:3,
- from rts/general/Tile.h:3,
- from rts/general/Tile.cpp:1:
- supportClasses/Shape.h: At global scope:
- supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
- c++11 or -std=gnu++11
- float radius_ = 0;
- ^
- In file included from supportClasses/Rect.h:17:0,
- from supportClasses/Rectangle.h:11,
- from rts/general/Object.h:3,
- from rts/general/Tile.h:3,
- from rts/general/Tile.cpp:1:
- supportClasses/Shape.h: In constructor 'Shape::Shape()':
- supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
- d=gnu++11
- Shape() : Shape(4) {}
- ^
- In file included from rts/general/Object.h:3:0,
- from rts/general/Tile.h:3,
- from rts/general/Tile.cpp:1:
- supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
- supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
- in the copy constructor [-Wextra]
- Rectangle(const Rectangle& rect) {*this = rect;}
- ^
- supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
- supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
- 1 or -std=gnu++11
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
- ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
- to 'std::vector<f2>'
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- In file included from particleEffects/Emitter.h:3:0,
- from particleEffects/ParticleEffects.h:3,
- from rts/general/Object.h:4,
- from rts/general/Tile.h:3,
- from rts/general/Tile.cpp:1:
- particleEffects/Particle.h: At global scope:
- particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float timer_ = 0;
- ^
- In file included from particleEffects/ParticleEffects.h:3:0,
- from rts/general/Object.h:4,
- from rts/general/Tile.h:3,
- from rts/general/Tile.cpp:1:
- particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double redDiff_ = 0;
- ^
- particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double blueDiff_ = 0;
- ^
- particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double greenDiff_ = 0;
- ^
- particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double alphaDiff_ = 0;
- ^
- particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double fade_ = 0;
- ^
- particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float emissionTimer_ = 0;
- ^
- particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float lifeTimer_ = 0;
- ^
- particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<Emitter*> emitters_ = vector<Emitter*>();
- ^
- particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
- or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- In file included from rts/general/Tile.h:3:0,
- from rts/general/Tile.cpp:1:
- rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
- rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
- the copy constructor [-Wextra]
- Object(const Object& object) {*this = object;}
- ^
- In file included from rts/general/Tile.cpp:1:0:
- rts/general/Tile.h: At global scope:
- rts/general/Tile.h:32:19: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- int beingUsed_ = 0;
- ^
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/unordered_map:35:0,
- from supportClasses/Pathfinding.h:5,
- from rts/general/Unit.h:35,
- from rts/general/Unit.cpp:1:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/c++0x_warn
- ng.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 stand
- rd. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11
- compiler options.
- #error This file requires compiler and library support for the \
- ^
- In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
- from D:/sfml-source/include/SFML/Window.hpp:32,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from supportClasses/Rectangle.h:9,
- from rts/general/Object.h:3,
- from rts/general/Unit.h:27,
- from rts/general/Unit.cpp:1:
- D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef signed long long Int64;
- ^
- D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef unsigned long long Uint64;
- ^
- In file included from supportClasses/Rectangle.h:9:0,
- from rts/general/Object.h:3,
- from rts/general/Unit.h:27,
- from rts/general/Unit.cpp:1:
- supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
- supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
- ng, char)':
- supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
- seglist.push_back(std::stof(segment));
- ^
- supportClasses/f2.h: At global scope:
- supportClasses/f2.h:432:9: error: 'hash' is not a class template
- struct hash<f2>
- ^
- supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
- {
- ^
- supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
- supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:442:13: error: 'std::hash' is not a template
- return hash<string>()(str);
- ^
- supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
- return hash<string>()(str);
- ^
- supportClasses/f2.h:432:9: note: candidate is:
- struct hash<f2>
- ^
- supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
- std::size_t operator()(const f2& k) const
- ^
- supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
- asic_string<char>}' to 'const f2&'
- In file included from supportClasses/Rect.h:17:0,
- from supportClasses/Rectangle.h:11,
- from rts/general/Object.h:3,
- from rts/general/Unit.h:27,
- from rts/general/Unit.cpp:1:
- supportClasses/Shape.h: At global scope:
- supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
- c++11 or -std=gnu++11
- float radius_ = 0;
- ^
- In file included from supportClasses/Rect.h:17:0,
- from supportClasses/Rectangle.h:11,
- from rts/general/Object.h:3,
- from rts/general/Unit.h:27,
- from rts/general/Unit.cpp:1:
- supportClasses/Shape.h: In constructor 'Shape::Shape()':
- supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
- d=gnu++11
- Shape() : Shape(4) {}
- ^
- In file included from rts/general/Object.h:3:0,
- from rts/general/Unit.h:27,
- from rts/general/Unit.cpp:1:
- supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
- supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
- in the copy constructor [-Wextra]
- Rectangle(const Rectangle& rect) {*this = rect;}
- ^
- supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
- supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
- 1 or -std=gnu++11
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
- ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
- to 'std::vector<f2>'
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- In file included from particleEffects/Emitter.h:3:0,
- from particleEffects/ParticleEffects.h:3,
- from rts/general/Object.h:4,
- from rts/general/Unit.h:27,
- from rts/general/Unit.cpp:1:
- particleEffects/Particle.h: At global scope:
- particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float timer_ = 0;
- ^
- In file included from particleEffects/ParticleEffects.h:3:0,
- from rts/general/Object.h:4,
- from rts/general/Unit.h:27,
- from rts/general/Unit.cpp:1:
- particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double redDiff_ = 0;
- ^
- particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double blueDiff_ = 0;
- ^
- particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double greenDiff_ = 0;
- ^
- particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double alphaDiff_ = 0;
- ^
- particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double fade_ = 0;
- ^
- particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float emissionTimer_ = 0;
- ^
- particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float lifeTimer_ = 0;
- ^
- particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<Emitter*> emitters_ = vector<Emitter*>();
- ^
- particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
- or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- In file included from rts/general/Unit.h:27:0,
- from rts/general/Unit.cpp:1:
- rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
- rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
- the copy constructor [-Wextra]
- Object(const Object& object) {*this = object;}
- ^
- In file included from rts/general/Unit.h:29:0,
- from rts/general/Unit.cpp:1:
- rts/general/OrderQueu.h: At global scope:
- rts/general/OrderQueu.h:46:35: warning: non-static data member initializers only available with -st
- =c++11 or -std=gnu++11
- deque<Order> queu = deque<Order>(0);
- ^
- rts/general/OrderQueu.h:47:43: warning: non-static data member initializers only available with -st
- =c++11 or -std=gnu++11
- Order noOrder = Order(f2(0, 0), NO_COMMAND);
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/general/Unit.cpp:1:
- supportClasses/Pathfinding.h:16:12: error: 'std::unordered_map' has not been declared
- using std::unordered_map;
- ^
- supportClasses/Pathfinding.h:19:12: error: 'std::make_tuple' has not been declared
- using std::make_tuple;
- ^
- supportClasses/Pathfinding.h:22:12: error: 'std::unordered_set' has not been declared
- using std::unordered_set;
- ^
- supportClasses/Pathfinding.h:24:22: error: 'placeholders' is not a namespace-name
- using namespace std::placeholders;
- ^
- supportClasses/Pathfinding.h:24:34: error: expected namespace-name before ';' token
- using namespace std::placeholders;
- ^
- supportClasses/Pathfinding.h:30:75: error: '>>' should be '> >' within a nested template argument l
- st
- std::priority_queue<PQElement, vector<PQElement>, std::greater<PQElement>> elements;
- ^
- supportClasses/Pathfinding.h:551:36: error: 'unordered_map' has not been declared
- inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
- ^
- supportClasses/Pathfinding.h:551:49: error: expected ',' or '...' before '<' token
- inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/general/Unit.cpp:1:
- supportClasses/Pathfinding.h:740:1: error: 'unordered_map' does not name a type
- unordered_map<f2, Node*> nodes_;
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/general/Unit.cpp:1:
- supportClasses/Pathfinding.h: In member function 'std::vector<Node*> Pathfinding::neighbors(f2)':
- supportClasses/Pathfinding.h:95:7: error: 'nodes_' was not declared in this scope
- if (nodes_.count(position))
- ^
- supportClasses/Pathfinding.h:99:22: warning: comparison between signed and unsigned integer express
- ons [-Wsign-compare]
- for (int i = 0; i < node->links_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:111:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In static member function 'static bool Pathfinding::straightPath(f2,
- 2, std::vector<Rect>*)':
- supportClasses/Pathfinding.h:172:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:188:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:207:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:223:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'bool Pathfinding::straightPath(f2, f2, const f2&)
- :
- supportClasses/Pathfinding.h:263:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:296:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:332:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:364:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
- , f2)':
- supportClasses/Pathfinding.h:394:11: warning: extended initializer lists only available with -std=c
- +11 or -std=gnu++11
- return {start, goal};
- ^
- supportClasses/Pathfinding.h:416:3: error: 'unordered_map' was not declared in this scope
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:416:19: error: expected primary-expression before ',' token
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:416:21: error: expected primary-expression before 'float'
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:417:19: error: expected primary-expression before ',' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:417:23: error: expected primary-expression before '>' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:417:25: error: 'cameFrom' was not declared in this scope
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:422:3: error: 'costSoFar' was not declared in this scope
- costSoFar[start] = 0;
- ^
- supportClasses/Pathfinding.h:438:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(current))
- ^
- supportClasses/Pathfinding.h:446:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nb.size(); ++i)
- ^
- supportClasses/Pathfinding.h:464:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc
- +0x-compat]
- for(auto i : cameFrom)
- ^
- supportClasses/Pathfinding.h:464:12: error: 'i' does not name a type
- for(auto i : cameFrom)
- ^
- supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
- if (start == pos)
- ^
- supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected ')' before 'if'
- supportClasses/Pathfinding.h:475:11: warning: extended initializer lists only available with -std=c
- +11 or -std=gnu++11
- return {};
- ^
- supportClasses/Pathfinding.h:461:9: warning: unused variable 'distance' [-Wunused-variable]
- float distance = - 1;
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
- , std::vector<Rect>)':
- supportClasses/Pathfinding.h:491:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:493:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(start) > 0 && straightPath(nodesV_[i]->position_, start))
- ^
- supportClasses/Pathfinding.h:500:3: error: 'unordered_map' was not declared in this scope
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:500:19: error: expected primary-expression before ',' token
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:500:21: error: expected primary-expression before 'float'
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:501:19: error: expected primary-expression before ',' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:501:23: error: expected primary-expression before '>' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:501:25: error: 'cameFrom' was not declared in this scope
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:506:3: error: 'costSoFar' was not declared in this scope
- costSoFar[start] = 0;
- ^
- supportClasses/Pathfinding.h:516:39: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = startingNodeCount; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:525:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(current))
- ^
- supportClasses/Pathfinding.h:533:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nb.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::reconstructPath(int)
- :
- supportClasses/Pathfinding.h:555:18: error: 'goal' was not declared in this scope
- path.push_back(goal);
- ^
- supportClasses/Pathfinding.h:558:23: error: 'cameFrom' was not declared in this scope
- for (int i = 0; i < cameFrom.size(); ++i)
- ^
- supportClasses/Pathfinding.h:562:16: error: 'start' was not declared in this scope
- if (next == start)
- ^
- supportClasses/Pathfinding.h: In member function 'Node* Pathfinding::addNode(const f2&)':
- supportClasses/Pathfinding.h:585:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:605:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:676:3: error: 'nodes_' was not declared in this scope
- nodes_[position] = node;
- ^
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::removeNode(Node*)':
- supportClasses/Pathfinding.h:682:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < node->links_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:684:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int j = 0; j < node->links_[i]->links_.size(); ++j)
- ^
- supportClasses/Pathfinding.h:696:3: error: 'nodes_' was not declared in this scope
- nodes_.erase(node->position_);
- ^
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::generateNodes(const std::vector
- Rect>&)':
- supportClasses/Pathfinding.h:703:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles.size(); ++i)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/general/Unit.cpp:1:
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::update()':
- supportClasses/Pathfinding.h:718:3: error: 'nodes_' was not declared in this scope
- nodes_.clear();
- ^
- supportClasses/Pathfinding.h: In member function 'bool Pathfinding::checkPath(std::vector<f2>)':
- supportClasses/Pathfinding.h:725:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 1; i < path.size(); ++i)
- ^
- In file included from rts/general/Unit.h:37:0,
- from rts/general/Unit.cpp:1:
- rts/general/Wall.h: At global scope:
- rts/general/Wall.h:36:25: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool canBeShotTrough_ = false;
- ^
- rts/general/Wall.h:39:26: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- f2 unitIndex_ = f2(0, - 1);
- ^
- rts/general/Wall.h:40:17: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool enabled_ = true;
- ^
- rts/general/Wall.h: In copy constructor 'Wall::Wall(const Wall&)':
- rts/general/Wall.h:16:2: warning: base class 'class Rectangle' should be explicitly initialized in
- he copy constructor [-Wextra]
- Wall(const Wall& wall) {*this = wall;}
- ^
- In file included from rts/general/Unit.cpp:1:0:
- rts/general/Unit.h: At global scope:
- rts/general/Unit.h:88:26: warning: type qualifiers ignored on function return type [-Wignored-quali
- iers]
- void removeCurrentOrder() {orders_.remove();}
- ^
- rts/general/Unit.h:99:18: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool selected_ = false;
- ^
- rts/general/Unit.h:113:16: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- bool pushed_ = false;
- ^
- rts/general/Unit.h:156:31: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- OrderQueu orders_ = OrderQueu();
- ^
- rts/general/Unit.h:170:24: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- int pathfindingStep_ = 0;
- ^
- rts/general/Unit.h:180:32: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- f2 previousTarget_ = f2(- 1, -1);
- ^
- rts/general/Unit.h:181:17: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- bool enabled_ = true;
- ^
- rts/general/Unit.h: In copy constructor 'Unit::Unit(const Unit&)':
- rts/general/Unit.h:74:2: warning: base class 'class Object' should be explicitly initialized in the
- copy constructor [-Wextra]
- Unit(const Unit& unit) {*this = unit;}
- ^
- rts/general/Unit.cpp: At global scope:
- rts/general/Unit.cpp:7:62: warning: unused parameter 'energy' [-Wunused-parameter]
- const bool& canRotate, const float& maxEnergy, const float& energy, const float& maxShield,
- ^
- rts/general/Unit.cpp:113:27: warning: unused parameter 'number' [-Wunused-parameter]
- void Unit::useAbility(int number)
- ^
- rts/general/Unit.cpp: In member function 'void Unit::update(const float&)':
- rts/general/Unit.cpp:148:20: warning: comparison between signed and unsigned integer expressions [-
- sign-compare]
- for (int i = 0; i < abilityCooldowns_.size(); ++i)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/general/Unit.cpp:1:
- supportClasses/Pathfinding.h: In instantiation of 'void PriorityQueue<T, Number>::put(T, Number) [w
- th T = f2; Number = float]':
- supportClasses/Pathfinding.h:419:24: required from here
- supportClasses/Pathfinding.h:36:5: error: 'class std::priority_queue<std::pair<float, f2>, std::vec
- or<std::pair<float, f2>, std::allocator<std::pair<float, f2> > >, std::greater<std::pair<float, f2>
- > >' has no member named 'emplace'
- elements.emplace(priority, item);
- ^
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/bits/stl_algobase.h:65:0,
- from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:60,
- from supportClasses/Rectangle.h:3,
- from rts/general/Object.h:3,
- from rts/general/Unit.h:27,
- from rts/general/Unit.cpp:1:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h: In instantiation of 'struct std::iterator_traits<f2>':
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:1262:24: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _
- nputIterator, std::__false_type) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>]'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:413:55: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const a
- locator_type&) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>; std::vector<_Tp, _
- lloc>::allocator_type = std::allocator<f2>]'
- supportClasses/Pathfinding.h:394:23: required from here
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:165:53: error: no type named 'iterator_category' in 'class f2'
- typedef typename _Iterator::iterator_category iterator_category;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:166:53: error: no type named 'value_type' in 'class f2'
- typedef typename _Iterator::value_type value_type;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:167:53: error: no type named 'difference_type' in 'class f2'
- typedef typename _Iterator::difference_type difference_type;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:168:53: error: no type named 'pointer' in 'class f2'
- typedef typename _Iterator::pointer pointer;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:169:53: error: no type named 'reference' in 'class f2'
- typedef typename _Iterator::reference reference;
- ^
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/unordered_map:35:0,
- from supportClasses/Pathfinding.h:5,
- from rts/general/Unit.h:35,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/c++0x_warn
- ng.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 stand
- rd. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11
- compiler options.
- #error This file requires compiler and library support for the \
- ^
- In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
- from D:/sfml-source/include/SFML/Window.hpp:32,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef signed long long Int64;
- ^
- D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef unsigned long long Uint64;
- ^
- In file included from rts/Hotkey.h:3:0,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
- supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
- ng, char)':
- supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
- seglist.push_back(std::stof(segment));
- ^
- supportClasses/f2.h: At global scope:
- supportClasses/f2.h:432:9: error: 'hash' is not a class template
- struct hash<f2>
- ^
- supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
- {
- ^
- supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
- supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:442:13: error: 'std::hash' is not a template
- return hash<string>()(str);
- ^
- supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
- return hash<string>()(str);
- ^
- supportClasses/f2.h:432:9: note: candidate is:
- struct hash<f2>
- ^
- supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
- std::size_t operator()(const f2& k) const
- ^
- supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
- asic_string<char>}' to 'const f2&'
- In file included from rts/Init.h:36:0,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- rts/Hotkey.h: At global scope:
- rts/Hotkey.h:318:34: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- bool unitCardControl_ = false;
- ^
- rts/Hotkey.h:319:33: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- bool miniMapControl_ = false;
- ^
- rts/Hotkey.h:320:28: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- bool doubleTap_ = false;
- ^
- rts/Hotkey.h:321:37: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- bool commandCardControl_ = false;
- ^
- rts/Hotkey.h:304:34: warning: unused parameter 'other' [-Wunused-parameter]
- bool operator < (const Hotkey& other) const
- ^
- rts/Hotkey.h:332:10: error: 'hash' is not a class template
- struct hash<Hotkey>
- ^
- rts/Hotkey.h:332:21: error: 'std::hash' is not a template type
- struct hash<Hotkey>
- ^
- In file included from supportClasses/Rect.h:17:0,
- from supportClasses/Rectangle.h:11,
- from rts/general/Object.h:3,
- from rts/general/Tile.h:3,
- from rts/Init.h:37,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
- c++11 or -std=gnu++11
- float radius_ = 0;
- ^
- In file included from supportClasses/Rect.h:17:0,
- from supportClasses/Rectangle.h:11,
- from rts/general/Object.h:3,
- from rts/general/Tile.h:3,
- from rts/Init.h:37,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/Shape.h: In constructor 'Shape::Shape()':
- supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
- d=gnu++11
- Shape() : Shape(4) {}
- ^
- In file included from rts/general/Object.h:3:0,
- from rts/general/Tile.h:3,
- from rts/Init.h:37,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
- supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
- in the copy constructor [-Wextra]
- Rectangle(const Rectangle& rect) {*this = rect;}
- ^
- supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
- supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
- 1 or -std=gnu++11
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
- ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
- to 'std::vector<f2>'
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- In file included from particleEffects/Emitter.h:3:0,
- from particleEffects/ParticleEffects.h:3,
- from rts/general/Object.h:4,
- from rts/general/Tile.h:3,
- from rts/Init.h:37,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- particleEffects/Particle.h: At global scope:
- particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float timer_ = 0;
- ^
- In file included from particleEffects/ParticleEffects.h:3:0,
- from rts/general/Object.h:4,
- from rts/general/Tile.h:3,
- from rts/Init.h:37,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double redDiff_ = 0;
- ^
- particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double blueDiff_ = 0;
- ^
- particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double greenDiff_ = 0;
- ^
- particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double alphaDiff_ = 0;
- ^
- particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double fade_ = 0;
- ^
- particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float emissionTimer_ = 0;
- ^
- particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float lifeTimer_ = 0;
- ^
- particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<Emitter*> emitters_ = vector<Emitter*>();
- ^
- particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
- or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- In file included from rts/general/Tile.h:3:0,
- from rts/Init.h:37,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
- rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
- the copy constructor [-Wextra]
- Object(const Object& object) {*this = object;}
- ^
- In file included from rts/Init.h:37:0,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- rts/general/Tile.h: At global scope:
- rts/general/Tile.h:32:19: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- int beingUsed_ = 0;
- ^
- In file included from rts/general/Unit.h:29:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- rts/general/OrderQueu.h:46:35: warning: non-static data member initializers only available with -st
- =c++11 or -std=gnu++11
- deque<Order> queu = deque<Order>(0);
- ^
- rts/general/OrderQueu.h:47:43: warning: non-static data member initializers only available with -st
- =c++11 or -std=gnu++11
- Order noOrder = Order(f2(0, 0), NO_COMMAND);
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/Pathfinding.h:16:12: error: 'std::unordered_map' has not been declared
- using std::unordered_map;
- ^
- supportClasses/Pathfinding.h:19:12: error: 'std::make_tuple' has not been declared
- using std::make_tuple;
- ^
- supportClasses/Pathfinding.h:22:12: error: 'std::unordered_set' has not been declared
- using std::unordered_set;
- ^
- supportClasses/Pathfinding.h:24:22: error: 'placeholders' is not a namespace-name
- using namespace std::placeholders;
- ^
- supportClasses/Pathfinding.h:24:34: error: expected namespace-name before ';' token
- using namespace std::placeholders;
- ^
- supportClasses/Pathfinding.h:30:75: error: '>>' should be '> >' within a nested template argument l
- st
- std::priority_queue<PQElement, vector<PQElement>, std::greater<PQElement>> elements;
- ^
- supportClasses/Pathfinding.h:551:36: error: 'unordered_map' has not been declared
- inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
- ^
- supportClasses/Pathfinding.h:551:49: error: expected ',' or '...' before '<' token
- inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/Pathfinding.h:740:1: error: 'unordered_map' does not name a type
- unordered_map<f2, Node*> nodes_;
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/Pathfinding.h: In member function 'std::vector<Node*> Pathfinding::neighbors(f2)':
- supportClasses/Pathfinding.h:95:7: error: 'nodes_' was not declared in this scope
- if (nodes_.count(position))
- ^
- supportClasses/Pathfinding.h:99:22: warning: comparison between signed and unsigned integer express
- ons [-Wsign-compare]
- for (int i = 0; i < node->links_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:111:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In static member function 'static bool Pathfinding::straightPath(f2,
- 2, std::vector<Rect>*)':
- supportClasses/Pathfinding.h:172:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:188:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:207:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:223:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'bool Pathfinding::straightPath(f2, f2, const f2&)
- :
- supportClasses/Pathfinding.h:263:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:296:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:332:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:364:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
- , f2)':
- supportClasses/Pathfinding.h:394:11: warning: extended initializer lists only available with -std=c
- +11 or -std=gnu++11
- return {start, goal};
- ^
- supportClasses/Pathfinding.h:416:3: error: 'unordered_map' was not declared in this scope
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:416:19: error: expected primary-expression before ',' token
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:416:21: error: expected primary-expression before 'float'
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:417:19: error: expected primary-expression before ',' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:417:23: error: expected primary-expression before '>' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:417:25: error: 'cameFrom' was not declared in this scope
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:422:3: error: 'costSoFar' was not declared in this scope
- costSoFar[start] = 0;
- ^
- supportClasses/Pathfinding.h:438:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(current))
- ^
- supportClasses/Pathfinding.h:446:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nb.size(); ++i)
- ^
- supportClasses/Pathfinding.h:464:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc
- +0x-compat]
- for(auto i : cameFrom)
- ^
- supportClasses/Pathfinding.h:464:12: error: 'i' does not name a type
- for(auto i : cameFrom)
- ^
- supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
- if (start == pos)
- ^
- supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected ')' before 'if'
- supportClasses/Pathfinding.h:475:11: warning: extended initializer lists only available with -std=c
- +11 or -std=gnu++11
- return {};
- ^
- supportClasses/Pathfinding.h:461:9: warning: unused variable 'distance' [-Wunused-variable]
- float distance = - 1;
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
- , std::vector<Rect>)':
- supportClasses/Pathfinding.h:491:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:493:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(start) > 0 && straightPath(nodesV_[i]->position_, start))
- ^
- supportClasses/Pathfinding.h:500:3: error: 'unordered_map' was not declared in this scope
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:500:19: error: expected primary-expression before ',' token
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:500:21: error: expected primary-expression before 'float'
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:501:19: error: expected primary-expression before ',' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:501:23: error: expected primary-expression before '>' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:501:25: error: 'cameFrom' was not declared in this scope
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:506:3: error: 'costSoFar' was not declared in this scope
- costSoFar[start] = 0;
- ^
- supportClasses/Pathfinding.h:516:39: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = startingNodeCount; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:525:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(current))
- ^
- supportClasses/Pathfinding.h:533:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nb.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::reconstructPath(int)
- :
- supportClasses/Pathfinding.h:555:18: error: 'goal' was not declared in this scope
- path.push_back(goal);
- ^
- supportClasses/Pathfinding.h:558:23: error: 'cameFrom' was not declared in this scope
- for (int i = 0; i < cameFrom.size(); ++i)
- ^
- supportClasses/Pathfinding.h:562:16: error: 'start' was not declared in this scope
- if (next == start)
- ^
- supportClasses/Pathfinding.h: In member function 'Node* Pathfinding::addNode(const f2&)':
- supportClasses/Pathfinding.h:585:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:605:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:676:3: error: 'nodes_' was not declared in this scope
- nodes_[position] = node;
- ^
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::removeNode(Node*)':
- supportClasses/Pathfinding.h:682:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < node->links_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:684:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int j = 0; j < node->links_[i]->links_.size(); ++j)
- ^
- supportClasses/Pathfinding.h:696:3: error: 'nodes_' was not declared in this scope
- nodes_.erase(node->position_);
- ^
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::generateNodes(const std::vector
- Rect>&)':
- supportClasses/Pathfinding.h:703:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles.size(); ++i)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::update()':
- supportClasses/Pathfinding.h:718:3: error: 'nodes_' was not declared in this scope
- nodes_.clear();
- ^
- supportClasses/Pathfinding.h: In member function 'bool Pathfinding::checkPath(std::vector<f2>)':
- supportClasses/Pathfinding.h:725:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 1; i < path.size(); ++i)
- ^
- In file included from rts/general/Unit.h:37:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- rts/general/Wall.h: At global scope:
- rts/general/Wall.h:36:25: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool canBeShotTrough_ = false;
- ^
- rts/general/Wall.h:39:26: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- f2 unitIndex_ = f2(0, - 1);
- ^
- rts/general/Wall.h:40:17: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool enabled_ = true;
- ^
- rts/general/Wall.h: In copy constructor 'Wall::Wall(const Wall&)':
- rts/general/Wall.h:16:2: warning: base class 'class Rectangle' should be explicitly initialized in
- he copy constructor [-Wextra]
- Wall(const Wall& wall) {*this = wall;}
- ^
- In file included from rts/Init.h:38:0,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- rts/general/Unit.h: At global scope:
- rts/general/Unit.h:88:26: warning: type qualifiers ignored on function return type [-Wignored-quali
- iers]
- void removeCurrentOrder() {orders_.remove();}
- ^
- rts/general/Unit.h:99:18: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool selected_ = false;
- ^
- rts/general/Unit.h:113:16: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- bool pushed_ = false;
- ^
- rts/general/Unit.h:156:31: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- OrderQueu orders_ = OrderQueu();
- ^
- rts/general/Unit.h:170:24: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- int pathfindingStep_ = 0;
- ^
- rts/general/Unit.h:180:32: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- f2 previousTarget_ = f2(- 1, -1);
- ^
- rts/general/Unit.h:181:17: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- bool enabled_ = true;
- ^
- rts/general/Unit.h: In copy constructor 'Unit::Unit(const Unit&)':
- rts/general/Unit.h:74:2: warning: base class 'class Object' should be explicitly initialized in the
- copy constructor [-Wextra]
- Unit(const Unit& unit) {*this = unit;}
- ^
- In file included from rts/Init.h:39:0,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- rts/Faction.h: At global scope:
- rts/Faction.h:18:21: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- float usedSupply_ = 0;
- ^
- rts/Faction.h:19:24: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- float currentSupply_ = 0;
- ^
- In file included from rts/general/Units.h:27:0,
- from rts/general/Units.cpp:26:
- rts/Init.h: In constructor 'Init::Init(std::string)':
- rts/Init.h:49:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
- (std::string&)'
- ifstream ini(iniPath);
- ^
- rts/Init.h:49:23: note: candidates are:
- In file included from rts/Init.h:29:0,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
- h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
- basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
- char*'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
- _traits<char>]
- basic_ifstream() : __istream_type(), _M_filebuf()
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: candidate expects 0 arguments, 1 provided
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
- class basic_ifstream : public basic_istream<_CharT, _Traits>
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
- t std::basic_ifstream<char>&'
- In file included from rts/general/Units.h:27:0,
- from rts/general/Units.cpp:26:
- rts/Init.h:71:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& x : valueMap)
- ^
- rts/Init.h:71:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& x : valueMap)
- ^
- rts/Init.h:73:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h:73:41: error: request for member 'second' in 'x', which is of non-class type 'const int'
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h: In member function 'void Init::loadFile(std::string)':
- rts/Init.h:81:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
- (std::string&)'
- ifstream ini(iniPath);
- ^
- rts/Init.h:81:23: note: candidates are:
- In file included from rts/Init.h:29:0,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
- h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
- basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
- char*'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
- _traits<char>]
- basic_ifstream() : __istream_type(), _M_filebuf()
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: candidate expects 0 arguments, 1 provided
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
- class basic_ifstream : public basic_istream<_CharT, _Traits>
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
- t std::basic_ifstream<char>&'
- In file included from rts/general/Units.h:27:0,
- from rts/general/Units.cpp:26:
- rts/Init.h:103:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& x : valueMap)
- ^
- rts/Init.h:103:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& x : valueMap)
- ^
- rts/Init.h:105:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h:105:41: error: request for member 'second' in 'x', which is of non-class type 'const int
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h: In member function 'std::string Init::evaluate(std::vector<std::basic_string<char> >)':
- rts/Init.h:112:21: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < arguments.size(); ++i)
- ^
- rts/Init.h: In member function 'Rect Init::getRect(const string&) const':
- rts/Init.h:144:19: error: 'stof' is not a member of 'std'
- float top = std::stof(arguments[1]);
- ^
- rts/Init.h:145:20: error: 'stof' is not a member of 'std'
- float left = std::stof(arguments[2]);
- ^
- rts/Init.h:146:20: error: 'stof' is not a member of 'std'
- float width = std::stof(arguments[3]);
- ^
- rts/Init.h:147:21: error: 'stof' is not a member of 'std'
- float height = std::stof(arguments[4]);
- ^
- rts/Init.h: In member function 'sf::Color Init::getColor(const string&) const':
- rts/Init.h:175:17: error: 'stof' is not a member of 'std'
- float r = std::stof(arguments[1]);
- ^
- rts/Init.h:176:17: error: 'stof' is not a member of 'std'
- float g = std::stof(arguments[2]);
- ^
- rts/Init.h:177:18: error: 'stof' is not a member of 'std'
- float b = std::stof(arguments[3]);
- ^
- rts/Init.h:178:18: error: 'stof' is not a member of 'std'
- float a = std::stof(arguments[4]);
- ^
- rts/Init.h: In member function 'Function Init::getFunction(const string&) const':
- rts/Init.h:206:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:218:55: error: 'stoi' is not a member of 'std'
- FunctionType type = static_cast<FunctionType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:219:26: error: 'stoi' is not a member of 'std'
- bool global = std::stoi(get(arguments, "global"));
- ^
- rts/Init.h:220:33: error: 'stoi' is not a member of 'std'
- bool ignoreMousePosition = std::stoi(get(arguments, "ignoreMousePosition"));
- ^
- rts/Init.h:221:29: error: 'stoi' is not a member of 'std'
- bool useDoubleTap = std::stoi(get(arguments, "useDoubleTap"));
- ^
- rts/Init.h: In member function 'f2 Init::getf2(const string&) const':
- rts/Init.h:247:11: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
- 1
- return {0, 0};
- ^
- rts/Init.h:253:14: error: 'stof' is not a member of 'std'
- float x = std::stof(arguments[1]);
- ^
- rts/Init.h:254:14: error: 'stof' is not a member of 'std'
- float y = std::stof(arguments[2]);
- ^
- rts/Init.h:261:10: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
- 1
- return {0, 0};
- ^
- rts/Init.h: In member function 'Animation Init::getAnimation(const string&) const':
- rts/Init.h:276:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:288:26: error: 'stof' is not a member of 'std'
- float rectWidth = std::stof(get(arguments, "rectWidth"));
- ^
- rts/Init.h:289:26: error: 'stof' is not a member of 'std'
- float rectHeight = std::stof(get(arguments, "rectHeight"));
- ^
- rts/Init.h:290:27: error: 'stof' is not a member of 'std'
- float duration = std::stof(get(arguments, "duration"));
- ^
- rts/Init.h:291:26: error: 'stof' is not a member of 'std'
- f2 textureDimensions(std::stof(get(arguments, "columns")),
- ^
- rts/Init.h:292:16: error: 'stof' is not a member of 'std'
- std::stof(get(arguments, "rows")));
- ^
- rts/Init.h:293:24: error: 'stoi' is not a member of 'std'
- bool loops = std::stoi(get(arguments, "loops"));
- ^
- rts/Init.h: In member function 'Projectile Init::getProjectile(const string&) const':
- rts/Init.h:323:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:335:21: error: 'stof' is not a member of 'std'
- float width = std::stof(get(arguments, "width"));
- ^
- rts/Init.h:336:22: error: 'stof' is not a member of 'std'
- float height = std::stof(get(arguments, "height"));
- ^
- rts/Init.h:337:22: error: 'stof' is not a member of 'std'
- float velocity = std::stof(get(arguments, "velocity"));
- ^
- rts/Init.h:338:21: error: 'stof' is not a member of 'std'
- float damage = std::stof(get(arguments, "damage"));
- ^
- rts/Init.h: In member function 'Ability Init::getAbility(const string&) const':
- rts/Init.h:370:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:384:33: error: 'stoi' is not a member of 'std'
- bool firstTargetIsUnit = std::stoi(get(arguments, "firstTargetIsUnit"));
- ^
- rts/Init.h:385:34: error: 'stoi' is not a member of 'std'
- bool secondTargetIsUnit = std::stoi(get(arguments, "secondTargetIsUnit"));
- ^
- rts/Init.h:386:27: error: 'stof' is not a member of 'std'
- float cost = std::stof(get(arguments, "cost"));
- ^
- rts/Init.h:387:28: error: 'stof' is not a member of 'std'
- float range = std::stof(get(arguments, "range"));
- ^
- rts/Init.h:388:29: error: 'stof' is not a member of 'std'
- float cooldown = std::stof(get(arguments, "cooldown"));
- ^
- rts/Init.h:389:28: error: 'stof' is not a member of 'std'
- float radius = std::stof(get(arguments, "radius"));
- ^
- rts/Init.h:390:29: error: 'stoi' is not a member of 'std'
- bool targeted = std::stoi(get(arguments, "targeted"));
- ^
- rts/Init.h:391:29: error: 'stof' is not a member of 'std'
- float velocity = std::stof(get(arguments, "velocity"));
- ^
- rts/Init.h:392:28: error: 'stof' is not a member of 'std'
- float damage = std::stof(get(arguments, "damage"));
- ^
- rts/Init.h:393:29: error: 'stof' is not a member of 'std'
- float duration = std::stof(get(arguments, "duration"));
- ^
- rts/Init.h:395:28: error: 'stoi' is not a member of 'std'
- bool hitsAir = std::stoi(get(arguments, "hitsAir"));
- ^
- rts/Init.h:396:30: error: 'stoi' is not a member of 'std'
- bool hitsGround = std::stoi(get(arguments, "hitsGround"));
- ^
- rts/Init.h:397:28: error: 'stoi' is not a member of 'std'
- bool active = std::stoi(get(arguments, "active"));
- ^
- rts/Init.h:398:28: error: 'stoi' is not a member of 'std'
- bool applied = std::stoi(get(arguments, "applied"));
- ^
- rts/Init.h:399:30: error: 'stoi' is not a member of 'std'
- bool targetEnemy = std::stoi(get(arguments, "targetEnemy"));
- ^
- rts/Init.h:400:32: error: 'stoi' is not a member of 'std'
- bool targetFriendly = std::stoi(get(arguments, "targetFriendly"));
- ^
- rts/Init.h:401:29: error: 'stoi' is not a member of 'std'
- bool hitEnemy = std::stoi(get(arguments, "hitEnemy"));
- ^
- rts/Init.h:402:30: error: 'stoi' is not a member of 'std'
- bool hitFriendly = std::stoi(get(arguments, "hitFriendly"));
- ^
- rts/Init.h:403:29: error: 'stoi' is not a member of 'std'
- bool autoCast = std::stoi(get(arguments, "autoCast"));
- ^
- rts/Init.h:405:29: error: 'stoi' is not a member of 'std'
- bool piercing = std::stoi(get(arguments, "piercing"));
- ^
- rts/Init.h:406:29: error: 'stoi' is not a member of 'std'
- bool collision = std::stoi(get(arguments, "collision"));
- ^
- rts/Init.h:407:31: error: 'stoi' is not a member of 'std'
- bool makesBuilding = std::stoi(get(arguments, "makesBuilding"));
- ^
- rts/Init.h:408:29: error: 'stoi' is not a member of 'std'
- bool makesUnit = std::stoi(get(arguments, "makesUnit"));
- ^
- rts/Init.h:409:31: error: 'stoi' is not a member of 'std'
- bool isProjectile = std::stoi(get(arguments, "isProjectile"));
- ^
- rts/Init.h:410:30: error: 'stoi' is not a member of 'std'
- bool isResearch = std::stoi(get(arguments, "isResearch"));
- ^
- rts/Init.h:411:29: error: 'stoi' is not a member of 'std'
- bool useOnce = std::stoi(get(arguments, "useOnce"));
- ^
- rts/Init.h:412:34: error: 'stoi' is not a member of 'std'
- bool useForAllUnitTypes = std::stoi(get(arguments, "useForAllUnitTypes"));
- ^
- rts/Init.h:413:53: error: 'stoi' is not a member of 'std'
- Research research = static_cast<Research>(std::stoi(get(arguments, "research")));
- ^
- rts/Init.h:414:57: error: 'stoi' is not a member of 'std'
- OrderType abilityEnum = static_cast<OrderType>(std::stoi(get(arguments, "abilityEnum")));
- ^
- rts/Init.h:420:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < typesString.size(); ++i)
- ^
- rts/Init.h:422:51: error: 'stoi' is not a member of 'std'
- effects.push_back(static_cast<AbilityEffect>(std::stoi(typesString[i])));
- ^
- In file included from rts/general/Units.h:27:0,
- from rts/general/Units.cpp:26:
- rts/Init.h: In member function 'std::vector<Ability> Init::getAbilities() const':
- rts/Init.h:448:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& x : valueMap)
- ^
- rts/Init.h:448:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& x : valueMap)
- ^
- rts/Init.h:450:46: error: request for member 'first' in 'x', which is of non-class type 'const int'
- vector<string> args = split(valueMap.at(x.first));
- ^
- rts/Init.h:453:38: error: request for member 'first' in 'x', which is of non-class type 'const int'
- abilities.push_back(getAbility(x.first));
- ^
- rts/Init.h: In member function 'Unit Init::getUnit(const string&) const':
- rts/Init.h:471:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:483:26: error: 'stof' is not a member of 'std'
- float RectWidth = std::stof(get(arguments, "RectWidth"));
- ^
- rts/Init.h:484:26: error: 'stof' is not a member of 'std'
- float RectHeight = std::stof(get(arguments, "RectHeight"));
- ^
- rts/Init.h:489:20: error: 'stof' is not a member of 'std'
- float radius = std::stof(get(arguments, "radius"));
- ^
- rts/Init.h:496:26: error: 'stof' is not a member of 'std'
- float health = std::stof(get(arguments, "health"));
- ^
- rts/Init.h:497:28: error: 'stof' is not a member of 'std'
- float attackPoint = std::stof(get(arguments, "attackPoint"));
- ^
- rts/Init.h:498:28: error: 'stof' is not a member of 'std'
- float attackDelay = std::stof(get(arguments, "attackDelay"));
- ^
- rts/Init.h:499:25: error: 'stof' is not a member of 'std'
- float armor = std::stof(get(arguments, "armor"));
- ^
- rts/Init.h:500:29: error: 'stof' is not a member of 'std'
- float movementSpeed = std::stof(get(arguments, "movementSpeed"));
- ^
- rts/Init.h:501:25: error: 'stof' is not a member of 'std'
- float range = std::stof(get(arguments, "range"));
- ^
- rts/Init.h:502:28: error: 'stof' is not a member of 'std'
- float sightRange = std::stof(get(arguments, "sightRange"));
- ^
- rts/Init.h:503:26: error: 'stof' is not a member of 'std'
- float supply = std::stof(get(arguments, "supply"));
- ^
- rts/Init.h:504:27: error: 'stof' is not a member of 'std'
- float buildTime = std::stof(get(arguments, "buildTime"));
- ^
- rts/Init.h:505:28: error: 'stof' is not a member of 'std'
- float barrelLength = std::stof(get(arguments, "barrelLength"));
- ^
- rts/Init.h:506:31: error: 'stof' is not a member of 'std'
- float resourceCapacity = std::stof(get(arguments, "resourceCapacity"));
- ^
- rts/Init.h:507:27: error: 'stof' is not a member of 'std'
- float maxEnergy = std::stof(get(arguments, "maxEnergy"));
- ^
- rts/Init.h:508:26: error: 'stof' is not a member of 'std'
- float energy = std::stof(get(arguments, "energy"));
- ^
- rts/Init.h:509:27: error: 'stof' is not a member of 'std'
- float maxShield = std::stof(get(arguments, "maxShield"));
- ^
- rts/Init.h:510:30: error: 'stof' is not a member of 'std'
- float gatherDuration = std::stof(get(arguments, "gatherDuration"));
- ^
- rts/Init.h:511:28: error: 'stof' is not a member of 'std'
- float vertOffset = std::stof(get(arguments, "vertOffset"));
- ^
- rts/Init.h:512:27: error: 'stof' is not a member of 'std'
- float horOffset = std::stof(get(arguments, "horOffset"));
- ^
- rts/Init.h:514:26: error: 'stoi' is not a member of 'std'
- bool canAttack = std::stoi(get(arguments, "canAttack"));
- ^
- rts/Init.h:515:27: error: 'stoi' is not a member of 'std'
- bool canBeMoved = std::stoi(get(arguments, "canBeMoved"));
- ^
- rts/Init.h:516:26: error: 'stoi' is not a member of 'std'
- bool canRotate = std::stoi(get(arguments, "canRotate"));
- ^
- rts/Init.h:517:25: error: 'stoi' is not a member of 'std'
- bool flying = std::stoi(get(arguments, "flying"));
- ^
- rts/Init.h:518:25: error: 'stoi' is not a member of 'std'
- bool hasHead = std::stoi(get(arguments, "hasHead"));
- ^
- rts/Init.h:519:30: error: 'stoi' is not a member of 'std'
- bool returnsResources = std::stoi(get(arguments, "returnsResources"));
- ^
- rts/Init.h:520:26: error: 'stoi' is not a member of 'std'
- bool animated = std::stoi(get(arguments, "animated"));
- ^
- rts/Init.h:521:27: error: 'stoi' is not a member of 'std'
- bool isBuilding = std::stoi(get(arguments, "isBuilding"));
- ^
- rts/Init.h:522:27: error: 'stoi' is not a member of 'std'
- bool noCollision = std::stoi(get(arguments, "noCollision"));
- ^
- rts/Init.h:523:29: error: 'stoi' is not a member of 'std'
- int workersRequired = std::stoi(get(arguments, "workersRequired"));
- ^
- rts/Init.h:524:46: error: in C++98 'offset' must be initialized by constructor, not by '{...}'
- f2 offset = {horOffset, vertOffset};
- ^
- rts/Init.h:530:51: error: 'stoi' is not a member of 'std'
- OrderType projectile = static_cast<OrderType>(std::stoi(get(arguments, "projectile")));
- ^
- rts/Init.h:538:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < costsstring.size(); ++i)
- ^
- rts/Init.h:540:22: error: 'stof' is not a member of 'std'
- costs.push_back(std::stof(costsstring[i]));
- ^
- rts/Init.h:545:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < typesString.size(); ++i)
- ^
- rts/Init.h:547:44: error: 'stoi' is not a member of 'std'
- types.push_back(static_cast<unitType>(std::stoi(typesString[i])));
- ^
- rts/Init.h:553:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < abl.size(); ++i)
- ^
- rts/Init.h:555:49: error: 'stoi' is not a member of 'std'
- abilities.push_back(static_cast<OrderType>(std::stoi(abl[i])));
- ^
- rts/Init.h:561:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < pass.size(); ++i)
- ^
- rts/Init.h:565:49: error: 'stoi' is not a member of 'std'
- passives.push_back(static_cast<OrderType>(std::stoi(pass[i])));
- ^
- rts/Init.h:577:24: error: 'stof' is not a member of 'std'
- unit.aggroRange_ = std::stof(get(arguments, "aggroRange"));
- ^
- rts/Init.h: In member function 'float Init::getfloat(const string&) const':
- rts/Init.h:603:10: error: 'stof' is not a member of 'std'
- return std::stof(get(valueMap, key));
- ^
- rts/Init.h: In member function 'Hotkey Init::getHotkey(const string&) const':
- rts/Init.h:618:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:631:21: error: 'stoi' is not a member of 'std'
- bool realtime = std::stoi(get(arguments, "realtime"));
- ^
- rts/Init.h:635:25: error: 'stoi' is not a member of 'std'
- bool control = std::stoi(get(arguments, "control"));
- ^
- rts/Init.h:636:25: error: 'stoi' is not a member of 'std'
- bool shift = std::stoi(get(arguments, "shift"));
- ^
- rts/Init.h:637:24: error: 'stoi' is not a member of 'std'
- bool alt = std::stoi(get(arguments, "alt"));
- ^
- rts/Init.h:638:25: error: 'stoi' is not a member of 'std'
- bool super = std::stoi(get(arguments, "super"));
- ^
- rts/Init.h:639:26: error: 'stoi' is not a member of 'std'
- bool isButton = std::stoi(get(arguments, "isButton"));
- ^
- rts/Init.h:640:29: error: 'stoi' is not a member of 'std'
- bool unitCardControl = std::stoi(get(arguments, "unitCardControl"));
- ^
- rts/Init.h:641:29: error: 'stoi' is not a member of 'std'
- bool miniMapControl = std::stoi(get(arguments, "miniMapControl"));
- ^
- rts/Init.h:642:27: error: 'stoi' is not a member of 'std'
- bool doubleTap = std::stoi(get(arguments, "doubleTap"));
- ^
- rts/Init.h:643:32: error: 'stoi' is not a member of 'std'
- bool commandCardControl = std::stoi(get(arguments, "commandCardControl"));
- ^
- rts/Init.h:645:16: error: 'stoi' is not a member of 'std'
- int key = std::stoi(get(arguments, "key"));
- ^
- rts/Init.h:646:19: error: 'stoi' is not a member of 'std'
- int button = std::stoi(get(arguments, "button"));
- ^
- rts/Init.h:655:26: error: 'stoi' is not a member of 'std'
- hotkey.eventType_ = std::stoi(get(arguments, "eventType"));
- ^
- rts/Init.h:679:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < stringKeys.size(); ++i)
- ^
- rts/Init.h:681:31: error: 'stoi' is not a member of 'std'
- hotkey.keys_.push_back(std::stoi(stringKeys[i]));
- ^
- rts/Init.h:689:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < stringButtons.size(); ++i)
- ^
- rts/Init.h:691:34: error: 'stoi' is not a member of 'std'
- hotkey.buttons_.push_back(std::stoi(stringButtons[i]));
- ^
- rts/Init.h: In member function 'sf::Mouse::Button Init::getButton(const string&) const':
- rts/Init.h:715:41: error: 'stoi' is not a member of 'std'
- return static_cast<sf::Mouse::Button>(std::stoi(get(valueMap, key)));
- ^
- rts/Init.h: In member function 'sf::Keyboard::Key Init::getKey(const string&) const':
- rts/Init.h:720:41: error: 'stoi' is not a member of 'std'
- return static_cast<sf::Keyboard::Key>(std::stoi(get(valueMap, key)));
- ^
- rts/Init.h: In member function 'Tile Init::getTile(const string&) const':
- rts/Init.h:735:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:747:22: error: 'stof' is not a member of 'std'
- float width = std::stof(get(arguments, "width"));
- ^
- rts/Init.h:748:22: error: 'stof' is not a member of 'std'
- float height = std::stof(get(arguments, "height"));
- ^
- rts/Init.h:753:25: error: 'stof' is not a member of 'std'
- float resources = std::stof(get(arguments, "resources"));
- ^
- rts/Init.h:755:25: error: 'stoi' is not a member of 'std'
- bool passable = std::stoi(get(arguments, "passable"));
- ^
- rts/Init.h:756:46: error: 'stoi' is not a member of 'std'
- TileType type = static_cast<TileType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:753:11: warning: unused variable 'resources' [-Wunused-variable]
- float resources = std::stof(get(arguments, "resources"));
- ^
- rts/Init.h: In member function 'Wall Init::getWall(const string&) const':
- rts/Init.h:788:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:801:27: error: 'stof' is not a member of 'std'
- float width = std::stof(get(arguments, "width"));
- ^
- rts/Init.h:802:27: error: 'stof' is not a member of 'std'
- float height = std::stof(get(arguments, "height"));
- ^
- rts/Init.h:807:50: error: 'stoi' is not a member of 'std'
- WallType type = static_cast<WallType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:813:30: error: 'stoi' is not a member of 'std'
- wall.canBeSeenThrough_ = std::stoi(get(arguments, "canBeSeenThrough"));
- ^
- rts/Init.h:814:31: error: 'stoi' is not a member of 'std'
- wall.canBeMovedThrough_ = std::stoi(get(arguments, "canBeMovedThrough"));
- ^
- rts/Init.h:815:28: error: 'stoi' is not a member of 'std'
- wall.canBeDestroyed_ = std::stoi(get(arguments, "canBeDestroyed"));
- ^
- rts/Init.h:816:37: error: 'stoi' is not a member of 'std'
- wall.canBePartiallyDestroyed_ = std::stoi(get(arguments, "canBePartiallyDestroyed"));
- ^
- rts/Init.h:817:23: error: 'stof' is not a member of 'std'
- wall.hitPoints_ = std::stof(get(arguments, "hitPoints"));
- ^
- rts/Init.h: In member function 'std::vector<Wall*> Init::getWalls(const string&) const':
- rts/Init.h:848:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:852:24: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int j = 0; j < dataSet.size(); ++j)
- ^
- rts/Init.h:859:13: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h:859:33: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h:859:53: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h:859:73: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h: In member function 'Faction Init::getFaction(const string&) const':
- rts/Init.h:888:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:900:35: error: 'stoi' is not a member of 'std'
- int numberOfResourceTypes = std::stoi(get(arguments, "numberOfResourceTypes"));
- ^
- rts/Init.h:901:30: error: 'stof' is not a member of 'std'
- float maxSupply = std::stof(get(arguments, "maxSupply"));
- ^
- rts/Init.h:902:32: error: 'stof' is not a member of 'std'
- float civilianFavor = std::stof(get(arguments, "civilianFavor"));
- ^
- rts/Init.h:903:55: error: 'stoi' is not a member of 'std'
- FactionType type = static_cast<FactionType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:912:40: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- if (currentResourcesstring.size() > i)
- ^
- rts/Init.h:914:34: error: 'stof' is not a member of 'std'
- currentResources.push_back(std::stof(currentResourcesstring[i]));
- ^
- rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allUnits() const':
- rts/Init.h:947:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& element : valueMap)
- ^
- rts/Init.h:947:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : valueMap)
- ^
- rts/Init.h:949:16: error: request for member 'second' in 'element', which is of non-class type 'con
- t int'
- if (element.second.compare(0, 4, "Unit") == 0)
- ^
- rts/Init.h:951:30: error: request for member 'first' in 'element', which is of non-class type 'cons
- int'
- result.push_back(element.first);
- ^
- rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allWalls() const':
- rts/Init.h:961:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& element : valueMap)
- ^
- rts/Init.h:961:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : valueMap)
- ^
- rts/Init.h:963:16: error: request for member 'second' in 'element', which is of non-class type 'con
- t int'
- if (element.second.compare(0, 4, "Wall") == 0)
- ^
- rts/Init.h:965:30: error: request for member 'first' in 'element', which is of non-class type 'cons
- int'
- result.push_back(element.first);
- ^
- In file included from rts/general/Units.h:29:0,
- from rts/general/Units.cpp:26:
- rts/Hotkeys.h: At global scope:
- rts/Hotkeys.h:133:6: error: 'unordered_map' in namespace 'std' does not name a template type
- std::unordered_map<Hotkey, vector<Function>> hotkeys_;
- ^
- rts/Hotkeys.h: In constructor 'Hotkeys::Hotkeys(std::string)':
- rts/Hotkeys.h:16:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& p : config.valueMap)
- ^
- rts/Hotkeys.h:16:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& p : config.valueMap)
- ^
- rts/Hotkeys.h:18:46: error: request for member 'second' in 'p', which is of non-class type 'const i
- t'
- vector<string> arguments = config.split(p.second, ' ');
- ^
- rts/Hotkeys.h:22:46: error: request for member 'first' in 'p', which is of non-class type 'const in
- '
- Function function = config.getFunction(p.first);
- ^
- rts/Hotkeys.h:23:23: warning: comparison between signed and unsigned integer expressions [-Wsign-co
- pare]
- for (int i = 1; i < arguments.size(); ++i)
- ^
- rts/Hotkeys.h:32:25: warning: comparison between signed and unsigned integer expressions [-Wsign-co
- pare]
- for (int i = 0; i < hotkeysstring.size(); ++i)
- ^
- rts/Hotkeys.h:114:24: warning: comparison between signed and unsigned integer expressions [-Wsign-c
- mpare]
- for (int i = 0; i < hotkeys.size(); ++i)
- ^
- rts/Hotkeys.h:117:11: error: 'hotkeys_' was not declared in this scope
- if (hotkeys_.count(hotkey) == 0)
- ^
- rts/Hotkeys.h:126:7: error: 'hotkeys_' was not declared in this scope
- hotkeys_[hotkey].push_back(function);
- ^
- In file included from rts/general/Units.h:31:0,
- from rts/general/Units.cpp:26:
- rts/general/Terrain.h: In member function 'int Terrain::findTile(f2)':
- rts/general/Terrain.h:17:21: warning: comparison between signed and unsigned integer expressions [-
- sign-compare]
- for (int i = 0; i < objects_.size(); ++i)
- ^
- In file included from rts/general/Units.h:33:0,
- from rts/general/Units.cpp:26:
- rts/general/UI.h: In member function 'int UI::hovered(f2)':
- rts/general/UI.h:15:21: warning: comparison between signed and unsigned integer expressions [-Wsign
- compare]
- for (int i = 0; i < UIElements_.size(); ++i)
- ^
- rts/general/UI.h: In member function 'void UI::setQuad(sf::VertexArray*)':
- rts/general/UI.h:27:21: warning: comparison between signed and unsigned integer expressions [-Wsign
- compare]
- for (int i = 0; i < UIElements_.size(); ++i)
- ^
- rts/general/UI.h: In member function 'void UI::drawText()':
- rts/general/UI.h:35:21: warning: comparison between signed and unsigned integer expressions [-Wsign
- compare]
- for (int i = 0; i < UITextElements_.size(); ++i)
- ^
- In file included from rts/general/Units.h:39:0,
- from rts/general/Units.cpp:26:
- rts/general/EditorAction.h: At global scope:
- rts/general/EditorAction.h:40:41: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<f2> unitsDisabled_ = vector<f2>(0);
- ^
- rts/general/EditorAction.h:41:43: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<int> wallsDisabled_ = vector<int>(0);
- ^
- rts/general/EditorAction.h:42:40: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<f2> unitsEnabled_ = vector<f2>(0);
- ^
- rts/general/EditorAction.h:43:42: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<int> wallsEnabled_ = vector<int>(0);
- ^
- In file included from rts/general/Units.cpp:26:0:
- rts/general/Units.h:85:204: error: 'function' in namespace 'std' does not name a template type
- f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
- 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
- td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
- ^
- rts/general/Units.h:85:212: error: expected ',' or '...' before '<' token
- f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
- 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
- td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
- ^
- rts/general/Units.h:147:7: error: 'unordered_map' in namespace 'std' does not name a template type
- std::unordered_map<int, Unit*>::iterator kill(f2 unit, bool deleteWalls = false);
- ^
- rts/general/Units.h:218:70: error: '>>' should be '> >' within a nested template argument list
- void setFogTries(const f2& center, float radius, vector<vector<float>> lines, sf::VertexArray* ve
- tices);
- ^
- rts/general/Units.h:257:8: error: 'unordered_map' is not a member of 'std'
- vector<std::unordered_map<int, Unit*>> units_;
- ^
- rts/general/Units.h:257:8: error: 'unordered_map' is not a member of 'std'
- rts/general/Units.h:257:40: error: template argument 1 is invalid
- vector<std::unordered_map<int, Unit*>> units_;
- ^
- rts/general/Units.h:257:40: error: template argument 2 is invalid
- rts/general/Units.h:258:15: error: 'unordered_map' is not a member of 'std'
- vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
- ^
- rts/general/Units.h:258:15: error: 'unordered_map' is not a member of 'std'
- rts/general/Units.h:258:46: error: template argument 1 is invalid
- vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
- ^
- rts/general/Units.h:258:46: error: template argument 2 is invalid
- rts/general/Units.h:258:48: error: template argument 1 is invalid
- vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
- ^
- rts/general/Units.h:258:48: error: template argument 2 is invalid
- rts/general/Units.h:264:34: error: '>>' should be '> >' within a nested template argument list
- vector<vector<vector<vector<Unit*>>>> unitsGrid_;
- ^
- rts/general/Units.h:264:36: error: '>>' should be '> >' within a nested template argument list
- vector<vector<vector<vector<Unit*>>>> unitsGrid_;
- ^
- rts/general/Units.h:268:23: error: '>>' should be '> >' within a nested template argument list
- vector<vector<relation>> relationTable_;
- ^
- rts/general/Units.h:284:20: error: '>>' should be '> >' within a nested template argument list
- vector<vector<Unit*>> controlGroups_;
- ^
- rts/general/Units.h:286:19: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- long IDCounter_ = 0;
- ^
- rts/general/Units.h:290:38: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- string selectedSubGroupType_ = "none";
- ^
- rts/general/Units.h:299:30: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- bool creatingSelectionBox_ = false;
- ^
- rts/general/Units.h:310:27: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- bool updatePathfinding_ = false;
- ^
- rts/general/Units.h:339:6: error: 'unordered_map' in namespace 'std' does not name a template type
- std::unordered_map<int, Wall*> walls_;
- ^
- rts/general/Units.h:340:23: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- long wallIDCounter_ = 0;
- ^
- rts/general/Units.h:342:20: error: '>>' should be '> >' within a nested template argument list
- vector<vector<float>> anglesSet_;
- ^
- rts/general/Units.h:343:20: error: '>>' should be '> >' within a nested template argument list
- vector<vector<float>> anglesSetOriginal_;
- ^
- rts/general/Units.h:348:24: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- GameState gameState_ = DEFAULT;
- ^
- rts/general/Units.h:354:19: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- int editorTeam_ = 0;
- ^
- rts/general/Units.h:359:27: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- int editorActionsIndex_ = 0;
- ^
- rts/general/Units.h:361:23: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- bool abilityCursor_ = false;
- ^
- In file included from rts/general/Units.cpp:26:0:
- rts/general/Units.h:85:5: error: default argument missing for parameter 9 of 'f2 Units::closestUnit
- f2, float, std::vector<int>, int, f2, std::string, bool, relation, int)'
- f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
- 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
- td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
- ^
- In file included from rts/general/Units.cpp:26:0:
- rts/general/Units.h: In member function 'Unit* Units::getUnit(f2)':
- rts/general/Units.h:91:38: error: 'units_' was not declared in this scope
- Unit* getUnit(f2 unitIndex) {return units_[unitIndex.x].at(unitIndex.y);}
- ^
- rts/general/Units.cpp: In constructor 'Units::Units(sf::RenderTexture*, sf::Texture*, GameState, sf
- :RenderWindow*, sf::View*)':
- rts/general/Units.cpp:48:41: error: '>>' should be '> >' within a nested template argument list
- relationTable_ = vector<vector<relation>>(amountOfTeams);
- ^
- rts/general/Units.cpp:49:2: error: 'units_' was not declared in this scope
- units_ = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
- ^
- rts/general/Units.cpp:49:18: error: 'unordered_map' is not a member of 'std'
- units_ = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
- ^
- rts/general/Units.cpp:49:18: error: 'unordered_map' is not a member of 'std'
- rts/general/Units.cpp:49:63: error: template argument 1 is invalid
- units_ = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
- ^
- rts/general/Units.cpp:49:63: error: template argument 2 is invalid
- rts/general/Units.cpp:51:48: error: '>>' should be '> >' within a nested template argument list
- unitsGrid_ = vector<vector<vector<vector<Unit*>>>>(amountOfTeams);
- ^
- rts/general/Units.cpp:51:50: error: '>>' should be '> >' within a nested template argument list
- unitsGrid_ = vector<vector<vector<vector<Unit*>>>>(amountOfTeams);
- ^
- rts/general/Units.cpp:52:20: warning: comparison between signed and unsigned integer expressions [-
- sign-compare]
- for (int i = 0; i < unitsGrid_.size(); ++i)
- ^
- rts/general/Units.cpp:54:45: error: '>>' should be '> >' within a nested template argument list
- unitsGrid_[i] = vector<vector<vector<Unit*>>>(int(Init(VALUES.getstring("mapFile")).getRect("gro
- ndTextureNormal").getSize().x) / int(VALUES.getf2("gridSquareSize").x));
- ^
- rts/general/Units.cpp:55:21: warning: comparison between signed and unsigned integer expressions [-
- sign-compare]
- for (int x = 0; x < unitsGrid_[i].size(); ++x)
- ^
- rts/general/Units.cpp:57:42: error: '>>' should be '> >' within a nested template argument list
- unitsGrid_[i][x] = vector<vector<Unit*>>(int(Init(VALUES.getstring("mapFile")).getRect("groundT
- xtureNormal").getSize().y) / int(VALUES.getf2("gridSquareSize").y));
- ^
- rts/general/Units.cpp:60:2: error: 'visibleUnits_' was not declared in this scope
- visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
- ^
- rts/general/Units.cpp:60:32: error: 'unordered_map' is not a member of 'std'
- visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
- ^
- rts/general/Units.cpp:60:32: error: 'unordered_map' is not a member of 'std'
- rts/general/Units.cpp:60:63: error: template argument 1 is invalid
- visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
- ^
- rts/general/Units.cpp:60:63: error: template argument 2 is invalid
- rts/general/Units.cpp:60:65: error: 'amountOfTeams' cannot appear in a constant-expression
- visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
- ^
- rts/general/Units.cpp:60:78: error: template argument 1 is invalid
- visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
- ^
- rts/general/Units.cpp:60:78: error: template argument 2 is invalid
- rts/general/Units.cpp:64:29: error: 'unordered_map' is not a member of 'std'
- visibleUnits_[i] = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
- ^
- rts/general/Units.cpp:64:29: error: 'unordered_map' is not a member of 'std'
- rts/general/Units.cpp:64:74: error: template argument 1 is invalid
- visibleUnits_[i] = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
- ^
- rts/general/Units.cpp:64:74: error: template argument 2 is invalid
- rts/general/Units.cpp:69:38: error: '>>' should be '> >' within a nested template argument list
- controlGroups_ = vector<vector<Unit*>>(15);
- ^
- rts/general/Units.cpp:103:64: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- smallPathfinding_ = Pathfinding(currentMapTexture_.getSize(), {50.f, 50.f});
- ^
- rts/general/Units.cpp:103:76: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- smallPathfinding_ = Pathfinding(currentMapTexture_.getSize(), {50.f, 50.f});
- ^
- rts/general/Units.cpp:104:65: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- mediumPathfinding_ = Pathfinding(currentMapTexture_.getSize(), {100.f, 100.f});
- ^
- rts/general/Units.cpp:104:79: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- mediumPathfinding_ = Pathfinding(currentMapTexture_.getSize(), {100.f, 100.f});
- ^
- rts/general/Units.cpp:105:64: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- largePathfinding_ = Pathfinding(currentMapTexture_.getSize(), {200.f, 200.f});
- ^
- rts/general/Units.cpp:105:78: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- largePathfinding_ = Pathfinding(currentMapTexture_.getSize(), {200.f, 200.f});
- ^
- rts/general/Units.cpp:107:20: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < unpassableTiles_.size(); ++i)
- ^
- rts/general/Units.cpp:121:33: error: expected primary-expression before '(' token
- unitVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
- ^
- rts/general/Units.cpp:121:38: error: 'sf::PrimitiveType' is not a class or namespace
- unitVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
- ^
- rts/general/Units.cpp:122:29: error: expected primary-expression before '(' token
- fogOfWar_ = sf::VertexArray(sf::PrimitiveType::Triangles);
- ^
- rts/general/Units.cpp:122:34: error: 'sf::PrimitiveType' is not a class or namespace
- fogOfWar_ = sf::VertexArray(sf::PrimitiveType::Triangles);
- ^
- rts/general/Units.cpp:124:20: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:131:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element : hotkeys_.hotkeys_)
- ^
- rts/general/Units.cpp:131:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : hotkeys_.hotkeys_)
- ^
- rts/general/Units.cpp:131:38: error: 'class Hotkeys' has no member named 'hotkeys_'
- for (auto const& element : hotkeys_.hotkeys_)
- ^
- rts/general/Units.cpp:133:40: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- vector<Function> functions = element.second;
- ^
- rts/general/Units.cpp:134:21: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < functions.size(); ++i)
- ^
- rts/general/Units.cpp:139:57: error: request for member 'first' in 'element', which is of non-class
- type 'const int'
- UIHotkeysNames_[type - 4] = string() + char(element.first.key_ + 65);
- ^
- rts/general/Units.cpp: In member function 'void Units::createBuildingEditorUI()':
- rts/general/Units.cpp:155:20: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < walls.size(); ++i)
- ^
- rts/general/Units.cpp:160:20: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < units.size(); ++i)
- ^
- rts/general/Units.cpp:169:20: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < buildingEditorUIWalls_.UIElements_.size(); ++i)
- ^
- rts/general/Units.cpp:178:20: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < buildingEditorUIUnits_.UIElements_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'void Units::createMap()':
- rts/general/Units.cpp:203:21: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < teams.size(); ++i)
- ^
- rts/general/Units.cpp:217:21: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < args.size(); ++i)
- ^
- rts/general/Units.cpp:228:23: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < values.size(); ++i)
- ^
- rts/general/Units.cpp:233:17: error: 'stof' is not a member of 'std'
- float x = std::stof(positions[1]);
- ^
- rts/general/Units.cpp:234:17: error: 'stof' is not a member of 'std'
- float y = std::stof(positions[2]);
- ^
- rts/general/Units.cpp:236:26: error: in C++98 'position' must be initialized by constructor, not by
- '{...}'
- f2 position = {x, y};
- ^
- rts/general/Units.cpp:253:20: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::DEFAULT)
- ^
- rts/general/Units.cpp:257:25: error: 'GameState' is not a class or namespace
- else if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:265:21: error: range-based 'for' loops are not allowed in C++98 mode
- for (Wall* wall : walls)
- ^
- rts/general/Units.cpp:284:21: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < args.size(); ++i)
- ^
- rts/general/Units.cpp:289:15: error: 'stoi' is not a member of 'std'
- int team = std::stoi(unitAndTeam[1]);
- ^
- rts/general/Units.cpp:296:23: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < values.size(); ++i)
- ^
- rts/general/Units.cpp:301:17: error: 'stof' is not a member of 'std'
- float x = std::stof(positions[1]);
- ^
- rts/general/Units.cpp:302:17: error: 'stof' is not a member of 'std'
- float y = std::stof(positions[2]);
- ^
- rts/general/Units.cpp:304:26: error: in C++98 'position' must be initialized by constructor, not by
- '{...}'
- f2 position = {x, y};
- ^
- rts/general/Units.cpp:322:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element: walls_)
- ^
- rts/general/Units.cpp:322:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element: walls_)
- ^
- rts/general/Units.cpp:322:29: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:324:50: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- image.copy(image, texturePosition.x + element.second->getLeft(), texturePosition.y + element.se
- ond->getTop(),
- ^
- rts/general/Units.cpp:324:97: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- image.copy(image, texturePosition.x + element.second->getLeft(), texturePosition.y + element.se
- ond->getTop(),
- ^
- rts/general/Units.cpp:325:18: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- Rect(element.second->texture_.topLeft(), element.second->getSize()), true);
- ^
- rts/general/Units.cpp:325:54: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- Rect(element.second->texture_.topLeft(), element.second->getSize()), true);
- ^
- rts/general/Units.cpp: In member function 'Ability* Units::getAbility(OrderType)':
- rts/general/Units.cpp:334:20: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < usableAbilities_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'bool Units::selectUnitsInBox(const f2&, const f2&, const
- int&)':
- rts/general/Units.cpp:346:20: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::DEFAULT)
- ^
- rts/general/Units.cpp:350:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:350:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:350:30: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:352:39: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- if (selectionRect.contains(element.second->center()) or element.second->contains(boxStart) or
- ^
- rts/general/Units.cpp:352:68: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- if (selectionRect.contains(element.second->center()) or element.second->contains(boxStart) or
- ^
- rts/general/Units.cpp:353:14: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- element.second->contains(boxEnd))
- ^
- rts/general/Units.cpp:356:13: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- element.second->selected_ = true;
- ^
- rts/general/Units.cpp:361:25: error: 'GameState' is not a class or namespace
- else if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:381:29: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- action.wallsEnabled_ = {id};
- ^
- rts/general/Units.cpp:381:24: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- action.wallsEnabled_ = {id};
- ^
- rts/general/Units.cpp:381:24: error: converting to 'const std::vector<int>' from initializer list w
- uld use explicit constructor 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type,
- const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vecto
- <_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_T
- , _Alloc>::allocator_type = std::allocator<int>]'
- rts/general/Units.cpp:381:24: warning: narrowing conversion of 'id' from 'int' to 'std::vector<int>
- :size_type {aka unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
- rts/general/Units.cpp: In member function 'void Units::deselectAll()':
- rts/general/Units.cpp:388:28: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:390:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:390:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:392:12: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- element.second->selected_ = false;
- ^
- rts/general/Units.cpp: In member function 'void Units::attack(const f2&, const f2&)':
- rts/general/Units.cpp:435:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:435:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:435:30: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:437:25: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- Wall* wall = element.second;
- ^
- rts/general/Units.cpp: At global scope:
- rts/general/Units.cpp:456:6: error: 'unordered_map' in namespace 'std' does not name a template typ
- std::unordered_map<int, Unit*>::iterator Units::kill(f2 unitIndex, bool deleteWalls)
- ^
- rts/general/Units.cpp: In member function 'void Units::orderSelected(Order, bool)':
- rts/general/Units.cpp:513:20: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < selectedUnits_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'void Units::orderSelectedSubGroup(Order, bool)':
- rts/general/Units.cpp:521:20: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < selectedUnitsSubGroup_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'f2 Units::findUnitIndex(f2)':
- rts/general/Units.cpp:529:28: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:531:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:531:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:533:16: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- if (element.second->axisAlignedContains(position))
- ^
- rts/general/Units.cpp:535:29: error: request for member 'first' in 'element', which is of non-class
- type 'const int'
- return f2(team, element.first);
- ^
- rts/general/Units.cpp: In member function 'int Units::findWallIndex(f2)':
- rts/general/Units.cpp:544:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:544:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:544:29: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:546:15: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- if (element.second->axisAlignedContains(position))
- ^
- rts/general/Units.cpp:548:19: error: request for member 'first' in 'element', which is of non-class
- type 'const int'
- return element.first;
- ^
- rts/general/Units.cpp: In member function 'f2 Units::findUnitIndex(int)':
- rts/general/Units.cpp:556:28: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp: In member function 'void Units::dynamicAbility(f2, bool)':
- rts/general/Units.cpp:582:20: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < unpassableTiles_.size(); ++i)
- ^
- rts/general/Units.cpp:590:28: error: 'visibleUnits_' was not declared in this scope
- for (int team = 0; team < visibleUnits_[currentTeam_].size(); ++team)
- ^
- rts/general/Units.cpp:592:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element : visibleUnits_[currentTeam_][team])
- ^
- rts/general/Units.cpp:592:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : visibleUnits_[currentTeam_][team])
- ^
- rts/general/Units.cpp:594:25: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp: In member function 'Wall* Units::getNearestWall(const f2&)':
- rts/general/Units.cpp:630:19: error: 'numeric_limits' is not a member of 'std'
- float distance = std::numeric_limits<float>::infinity();
- ^
- rts/general/Units.cpp:630:39: error: expected primary-expression before 'float'
- float distance = std::numeric_limits<float>::infinity();
- ^
- rts/general/Units.cpp:632:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:632:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:632:29: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:634:27: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- float distNew = element.second->distanceFromNearestLine(position);
- ^
- rts/general/Units.cpp:638:21: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- result = element.second;
- ^
- rts/general/Units.cpp:641:18: error: 'numeric_limits' is not a member of 'std'
- if (distance != std::numeric_limits<float>::infinity())
- ^
- rts/general/Units.cpp:641:38: error: expected primary-expression before 'float'
- if (distance != std::numeric_limits<float>::infinity())
- ^
- rts/general/Units.cpp:641:38: error: expected ')' before 'float'
- rts/general/Units.cpp: In member function 'void Units::executeFunction(FunctionType)':
- rts/general/Units.cpp:682:21: error: in C++98 'position' must be initialized by constructor, not by
- '{...}'
- f2 position = {0, 0};
- ^
- rts/general/Units.cpp:685:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::DESELECT_UNITCARD:
- ^
- rts/general/Units.cpp:691:18: error: 'units_' was not declared in this scope
- Unit* unit = units_[unitIndex.x][unitIndex.y];
- ^
- rts/general/Units.cpp:696:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SELECT_UNITCARD:
- ^
- rts/general/Units.cpp:703:18: error: 'units_' was not declared in this scope
- Unit* unit = units_[unitIndex.x][unitIndex.y];
- ^
- rts/general/Units.cpp:708:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SELECTGROUP_UNITCARD:
- ^
- rts/general/Units.cpp:715:18: error: 'units_' was not declared in this scope
- Unit* unit = units_[unitIndex.x][unitIndex.y];
- ^
- rts/general/Units.cpp:720:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::DESELECTGROUP_UNITCARD:
- ^
- rts/general/Units.cpp:726:18: error: 'units_' was not declared in this scope
- Unit* unit = units_[unitIndex.x][unitIndex.y];
- ^
- rts/general/Units.cpp:727:23: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < selectedUnits_.size(); ++i)
- ^
- rts/general/Units.cpp:737:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CONTROL_ALL:
- ^
- rts/general/Units.cpp:739:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
- pat]
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:739:31: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:739:31: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:741:13: error: request for member 'second' in 'element', which is of non-clas
- type 'const int'
- element.second->selected_ = true;
- ^
- rts/general/Units.cpp:745:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SELECT_TYPE:
- ^
- rts/general/Units.cpp:750:18: error: 'units_' was not declared in this scope
- Unit* unit = units_[unitIndex.x][unitIndex.y];
- ^
- rts/general/Units.cpp:755:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP1:
- ^
- rts/general/Units.cpp:756:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP2:
- ^
- rts/general/Units.cpp:757:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP3:
- ^
- rts/general/Units.cpp:758:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP4:
- ^
- rts/general/Units.cpp:759:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP5:
- ^
- rts/general/Units.cpp:760:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP6:
- ^
- rts/general/Units.cpp:761:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP7:
- ^
- rts/general/Units.cpp:762:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP8:
- ^
- rts/general/Units.cpp:763:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP9:
- ^
- rts/general/Units.cpp:764:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP10:
- ^
- rts/general/Units.cpp:765:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP11:
- ^
- rts/general/Units.cpp:766:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP12:
- ^
- rts/general/Units.cpp:767:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP13:
- ^
- rts/general/Units.cpp:768:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP14:
- ^
- rts/general/Units.cpp:769:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CREATE_CONTROL_GROUP15:
- ^
- rts/general/Units.cpp:772:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP1:
- ^
- rts/general/Units.cpp:773:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:778:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP2:
- ^
- rts/general/Units.cpp:779:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:784:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP3:
- ^
- rts/general/Units.cpp:785:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:790:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP4:
- ^
- rts/general/Units.cpp:791:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP5:
- ^
- rts/general/Units.cpp:792:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP6:
- ^
- rts/general/Units.cpp:793:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP7:
- ^
- rts/general/Units.cpp:794:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP8:
- ^
- rts/general/Units.cpp:795:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP9:
- ^
- rts/general/Units.cpp:796:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP10:
- ^
- rts/general/Units.cpp:797:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP11:
- ^
- rts/general/Units.cpp:798:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP12:
- ^
- rts/general/Units.cpp:799:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP13:
- ^
- rts/general/Units.cpp:800:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP14:
- ^
- rts/general/Units.cpp:801:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::RECALL_CONTROL_GROUP15:
- ^
- rts/general/Units.cpp:803:22: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < controlGroups_[static_cast<int>(type) - 55].size(); ++i)
- ^
- rts/general/Units.cpp:809:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP1:
- ^
- rts/general/Units.cpp:810:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP2:
- ^
- rts/general/Units.cpp:811:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP3:
- ^
- rts/general/Units.cpp:812:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP4:
- ^
- rts/general/Units.cpp:813:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP5:
- ^
- rts/general/Units.cpp:814:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP6:
- ^
- rts/general/Units.cpp:815:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP7:
- ^
- rts/general/Units.cpp:816:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP8:
- ^
- rts/general/Units.cpp:817:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP9:
- ^
- rts/general/Units.cpp:818:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP10:
- ^
- rts/general/Units.cpp:819:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP11:
- ^
- rts/general/Units.cpp:820:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP12:
- ^
- rts/general/Units.cpp:821:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP13:
- ^
- rts/general/Units.cpp:822:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP14:
- ^
- rts/general/Units.cpp:823:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CENTER_ON_CONTROL_GROUP15:
- ^
- rts/general/Units.cpp:824:22: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < controlGroups_[static_cast<int>(type) - 70].size(); ++i)
- ^
- rts/general/Units.cpp:835:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP1:
- ^
- rts/general/Units.cpp:836:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP2:
- ^
- rts/general/Units.cpp:837:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP3:
- ^
- rts/general/Units.cpp:838:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP4:
- ^
- rts/general/Units.cpp:839:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP5:
- ^
- rts/general/Units.cpp:840:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP6:
- ^
- rts/general/Units.cpp:841:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP7:
- ^
- rts/general/Units.cpp:842:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP8:
- ^
- rts/general/Units.cpp:843:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP9:
- ^
- rts/general/Units.cpp:844:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP10:
- ^
- rts/general/Units.cpp:845:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP11:
- ^
- rts/general/Units.cpp:846:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP12:
- ^
- rts/general/Units.cpp:847:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP13:
- ^
- rts/general/Units.cpp:848:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP14:
- ^
- rts/general/Units.cpp:849:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ADD_TO_CONTROL_GROUP15:
- ^
- rts/general/Units.cpp:850:22: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < selectedUnits_.size(); ++i)
- ^
- rts/general/Units.cpp:855:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION1:
- ^
- rts/general/Units.cpp:856:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:861:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION2:
- ^
- rts/general/Units.cpp:862:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:867:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION3:
- ^
- rts/general/Units.cpp:868:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:873:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION4:
- ^
- rts/general/Units.cpp:874:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION5:
- ^
- rts/general/Units.cpp:875:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION6:
- ^
- rts/general/Units.cpp:876:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION7:
- ^
- rts/general/Units.cpp:877:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION8:
- ^
- rts/general/Units.cpp:878:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION9:
- ^
- rts/general/Units.cpp:879:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION10:
- ^
- rts/general/Units.cpp:880:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION11:
- ^
- rts/general/Units.cpp:881:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION12:
- ^
- rts/general/Units.cpp:882:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION13:
- ^
- rts/general/Units.cpp:883:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION14:
- ^
- rts/general/Units.cpp:884:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION15:
- ^
- rts/general/Units.cpp:885:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::FUNCTION16:
- ^
- rts/general/Units.cpp:888:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION1:
- ^
- rts/general/Units.cpp:889:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION2:
- ^
- rts/general/Units.cpp:890:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION3:
- ^
- rts/general/Units.cpp:891:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION4:
- ^
- rts/general/Units.cpp:892:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION5:
- ^
- rts/general/Units.cpp:893:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION6:
- ^
- rts/general/Units.cpp:894:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION7:
- ^
- rts/general/Units.cpp:895:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION8:
- ^
- rts/general/Units.cpp:896:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION9:
- ^
- rts/general/Units.cpp:897:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION10:
- ^
- rts/general/Units.cpp:898:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION11:
- ^
- rts/general/Units.cpp:899:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION12:
- ^
- rts/general/Units.cpp:900:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION13:
- ^
- rts/general/Units.cpp:901:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION14:
- ^
- rts/general/Units.cpp:902:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION15:
- ^
- rts/general/Units.cpp:903:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_FUNCTION16:
- ^
- rts/general/Units.cpp:906:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION1:
- ^
- rts/general/Units.cpp:907:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION2:
- ^
- rts/general/Units.cpp:908:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION3:
- ^
- rts/general/Units.cpp:909:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION4:
- ^
- rts/general/Units.cpp:910:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION5:
- ^
- rts/general/Units.cpp:911:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION6:
- ^
- rts/general/Units.cpp:912:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION7:
- ^
- rts/general/Units.cpp:913:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION8:
- ^
- rts/general/Units.cpp:914:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION9:
- ^
- rts/general/Units.cpp:915:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION10:
- ^
- rts/general/Units.cpp:916:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION11:
- ^
- rts/general/Units.cpp:917:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION12:
- ^
- rts/general/Units.cpp:918:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION13:
- ^
- rts/general/Units.cpp:919:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION14:
- ^
- rts/general/Units.cpp:920:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION15:
- ^
- rts/general/Units.cpp:921:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_FUNCTION16:
- ^
- rts/general/Units.cpp:924:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION1:
- ^
- rts/general/Units.cpp:925:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION2:
- ^
- rts/general/Units.cpp:926:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION3:
- ^
- rts/general/Units.cpp:927:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION4:
- ^
- rts/general/Units.cpp:928:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION5:
- ^
- rts/general/Units.cpp:929:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION6:
- ^
- rts/general/Units.cpp:930:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION7:
- ^
- rts/general/Units.cpp:931:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION8:
- ^
- rts/general/Units.cpp:932:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION9:
- ^
- rts/general/Units.cpp:933:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION10:
- ^
- rts/general/Units.cpp:934:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION11:
- ^
- rts/general/Units.cpp:935:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION12:
- ^
- rts/general/Units.cpp:936:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION13:
- ^
- rts/general/Units.cpp:937:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION14:
- ^
- rts/general/Units.cpp:938:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION15:
- ^
- rts/general/Units.cpp:939:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SLOW_QUEU_FUNCTION16:
- ^
- rts/general/Units.cpp:942:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::ORDER_FUNCTION:
- ^
- rts/general/Units.cpp:947:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::QUEU_ORDER:
- ^
- rts/general/Units.cpp:952:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::CHANGE_SUBSELECTION:
- ^
- rts/general/Units.cpp:954:22: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- for (int i = 0; i < currentSelectionTypes_.size(); ++i)
- ^
- rts/general/Units.cpp:958:16: warning: comparison between signed and unsigned integer expressions [
- Wsign-compare]
- if (i + 1 < currentSelectionTypes_.size())
- ^
- rts/general/Units.cpp:971:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::DELETE:
- ^
- rts/general/Units.cpp:973:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:979:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SAVE:
- ^
- rts/general/Units.cpp:981:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:987:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::UNDO:
- ^
- rts/general/Units.cpp:989:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:995:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::COMMAND_CARD_CLICKED:
- ^
- rts/general/Units.cpp:1000:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::SAVE_MAP:
- ^
- rts/general/Units.cpp:1002:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:1008:8: error: 'FunctionType' is not a class or namespace
- case FunctionType::REDO:
- ^
- rts/general/Units.cpp:1010:22: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:683:9: warning: enumeration value 'NON_FUNCTION' not handled in switch [-Wswi
- ch]
- switch (type)
- ^
- rts/general/Units.cpp:683:9: warning: enumeration value 'ORDER_FUNCTION' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION1' not handled in switch [-Wswitch
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION2' not handled in switch [-Wswitch
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION3' not handled in switch [-Wswitch
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION4' not handled in switch [-Wswitch
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION5' not handled in switch [-Wswitch
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION6' not handled in switch [-Wswitch
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION7' not handled in switch [-Wswitch
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION8' not handled in switch [-Wswitch
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION9' not handled in switch [-Wswitch
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION10' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION11' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION12' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION13' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION14' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION15' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION16' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CONTROL_ALL' not handled in switch [-Wswit
- h]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT_TYPE' not handled in switch [-Wswit
- h]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT' not handled in switch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA' not handled in switch [-Wswit
- h]
- rts/general/Units.cpp:683:9: warning: enumeration value 'PAN_DRAG' not handled in switch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT_STOP' not handled in switch [-Wswit
- h]
- rts/general/Units.cpp:683:9: warning: enumeration value 'MENU' not handled in switch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_UP' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_LEFT' not handled in switch [-
- switch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_DOWN' not handled in switch [-
- switch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_RIGHT' not handled in switch [
- Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_BY_MINIMAP' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'DESELECT_UNITCARD' not handled in switch [
- Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_SELECTION' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT_UNITCARD' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SELECTGROUP_UNITCARD' not handled in switc
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'DESELECTGROUP_UNITCARD' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT_ADD' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP1' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP2' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP3' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP4' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP5' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP6' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP7' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP8' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP9' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP10' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP11' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP12' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP13' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP14' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP15' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP1' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP2' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP3' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP4' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP5' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP6' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP7' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP8' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP9' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP10' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP11' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP12' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP13' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP14' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP15' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP1' not handled in s
- itch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP2' not handled in s
- itch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP3' not handled in s
- itch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP4' not handled in s
- itch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP5' not handled in s
- itch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP6' not handled in s
- itch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP7' not handled in s
- itch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP8' not handled in s
- itch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP9' not handled in s
- itch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP10' not handled in
- witch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP11' not handled in
- witch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP12' not handled in
- witch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP13' not handled in
- witch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP14' not handled in
- witch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP15' not handled in
- witch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP1' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP2' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP3' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP4' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP5' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP6' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP7' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP8' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP9' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP10' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP11' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP12' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP13' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP14' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP15' not handled in swi
- ch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION1' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION2' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION3' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION4' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION5' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION6' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION7' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION8' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION9' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION10' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION11' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION12' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION13' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION14' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION15' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION16' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_ORDER' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:683:9: warning: enumeration value 'CHANGE_SUBSELECTION' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'EDGEPAN' not handled in switch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'MOUSE_ENTERED' not handled in switch [-Wsw
- tch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'COMMAND_CARD_COUNTROL' not handled in swit
- h [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'DELETE' not handled in switch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SAVE' not handled in switch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'UNDO' not handled in switch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION1' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION2' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION3' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION4' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION5' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION6' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION7' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION8' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION9' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION10' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION11' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION12' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION13' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION14' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION15' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION16' not handled in switch [-W
- witch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION1' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION2' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION3' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION4' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION5' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION6' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION7' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION8' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION9' not handled in switch
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION10' not handled in switc
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION11' not handled in switc
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION12' not handled in switc
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION13' not handled in switc
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION14' not handled in switc
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION15' not handled in switc
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION16' not handled in switc
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'COMPLETE_ORDER' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'COMMAND_CARD_CLICKED' not handled in switc
- [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'SAVE_MAP' not handled in switch [-Wswitch]
- rts/general/Units.cpp:683:9: warning: enumeration value 'REDO' not handled in switch [-Wswitch]
- rts/general/Units.cpp: In member function 'void Units::saveMap()':
- rts/general/Units.cpp:1027:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:1027:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:1027:29: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:1029:15: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (element.second->enabled_)
- ^
- rts/general/Units.cpp:1031:25: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Wall* wall = element.second;
- ^
- rts/general/Units.cpp:1032:34: error: 'to_string' is not a member of 'std'
- newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
- Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
- + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp:1032:76: error: 'to_string' is not a member of 'std'
- newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
- Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
- + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp:1032:118: error: 'to_string' is not a member of 'std'
- newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
- Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
- + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp:1032:160: error: 'to_string' is not a member of 'std'
- newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
- Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
- + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp:1032:202: error: 'to_string' is not a member of 'std'
- newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
- Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
- + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp:1036:28: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:1038:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1038:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1040:16: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (element.second->enabled_)
- ^
- rts/general/Units.cpp:1042:26: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:1043:35: error: 'to_string' is not a member of 'std'
- newMap += unit->name_ + ":" + std::to_string(unit->team_) + "| f2 " + std::to_string(unit->top
- eft().x) + " " + std::to_string(unit->topLeft().y) + ";";
- ^
- rts/general/Units.cpp:1043:75: error: 'to_string' is not a member of 'std'
- newMap += unit->name_ + ":" + std::to_string(unit->team_) + "| f2 " + std::to_string(unit->top
- eft().x) + " " + std::to_string(unit->topLeft().y) + ";";
- ^
- rts/general/Units.cpp:1043:117: error: 'to_string' is not a member of 'std'
- newMap += unit->name_ + ":" + std::to_string(unit->team_) + "| f2 " + std::to_string(unit->top
- eft().x) + " " + std::to_string(unit->topLeft().y) + ";";
- ^
- rts/general/Units.cpp: In member function 'void Units::commandCardClicked()':
- rts/general/Units.cpp:1056:8: warning: unused variable 'unit' [-Wunused-variable]
- Unit* unit = selectedUnitsSubGroup_[0];
- ^
- rts/general/Units.cpp: In member function 'int Units::addWall(Wall)':
- rts/general/Units.cpp:1074:20: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::DEFAULT)
- ^
- rts/general/Units.cpp:1079:3: error: 'walls_' was not declared in this scope
- walls_[wallIDCounter_] = wall;
- ^
- rts/general/Units.cpp:1084:25: error: 'GameState' is not a class or namespace
- else if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:1086:3: error: 'walls_' was not declared in this scope
- walls_[wallIDCounter_] = wall;
- ^
- rts/general/Units.cpp: In member function 'int Units::addUnit(const Unit&, bool)':
- rts/general/Units.cpp:1111:2: error: 'units_' was not declared in this scope
- units_[newUnit->team_][newUnit->uniqueID_] = newUnit;
- ^
- rts/general/Units.cpp:1118:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < newWalls.size(); ++i)
- ^
- rts/general/Units.cpp:1127:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < wallIDs.size(); ++i)
- ^
- rts/general/Units.cpp:1129:25: error: 'walls_' was not declared in this scope
- newUnit->walls_[i] = walls_[wallIDs[i]];
- ^
- rts/general/Units.cpp: In member function 'void Units::redo()':
- rts/general/Units.cpp:1150:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unitsDisabled.size(); ++i)
- ^
- rts/general/Units.cpp:1153:8: error: 'units_' was not declared in this scope
- if (units_[id.x].count(id.y))
- ^
- rts/general/Units.cpp:1159:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unitsEnabled.size(); ++i)
- ^
- rts/general/Units.cpp:1162:8: error: 'units_' was not declared in this scope
- if (units_[id.x].count(id.y))
- ^
- rts/general/Units.cpp:1168:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < wallsDisabled.size(); ++i)
- ^
- rts/general/Units.cpp:1171:8: error: 'walls_' was not declared in this scope
- if (walls_.count(id))
- ^
- rts/general/Units.cpp:1177:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < wallsEnabled.size(); ++i)
- ^
- rts/general/Units.cpp:1180:8: error: 'walls_' was not declared in this scope
- if (walls_.count(id))
- ^
- rts/general/Units.cpp: In member function 'void Units::undo()':
- rts/general/Units.cpp:1199:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unitsDisabled.size(); ++i)
- ^
- rts/general/Units.cpp:1202:8: error: 'units_' was not declared in this scope
- if (units_[id.x].count(id.y))
- ^
- rts/general/Units.cpp:1208:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unitsEnabled.size(); ++i)
- ^
- rts/general/Units.cpp:1211:8: error: 'units_' was not declared in this scope
- if (units_[id.x].count(id.y))
- ^
- rts/general/Units.cpp:1217:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < wallsDisabled.size(); ++i)
- ^
- rts/general/Units.cpp:1220:8: error: 'walls_' was not declared in this scope
- if (walls_.count(id))
- ^
- rts/general/Units.cpp:1226:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < wallsEnabled.size(); ++i)
- ^
- rts/general/Units.cpp:1229:8: error: 'walls_' was not declared in this scope
- if (walls_.count(id))
- ^
- rts/general/Units.cpp: In member function 'void Units::deleteWall(int)':
- rts/general/Units.cpp:1240:6: error: 'walls_' was not declared in this scope
- if (walls_.count(id))
- ^
- rts/general/Units.cpp:1244:7: error: 'units_' was not declared in this scope
- if (units_[index.x].count(index.y))
- ^
- rts/general/Units.cpp:1247:22: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unit->walls_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'void Units::saveBuilding(std::string)':
- rts/general/Units.cpp:1264:39: error: no matching function for call to 'std::basic_ofstream<char>::
- pen(std::string&, const openmode&)'
- outfile.open(file, std::ios_base::app);
- ^
- rts/general/Units.cpp:1264:39: note: candidate is:
- In file included from rts/Init.h:29:0,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:716:7:
- ote: void std::basic_ofstream<_CharT, _Traits>::open(const char*, std::ios_base::openmode) [with _C
- arT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
- open(const char* __s,
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:716:7:
- ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
- char*'
- rts/general/Units.cpp:1304:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:1304:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:1304:29: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:1306:15: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (element.second->enabled_)
- ^
- rts/general/Units.cpp:1308:25: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Wall* wall = element.second;
- ^
- rts/general/Units.cpp:1310:36: error: 'to_string' is not a member of 'std'
- newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
- opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
- " + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp:1310:78: error: 'to_string' is not a member of 'std'
- newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
- opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
- " + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp:1310:120: error: 'to_string' is not a member of 'std'
- newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
- opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
- " + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp:1310:162: error: 'to_string' is not a member of 'std'
- newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
- opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
- " + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp:1310:204: error: 'to_string' is not a member of 'std'
- newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
- opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
- " + std::to_string(wall->getAngle()) + " ";
- ^
- rts/general/Units.cpp: In member function 'void Units::deleteObject(f2)':
- rts/general/Units.cpp:1325:37: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- action.unitsDisabled_ = {unitIndex};
- ^
- rts/general/Units.cpp:1325:25: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- action.unitsDisabled_ = {unitIndex};
- ^
- rts/general/Units.cpp:1325:25: error: no match for 'operator=' (operand types are 'std::vector<f2>'
- and '<brace-enclosed initializer list>')
- rts/general/Units.cpp:1325:25: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:69:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
- lloc>&) [with _Tp = f2; _Alloc = std::allocator<f2>]
- vector<_Tp, _Alloc>::
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
- std::vector<f2>&'
- rts/general/Units.cpp:1330:31: error: 'walls_' was not declared in this scope
- else if (wallIndex != - 1 && walls_[wallIndex]->enabled_)
- ^
- rts/general/Units.cpp:1333:37: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- action.wallsDisabled_ = {wallIndex};
- ^
- rts/general/Units.cpp:1333:25: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- action.wallsDisabled_ = {wallIndex};
- ^
- rts/general/Units.cpp:1333:25: error: converting to 'const std::vector<int>' from initializer list
- ould use explicit constructor 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type
- const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vect
- r<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_
- p, _Alloc>::allocator_type = std::allocator<int>]'
- rts/general/Units.cpp:1333:25: warning: narrowing conversion of 'wallIndex' from 'int' to 'std::vec
- or<int>::size_type {aka unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
- rts/general/Units.cpp: In member function 'void Units::parseEditorActions(EditorAction)':
- rts/general/Units.cpp:1381:42: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = editorActionsIndex_; i < editorActions_.size(); ++i)
- ^
- rts/general/Units.cpp:1386:25: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unitsDisabled.size(); ++i)
- ^
- rts/general/Units.cpp:1389:12: error: 'units_' was not declared in this scope
- if (units_[id.x].count(id.y))
- ^
- rts/general/Units.cpp:1391:16: error: 'kill' was not declared in this scope
- kill(id);
- ^
- rts/general/Units.cpp:1394:25: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < wallsDisabled.size(); ++i)
- ^
- rts/general/Units.cpp:1397:12: error: 'walls_' was not declared in this scope
- if (walls_.count(id))
- ^
- rts/general/Units.cpp:1435:9: error: 'units_' was not declared in this scope
- if (units_[id.x].count(id.y))
- ^
- rts/general/Units.cpp:1437:13: error: 'kill' was not declared in this scope
- kill(id);
- ^
- rts/general/Units.cpp:1444:9: error: 'walls_' was not declared in this scope
- if (walls_.count(id))
- ^
- rts/general/Units.cpp: In member function 'void Units::placeUnit()':
- rts/general/Units.cpp:1459:16: error: 'units_' was not declared in this scope
- editorUnit_ = units_[editorTeam_][i];
- ^
- rts/general/Units.cpp:1470:42: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- action.unitsEnabled_ = {{editorTeam_, i}};
- ^
- rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- action.unitsEnabled_ = {{editorTeam_, i}};
- ^
- rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- rts/general/Units.cpp:1470:23: error: no match for 'operator=' (operand types are 'std::vector<f2>'
- and '<brace-enclosed initializer list>')
- rts/general/Units.cpp:1470:23: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:69:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
- lloc>&) [with _Tp = f2; _Alloc = std::allocator<f2>]
- vector<_Tp, _Alloc>::
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
- std::vector<f2>&'
- rts/general/Units.cpp: In member function 'void Units::selectAll()':
- rts/general/Units.cpp:1491:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:1491:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:1491:29: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:1493:16: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (!element.second->isBuilding_)
- ^
- rts/general/Units.cpp:1495:12: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- element.second->selected_ = true;
- ^
- rts/general/Units.cpp: In member function 'void Units::selectUnitsOfSameType(f2)':
- rts/general/Units.cpp:1507:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:1507:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:1507:30: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:1509:16: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (element.second->name_ == unit->name_)
- ^
- rts/general/Units.cpp:1511:13: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- element.second->selected_ = true;
- ^
- rts/general/Units.cpp: In member function 'void Units::selectUnitsOfSameType(std::string)':
- rts/general/Units.cpp:1519:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:1519:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:1519:29: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:1521:15: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (element.second->name_ == type)
- ^
- rts/general/Units.cpp:1523:12: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- element.second->selected_ = true;
- ^
- rts/general/Units.cpp: In member function 'Ability* Units::findAbility(int, Unit*)':
- rts/general/Units.cpp:1530:30: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (unit->abilities_.size() <= abilityNumber)
- ^
- rts/general/Units.cpp:1535:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < usableAbilities_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'f2 Units::findUnitIndex(f2, relation)':
- rts/general/Units.cpp:1547:26: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int team = 0; team < relationTable_[currentTeam_].size(); ++team)
- ^
- rts/general/Units.cpp:1551:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1551:31: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1551:31: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:1553:31: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* otherUnit = element.second;
- ^
- rts/general/Units.cpp:1556:30: error: request for member 'first' in 'element', which is of non-clas
- type 'const int'
- return f2(team, element.first);
- ^
- rts/general/Units.cpp:1561:9: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- return {- 1.f, - 1.f};
- ^
- rts/general/Units.cpp: In member function 'void Units::useAbility(int, bool, bool)':
- rts/general/Units.cpp:1599:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < selectedUnitsSubGroup_.size(); ++i)
- ^
- rts/general/Units.cpp:1603:31: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (unit->abilities_.size() <= abilityNumber)
- ^
- rts/general/Units.cpp:1622:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < units.size(); ++i)
- ^
- rts/general/Units.cpp:1626:31: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (unit->abilities_.size() <= abilityNumber)
- ^
- rts/general/Units.cpp:1641:39: error: 'relation' is not a class or namespace
- if (findUnitIndex(mousePosition_, relation::ENEMY) != f2(- 1, - 1))
- ^
- rts/general/Units.cpp:1649:39: error: 'relation' is not a class or namespace
- if (findUnitIndex(mousePosition_, relation::FRIEND) != f2(- 1, - 1))
- ^
- rts/general/Units.cpp: In member function 'std::vector<f2> Units::unitsInRange(f2, float, std::vect
- r<int>)':
- rts/general/Units.cpp:1676:29: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:1683:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < teams.size(); ++i)
- ^
- rts/general/Units.cpp:1686:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1686:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1686:30: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:1688:28: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if ((position - element.second->center()).lengthSquared() < radius * radius)
- ^
- rts/general/Units.cpp:1690:44: error: request for member 'first' in 'element', which is of non-clas
- type 'const int'
- unitIndices.push_back(f2(team, element.first));
- ^
- rts/general/Units.cpp: In member function 'std::vector<f2> Units::visibleUnitsInRange(f2, float, st
- ::vector<int>, int)':
- rts/general/Units.cpp:1701:29: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:1708:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < teams.size(); ++i)
- ^
- rts/general/Units.cpp:1711:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : visibleUnits_[currentTeam][team])
- ^
- rts/general/Units.cpp:1711:31: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : visibleUnits_[currentTeam][team])
- ^
- rts/general/Units.cpp:1711:31: error: 'visibleUnits_' was not declared in this scope
- rts/general/Units.cpp:1713:25: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp: At global scope:
- rts/general/Units.cpp:1724:54: error: 'function' in namespace 'std' does not name a template type
- string name, bool visible, relation rel, const std::function <bool (Unit*, Units*)>& f)
- ^
- rts/general/Units.cpp:1724:63: error: expected ',' or '...' before '<' token
- string name, bool visible, relation rel, const std::function <bool (Unit*, Units*)>& f)
- ^
- rts/general/Units.cpp: In member function 'f2 Units::closestUnit(f2, float, std::vector<int>, int,
- 2, std::string, bool, relation, int)':
- rts/general/Units.cpp:1728:29: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:1742:20: error: 'numeric_limits' is not a member of 'std'
- float distance = std::numeric_limits<float>::infinity();
- ^
- rts/general/Units.cpp:1742:40: error: expected primary-expression before 'float'
- float distance = std::numeric_limits<float>::infinity();
- ^
- rts/general/Units.cpp:1743:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < teams.size(); ++i)
- ^
- rts/general/Units.cpp:1746:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : visibleUnits_[currentTeam][team])
- ^
- rts/general/Units.cpp:1746:32: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : visibleUnits_[currentTeam][team])
- ^
- rts/general/Units.cpp:1746:32: error: 'visibleUnits_' was not declared in this scope
- rts/general/Units.cpp:1748:26: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:1752:120: error: 'f' was not declared in this scope
- (unit->name_ == name || name == "any") && (rel == relationTable_[currentTeam][team] || rel ==
- ANY) && f(unit, this))
- ^
- rts/general/Units.cpp:1764:20: error: 'numeric_limits' is not a member of 'std'
- float distance = std::numeric_limits<float>::infinity();
- ^
- rts/general/Units.cpp:1764:40: error: expected primary-expression before 'float'
- float distance = std::numeric_limits<float>::infinity();
- ^
- rts/general/Units.cpp:1765:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < teams.size(); ++i)
- ^
- rts/general/Units.cpp:1768:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1768:32: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1768:32: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:1770:26: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:1774:120: error: 'f' was not declared in this scope
- (unit->name_ == name || name == "any") && (rel == relationTable_[currentTeam][team] || rel ==
- ANY) && f(unit, this))
- ^
- rts/general/Units.cpp: In member function 'void Units::spatialIndexing()':
- rts/general/Units.cpp:1788:28: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:1790:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int x = 0; x < unitsGrid_[team].size(); ++x)
- ^
- rts/general/Units.cpp:1792:22: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int y = 0; y < unitsGrid_[team][x].size(); ++y)
- ^
- rts/general/Units.cpp:1798:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1798:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:1809:25: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:1812:30: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (column >= 0 && column < unitsGrid_[team].size() && row >= 0 && row < unitsGrid_[team][colum
- ].size())
- ^
- rts/general/Units.cpp:1812:75: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (column >= 0 && column < unitsGrid_[team].size() && row >= 0 && row < unitsGrid_[team][colum
- ].size())
- ^
- rts/general/Units.cpp:1817:29: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- if (unit->circleContains({column * gridSquareSize_.x, row * gridSquareSize_.y}))
- ^
- rts/general/Units.cpp:1823:29: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- if (unit->circleContains({(column + 1) * gridSquareSize_.x, row * gridSquareSize_.y}))
- ^
- rts/general/Units.cpp:1829:29: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- if (unit->circleContains({(column + 1) * gridSquareSize_.x, (row + 1) * gridSquareSize_.y}))
- ^
- rts/general/Units.cpp:1835:29: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- if (unit->circleContains({(column) * gridSquareSize_.x, (row + 1) * gridSquareSize_.y}))
- ^
- rts/general/Units.cpp:1864:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1864:62: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1875:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1875:62: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1887:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1887:62: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1898:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1898:62: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1910:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1910:62: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1922:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1922:62: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1934:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1934:62: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1945:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp:1945:62: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
- ^
- rts/general/Units.cpp: In member function 'void Units::processFactions()':
- rts/general/Units.cpp:1957:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < factions_.size(); ++i)
- ^
- rts/general/Units.cpp:1962:9: error: 'FactionType' is not a class or namespace
- case FactionType::CIVILIANS:
- ^
- rts/general/Units.cpp:1966:9: error: 'FactionType' is not a class or namespace
- case FactionType::MILITARY:
- ^
- rts/general/Units.cpp:1970:9: error: 'FactionType' is not a class or namespace
- case FactionType::GR:
- ^
- rts/general/Units.cpp:1960:10: warning: enumeration value 'CIVILIANS' not handled in switch [-Wswit
- h]
- switch (faction->type_)
- ^
- rts/general/Units.cpp:1960:10: warning: enumeration value 'MILITARY' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:1960:10: warning: enumeration value 'GR' not handled in switch [-Wswitch]
- rts/general/Units.cpp: In member function 'void Units::processVision()':
- rts/general/Units.cpp:1980:22: error: 'visibleUnits_' was not declared in this scope
- for (int i = 0; i < visibleUnits_.size(); ++i)
- ^
- rts/general/Units.cpp:1991:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:1991:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:1991:29: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:1993:16: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (!element.second->canBeSeenThrough_)
- ^
- rts/general/Units.cpp:1995:42: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- visionBLockingRects.push_back(element.second->getRect());
- ^
- rts/general/Units.cpp:1999:28: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:2009:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:2009:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:2011:25: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:2012:4: error: 'visibleUnits_' was not declared in this scope
- visibleUnits_[team][team][unit->uniqueID_] = element.second;
- ^
- rts/general/Units.cpp:2012:57: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- visibleUnits_[team][team][unit->uniqueID_] = element.second;
- ^
- rts/general/Units.cpp:2013:71: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- vector<f2> unitsInVision = unitsInRange(unit->offCenter(), element.second->sightRange_, teams);
- ^
- rts/general/Units.cpp:2014:22: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unitsInVision.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'void Units::update(const float&)':
- rts/general/Units.cpp:2028:20: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:2036:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < currentFaction_->currentResources_.size(); ++i)
- ^
- rts/general/Units.cpp:2038:20: error: 'to_string' is not a member of 'std'
- resourceInfo_ += std::to_string(int(currentFaction_->currentResources_[i]));
- ^
- rts/general/Units.cpp:2041:32: error: 'to_string' is not a member of 'std'
- resourceInfo_ += "supply: " + std::to_string(int(currentFaction_->usedSupply_)) + "/" + std::to_s
- ring(int(currentFaction_->currentSupply_));
- ^
- rts/general/Units.cpp:2041:90: error: 'to_string' is not a member of 'std'
- resourceInfo_ += "supply: " + std::to_string(int(currentFaction_->usedSupply_)) + "/" + std::to_s
- ring(int(currentFaction_->currentSupply_));
- ^
- rts/general/Units.cpp:2046:40: error: 'units_' was not declared in this scope
- for (int teamNumber = 0; teamNumber < units_.size(); ++teamNumber)
- ^
- rts/general/Units.cpp:2048:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[teamNumber])
- ^
- rts/general/Units.cpp:2048:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[teamNumber])
- ^
- rts/general/Units.cpp:2050:25: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:2059:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < selectedUnits_.size(); ++i)
- ^
- rts/general/Units.cpp:2062:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int j = 0; j < currentSelectionTypes_.size(); ++j)
- ^
- rts/general/Units.cpp:2077:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < currentSelectionTypes_.size(); ++i)
- ^
- rts/general/Units.cpp:2091:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < selectedUnits_.size(); ++i)
- ^
- rts/general/Units.cpp:2099:40: error: 'units_' was not declared in this scope
- for (int teamNumber = 0; teamNumber < units_.size(); ++teamNumber)
- ^
- rts/general/Units.cpp:2101:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[teamNumber])
- ^
- rts/general/Units.cpp:2101:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[teamNumber])
- ^
- rts/general/Units.cpp:2103:25: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:2121:40: error: 'units_' was not declared in this scope
- for (int teamNumber = 0; teamNumber < units_.size(); ++teamNumber)
- ^
- rts/general/Units.cpp:2125:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto element = units_[teamNumber].begin(); element != units_[teamNumber].end(); ++element)
- ^
- rts/general/Units.cpp:2125:13: error: 'element' does not name a type
- for (auto element = units_[teamNumber].begin(); element != units_[teamNumber].end(); ++element)
- ^
- rts/general/Units.cpp:2125:51: error: expected ';' before 'element'
- for (auto element = units_[teamNumber].begin(); element != units_[teamNumber].end(); ++element)
- ^
- rts/general/Units.cpp:2125:51: error: 'element' was not declared in this scope
- rts/general/Units.cpp:2169:50: error: 'kill' was not declared in this scope
- element = kill(f2(teamNumber, element->first));
- ^
- rts/general/Units.cpp:2183:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < animations_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'std::vector<Rect> Units::generateStaticObstacles()':
- rts/general/Units.cpp:2208:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unpassableTiles_.size(); ++i)
- ^
- rts/general/Units.cpp:2212:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:2212:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:2212:29: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:2214:16: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (!element.second->canBeMovedThrough_)
- ^
- rts/general/Units.cpp:2216:33: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- obstacles.push_back(*element.second);
- ^
- rts/general/Units.cpp: In member function 'void Units::randomCivilianOrders(int, int)':
- rts/general/Units.cpp:2239:23: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- Unit* unit = getUnit({float(team), float(id)});
- ^
- rts/general/Units.cpp: In member function 'void Units::processBoidianMovement(Unit*)':
- rts/general/Units.cpp:2270:23: error: in C++98 'flocking' must be initialized by constructor, not b
- '{...}'
- f2 flocking = {0, 0};
- ^
- rts/general/Units.cpp:2271:23: error: in C++98 'avoidance' must be initialized by constructor, not
- y '{...}'
- f2 avoidance = {0, 0};
- ^
- rts/general/Units.cpp:2272:23: error: in C++98 'steering' must be initialized by constructor, not b
- '{...}'
- f2 steering = {0, 0};
- ^
- rts/general/Units.cpp:2275:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[unit1->team_])
- ^
- rts/general/Units.cpp:2275:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[unit1->team_])
- ^
- rts/general/Units.cpp:2275:30: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:2277:26: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit2 = element.second;
- ^
- rts/general/Units.cpp: In member function 'int Units::getAbilityNumber(Unit*, OrderType)':
- rts/general/Units.cpp:2317:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unit->abilities_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'void Units::processPassives(int, int)':
- rts/general/Units.cpp:2339:68: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- vector<f2> units = unitsInRange(unit->offCenter(), unit->range_, {currentTeam_});
- ^
- rts/general/Units.cpp:2339:82: error: converting to 'std::vector<int>' from initializer list would
- se explicit constructor 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, cons
- value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp
- _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _A
- loc>::allocator_type = std::allocator<int>]'
- vector<f2> units = unitsInRange(unit->offCenter(), unit->range_, {currentTeam_});
- ^
- rts/general/Units.cpp:2339:82: warning: narrowing conversion of '((Units*)this)->Units::currentTeam
- ' from 'int' to 'std::vector<int>::size_type {aka unsigned int}' inside { } is ill-formed in C++11
- -Wnarrowing]
- rts/general/Units.cpp:2340:24: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (units.size() - 1 < unit->workersRequired_)
- ^
- rts/general/Units.cpp:2345:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < unit->passives_.size(); ++i)
- ^
- rts/general/Units.cpp:2349:10: warning: enumeration value 'NO_COMMAND' not handled in switch [-Wswi
- ch]
- switch (type)
- ^
- rts/general/Units.cpp:2349:10: warning: enumeration value 'MOVE' not handled in switch [-Wswitch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'ATTACK' not handled in switch [-Wswitch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'ATTACK_MOVE' not handled in switch [-Wsw
- tch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'HOLD' not handled in switch [-Wswitch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'CANCEL' not handled in switch [-Wswitch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'PATROL' not handled in switch [-Wswitch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY1' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY2' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY3' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY4' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY5' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY6' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY7' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY8' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY9' not handled in switch [-Ws
- itch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY10' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY11' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY12' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY13' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY14' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY15' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY16' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY17' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY18' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY19' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY20' not handled in switch [-W
- witch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'TELEPORT' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'CREATE_RECRUITMENT_STAND' not handled in
- switch [-Wswitch]
- rts/general/Units.cpp:2349:10: warning: enumeration value 'GIVE_SMG' not handled in switch [-Wswitc
- ]
- rts/general/Units.cpp: In member function 'int Units::getCivilianTeam()':
- rts/general/Units.cpp:2385:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < factions_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'void Units::recruitNearestCivilian(f2, int, int)':
- rts/general/Units.cpp:2398:33: error: 'numeric_limits' is not a member of 'std'
- f2 civ = closestUnit(position, std::numeric_limits<float>::infinity(), {civilianTeam}, team, f2(t
- am, unitID));
- ^
- rts/general/Units.cpp:2398:53: error: expected primary-expression before 'float'
- f2 civ = closestUnit(position, std::numeric_limits<float>::infinity(), {civilianTeam}, team, f2(t
- am, unitID));
- ^
- rts/general/Units.cpp:2398:73: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- f2 civ = closestUnit(position, std::numeric_limits<float>::infinity(), {civilianTeam}, team, f2(t
- am, unitID));
- ^
- rts/general/Units.cpp:2405:10: error: 'kill' was not declared in this scope
- kill(civ);
- ^
- rts/general/Units.cpp: In member function 'void Units::processOrders(int, int)':
- rts/general/Units.cpp:2420:38: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (unit->abilityCooldowns_.size() > abilityNumber && unit->abilityCooldowns_[abilityNumber] <=
- )
- ^
- rts/general/Units.cpp:2480:22: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < usableAbilities_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'void Units::displayAbilityCursor()':
- rts/general/Units.cpp:2542:30: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (unit->abilities_.size() <= abilityCursorNumber_)
- ^
- rts/general/Units.cpp:2551:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < ability->unit_->walls_.size(); ++i)
- ^
- rts/general/Units.cpp:2556:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:2556:31: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:2556:31: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:2558:27: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Wall* wall2 = element.second;
- ^
- rts/general/Units.cpp:2566:30: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:2572:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
- ompat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:2572:32: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:2574:27: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp: In member function 'void Units::processPathfinding(int, int)':
- rts/general/Units.cpp:2608:23: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- Unit* unit = getUnit({float(teamNumber), float(i)});
- ^
- rts/general/Units.cpp:2659:26: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (unit->path_.size() > step)
- ^
- rts/general/Units.cpp:2669:26: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (unit->path_.size() > step && unit->path_[step] == unit->offCenter())
- ^
- rts/general/Units.cpp:2671:24: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- unit->speed_ = {0, 0};
- ^
- rts/general/Units.cpp:2671:17: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- unit->speed_ = {0, 0};
- ^
- rts/general/Units.cpp: At global scope:
- rts/general/Units.cpp:2680:44: warning: unused parameter 'unitIndex' [-Wunused-parameter]
- void Units::returnResourcesOrder(const f2& unitIndex)
- ^
- rts/general/Units.cpp:2719:45: warning: unused parameter 'unitIndex' [-Wunused-parameter]
- void Units::gatherNearestResource(const f2& unitIndex)
- ^
- rts/general/Units.cpp:2748:35: warning: unused parameter 'unitIndex' [-Wunused-parameter]
- void Units::gatherOrder(const f2& unitIndex)
- ^
- rts/general/Units.cpp: In member function 'void Units::moveOrder(const f2&)':
- rts/general/Units.cpp:2871:15: error: 'units_' was not declared in this scope
- Unit* unit = units_[unitIndex.x][unitIndex.y];
- ^
- rts/general/Units.cpp: In member function 'f2 Units::fastestReachableUnit(Unit*, relation, float, i
- t, f2)':
- rts/general/Units.cpp:2945:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < units.size(); ++i)
- ^
- rts/general/Units.cpp:2963:10: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- return {- 1.f, - 1.f};
- ^
- rts/general/Units.cpp: At global scope:
- rts/general/Units.cpp:2939:84: warning: unused parameter 'nodeOffset' [-Wunused-parameter]
- f2 Units::fastestReachableUnit(Unit* unit, relation rel, float range, int team, f2 nodeOffset)
- ^
- rts/general/Units.cpp: In member function 'void Units::makeUnit(Unit*, Ability*)':
- rts/general/Units.cpp:3053:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < ability->unit_->resourceCosts_.size(); ++i)
- ^
- rts/general/Units.cpp:3066:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < ability->unit_->walls_.size(); ++i)
- ^
- rts/general/Units.cpp:3070:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:3070:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:3070:30: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:3072:26: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Wall* wall2 = element.second;
- ^
- rts/general/Units.cpp:3079:29: error: 'units_' was not declared in this scope
- for (int team = 0; team < units_.size(); ++team)
- ^
- rts/general/Units.cpp:3081:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3081:31: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3083:36: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (wall1->intersects(*element.second))
- ^
- rts/general/Units.cpp:3092:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < ability->unit_->resourceCosts_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'void Units::processCollission(int, int, std::vector<Rect
- )':
- rts/general/Units.cpp:3130:16: error: 'units_' was not declared in this scope
- Unit* unit1 = units_[team1][i];
- ^
- rts/general/Units.cpp:3140:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int k = 0; k < obstacles.size(); ++k)
- ^
- rts/general/Units.cpp:3159:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[team2])
- ^
- rts/general/Units.cpp:3159:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team2])
- ^
- rts/general/Units.cpp:3161:26: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit2 = element.second;
- ^
- rts/general/Units.cpp: In member function 'void Units::processProjectiles()':
- rts/general/Units.cpp:3176:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < projectiles_.size(); ++i)
- ^
- rts/general/Units.cpp:3197:28: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int team = 0; team < relationTable_[currentTeam_].size(); ++team)
- ^
- rts/general/Units.cpp:3201:11: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
- ompat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3201:33: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3201:33: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:3203:28: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:3215:11: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
- ompat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3215:33: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3215:33: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:3217:28: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp: In member function 'int Units::abilityHits(Ability*, int)':
- rts/general/Units.cpp:3254:27: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int team = 0; team < relationTable_[currentTeam_].size(); ++team)
- ^
- rts/general/Units.cpp:3258:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
- ompat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3258:32: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3258:32: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:3260:27: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:3269:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
- ompat]
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3269:32: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[team])
- ^
- rts/general/Units.cpp:3269:32: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:3271:27: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp: In member function 'void Units::createUI()':
- rts/general/Units.cpp:3360:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:3360:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:3360:29: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:3362:15: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (element.second->selected_)
- ^
- rts/general/Units.cpp:3365:36: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- selectedUnits.push_back(element.second);
- ^
- rts/general/Units.cpp:3379:29: error: 'to_string' is not a member of 'std'
- health.setString("hp: " + std::to_string(int(unit->currentHealth_)) + "/" + std::to_string(int(u
- it->health_)));
- ^
- rts/general/Units.cpp:3379:79: error: 'to_string' is not a member of 'std'
- health.setString("hp: " + std::to_string(int(unit->currentHealth_)) + "/" + std::to_string(int(u
- it->health_)));
- ^
- rts/general/Units.cpp:3380:33: error: 'to_string' is not a member of 'std'
- shield.setString("shield: " + std::to_string(int(unit->currentShield_)) + "/" + std::to_string(i
- t(unit->maxShield_)));
- ^
- rts/general/Units.cpp:3380:83: error: 'to_string' is not a member of 'std'
- shield.setString("shield: " + std::to_string(int(unit->currentShield_)) + "/" + std::to_string(i
- t(unit->maxShield_)));
- ^
- rts/general/Units.cpp:3381:31: error: 'to_string' is not a member of 'std'
- armor.setString("armor: " + std::to_string(int(unit->armor_)));
- ^
- rts/general/Units.cpp:3382:31: error: 'to_string' is not a member of 'std'
- speed.setString("speed: " + std::to_string(int(unit->movementSpeed_)));
- ^
- rts/general/Units.cpp:3384:33: error: 'to_string' is not a member of 'std'
- energy.setString("energy: " + std::to_string(int(unit->currentEnergy_)) + "/" + std::to_string(i
- t(unit->maxEnergy_)));
- ^
- rts/general/Units.cpp:3384:83: error: 'to_string' is not a member of 'std'
- energy.setString("energy: " + std::to_string(int(unit->currentEnergy_)) + "/" + std::to_string(i
- t(unit->maxEnergy_)));
- ^
- rts/general/Units.cpp:3398:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < stats->size(); ++i)
- ^
- rts/general/Units.cpp:3415:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 1; i < selectedUnits.size(); ++i)
- ^
- rts/general/Units.cpp:3433:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < selectedUnitsSubGroup_.size(); ++i)
- ^
- rts/general/Units.cpp:3468:22: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 1; i < unit->abilities_.size(); ++i)
- ^
- rts/general/Units.cpp: In member function 'void Units::setLifeBars(sf::VertexArray*)':
- rts/general/Units.cpp:3624:28: error: 'visibleUnits_' was not declared in this scope
- for (int team = 0; team < visibleUnits_[currentTeam_].size(); ++team)
- ^
- rts/general/Units.cpp:3626:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : visibleUnits_[currentTeam_][team])
- ^
- rts/general/Units.cpp:3626:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : visibleUnits_[currentTeam_][team])
- ^
- rts/general/Units.cpp:3628:25: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp: In member function 'void Units::drawUIText()':
- rts/general/Units.cpp:3650:20: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp: In member function 'std::vector<Wall*> Units::wallsInRange(const f2&, float)
- :
- rts/general/Units.cpp:3660:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:3660:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:3660:29: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:3662:15: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (element.second->intersectsCircle(position, range))
- ^
- rts/general/Units.cpp:3664:29: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- result.push_back(element.second);
- ^
- rts/general/Units.cpp: At global scope:
- rts/general/Units.cpp:3670:48: error: '>>' should be '> >' within a nested template argument list
- void splitIntersectingLines(vector<vector<float>>* anglesSet, f2 center)
- ^
- rts/general/Units.cpp: In function 'void splitIntersectingLines(std::vector<std::vector<float> >*,
- 2)':
- rts/general/Units.cpp:3672:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < (*anglesSet).size(); ++i)
- ^
- rts/general/Units.cpp:3674:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int j = 0; j < (*anglesSet).size(); ++j)
- ^
- rts/general/Units.cpp:3698:107: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- (*anglesSet)[i] = {startAngle1, intersectionAngle, start1.x, start1.y, intersection.x, inters
- ction.y};
- ^
- rts/general/Units.cpp:3698:22: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- (*anglesSet)[i] = {startAngle1, intersectionAngle, start1.x, start1.y, intersection.x, inters
- ction.y};
- ^
- rts/general/Units.cpp:3698:22: error: no match for 'operator=' (operand types are 'std::vector<floa
- >' and '<brace-enclosed initializer list>')
- rts/general/Units.cpp:3698:22: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:69:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
- lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
- vector<_Tp, _Alloc>::
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
- std::vector<float>&'
- rts/general/Units.cpp:3699:29: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- (*anglesSet).push_back({intersectionAngle, endAngle1, intersection.x, intersection.y, end1.x,
- end1.y});
- ^
- rts/general/Units.cpp:3699:107: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- (*anglesSet).push_back({intersectionAngle, endAngle1, intersection.x, intersection.y, end1.x,
- end1.y});
- ^
- rts/general/Units.cpp:3699:107: error: no matching function for call to 'std::vector<std::vector<fl
- at> >::push_back(<brace-enclosed initializer list>)'
- rts/general/Units.cpp:3699:107: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:64:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
- loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
- tor<float>]
- push_back(const value_type& __x)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
- st value_type& {aka const std::vector<float>&}'
- rts/general/Units.cpp:3700:107: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- (*anglesSet)[j] = {startAngle2, intersectionAngle, start2.x, start2.y, intersection.x, inters
- ction.y};
- ^
- rts/general/Units.cpp:3700:22: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- (*anglesSet)[j] = {startAngle2, intersectionAngle, start2.x, start2.y, intersection.x, inters
- ction.y};
- ^
- rts/general/Units.cpp:3700:22: error: no match for 'operator=' (operand types are 'std::vector<floa
- >' and '<brace-enclosed initializer list>')
- rts/general/Units.cpp:3700:22: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:69:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
- lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
- vector<_Tp, _Alloc>::
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
- std::vector<float>&'
- rts/general/Units.cpp:3701:29: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- (*anglesSet).push_back({intersectionAngle, endAngle2, intersection.x, intersection.y, end2.x,
- end2.y});
- ^
- rts/general/Units.cpp:3701:107: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- (*anglesSet).push_back({intersectionAngle, endAngle2, intersection.x, intersection.y, end2.x,
- end2.y});
- ^
- rts/general/Units.cpp:3701:107: error: no matching function for call to 'std::vector<std::vector<fl
- at> >::push_back(<brace-enclosed initializer list>)'
- rts/general/Units.cpp:3701:107: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:64:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
- loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
- tor<float>]
- push_back(const value_type& __x)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
- st value_type& {aka const std::vector<float>&}'
- rts/general/Units.cpp: In member function 'void Units::generateLOSLineSegments(Unit*, sf::VertexArr
- y*)':
- rts/general/Units.cpp:3715:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:3715:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : walls_)
- ^
- rts/general/Units.cpp:3715:29: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:3717:24: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Wall* wall = element.second;
- ^
- rts/general/Units.cpp:3736:23: error: '>>' should be '> >' within a nested template argument list
- vector<vector<float>> lines = {{wall->topLeft().x, wall->topLeft().y, wall->topRight().x, wall-
- topRight().y},
- ^
- rts/general/Units.cpp:3739:106: error: in C++98 'lines' must be initialized by constructor, not by
- {...}'
- {wall->bottomRight().x, wall->bottomRight().y, wall->topRight().x, wall->topRig
- t().y}};
- ^
- rts/general/Units.cpp: In substitution of 'template<class _InputIterator> std::vector<_Tp, _Alloc>:
- vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = <missing>]':
- rts/general/Units.cpp:3739:106: required from here
- rts/general/Units.cpp:3739:106: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- rts/general/Units.cpp:3739:106: error: could not convert '{{wall->Wall::<anonymous>.Rectangle::topL
- ft().f2::x, wall->Wall::<anonymous>.Rectangle::topLeft().f2::y, wall->Wall::<anonymous>.Rectangle::
- opRight().f2::x, wall->Wall::<anonymous>.Rectangle::topRight().f2::y}, {wall->Wall::<anonymous>.Rec
- angle::topLeft().f2::x, wall->Wall::<anonymous>.Rectangle::topLeft().f2::y, wall->Wall::<anonymous>
- Rectangle::bottomLeft().f2::x, wall->Wall::<anonymous>.Rectangle::bottomLeft().f2::y}, {wall->Wall:
- <anonymous>.Rectangle::bottomRight().f2::x, wall->Wall::<anonymous>.Rectangle::bottomRight().f2::y,
- wall->Wall::<anonymous>.Rectangle::bottomLeft().f2::x, wall->Wall::<anonymous>.Rectangle::bottomLef
- ().f2::y}, {wall->Wall::<anonymous>.Rectangle::bottomRight().f2::x, wall->Wall::<anonymous>.Rectang
- e::bottomRight().f2::y, wall->Wall::<anonymous>.Rectangle::topRight().f2::x, wall->Wall::<anonymous
- .Rectangle::topRight().f2::y}}' from '<brace-enclosed initializer list>' to 'std::vector<std::vecto
- <float> >'
- rts/general/Units.cpp:3741:23: error: '>>' should be '> >' within a nested template argument list
- vector<vector<float>> linesWithDistance;
- ^
- rts/general/Units.cpp:3744:22: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < lines.size(); ++i)
- ^
- rts/general/Units.cpp:3746:46: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- float distance = position.distanceToLine({lines[i][0], lines[i][1]}, {lines[i][2], lines[i][3]
- );
- ^
- rts/general/Units.cpp:3746:74: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- float distance = position.distanceToLine({lines[i][0], lines[i][1]}, {lines[i][2], lines[i][3]
- );
- ^
- rts/general/Units.cpp:3746:100: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- float distance = position.distanceToLine({lines[i][0], lines[i][1]}, {lines[i][2], lines[i][3]
- );
- ^
- rts/general/Units.cpp:3746:100: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- rts/general/Units.cpp:3749:34: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesWithDistance.push_back({distance, lines[i][0], lines[i][1], lines[i][2], lines[i][3]});
- ^
- rts/general/Units.cpp:3749:96: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesWithDistance.push_back({distance, lines[i][0], lines[i][1], lines[i][2], lines[i][3]});
- ^
- rts/general/Units.cpp:3749:96: error: no matching function for call to 'std::vector<std::vector<flo
- t> >::push_back(<brace-enclosed initializer list>)'
- rts/general/Units.cpp:3749:96: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:64:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
- loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
- tor<float>]
- push_back(const value_type& __x)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
- st value_type& {aka const std::vector<float>&}'
- rts/general/Units.cpp:3752:69: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
- ompat]
- std::sort(linesWithDistance.begin(), linesWithDistance.end(), [](auto a, auto b) {return a.at(0
- < b.at(0);});
- ^
- rts/general/Units.cpp:3752:74: error: 'a' does not name a type
- std::sort(linesWithDistance.begin(), linesWithDistance.end(), [](auto a, auto b) {return a.at(0
- < b.at(0);});
- ^
- rts/general/Units.cpp: In lambda function:
- rts/general/Units.cpp:3752:113: error: expected '{' before ';' token
- std::sort(linesWithDistance.begin(), linesWithDistance.end(), [](auto a, auto b) {return a.at(0
- < b.at(0);});
- ^
- rts/general/Units.cpp: In member function 'void Units::generateLOSLineSegments(Unit*, sf::VertexArr
- y*)':
- rts/general/Units.cpp:3752:113: warning: lambda expressions only available with -std=c++11 or -std=
- nu++11
- rts/general/Units.cpp:3752:113: error: expected ')' before ';' token
- rts/general/Units.cpp:3774:6: warning: extended initializer lists only available with -std=c++11 or
- -std=gnu++11
- {linesWithDistance[i][1], linesWithDistance[i][2]}, {linesWithDistance[i][3], linesWithDistan
- e[i][4]});
- ^
- rts/general/Units.cpp:3774:58: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- {linesWithDistance[i][1], linesWithDistance[i][2]}, {linesWithDistance[i][3], linesWithDistan
- e[i][4]});
- ^
- rts/general/Units.cpp:3774:108: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- {linesWithDistance[i][1], linesWithDistance[i][2]}, {linesWithDistance[i][3], linesWithDistan
- e[i][4]});
- ^
- rts/general/Units.cpp:3774:108: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- rts/general/Units.cpp:3785:28: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesFinal.push_back({linesWithDistance[i][1], linesWithDistance[i][2]});
- ^
- rts/general/Units.cpp:3785:78: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesFinal.push_back({linesWithDistance[i][1], linesWithDistance[i][2]});
- ^
- rts/general/Units.cpp:3790:28: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesFinal.push_back({linesWithDistance[i][3], linesWithDistance[i][4]});
- ^
- rts/general/Units.cpp:3790:78: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesFinal.push_back({linesWithDistance[i][3], linesWithDistance[i][4]});
- ^
- rts/general/Units.cpp:3795:27: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesFinal.push_back({linesWithDistance[i][1], linesWithDistance[i][2]});
- ^
- rts/general/Units.cpp:3795:77: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesFinal.push_back({linesWithDistance[i][1], linesWithDistance[i][2]});
- ^
- rts/general/Units.cpp:3796:27: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesFinal.push_back({linesWithDistance[i][3], linesWithDistance[i][4]});
- ^
- rts/general/Units.cpp:3796:77: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- linesFinal.push_back({linesWithDistance[i][3], linesWithDistance[i][4]});
- ^
- rts/general/Units.cpp:3803:21: error: '>>' should be '> >' within a nested template argument list
- vector<vector<float>> anglesSet;
- ^
- rts/general/Units.cpp:3804:24: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i + 1 < linesFinal.size(); i += 2)
- ^
- rts/general/Units.cpp:3813:24: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet.push_back({angle1, float(PI), linesFinal[i].x, linesFinal[i].y, intersection.x, inter
- ection.y});
- ^
- rts/general/Units.cpp:3813:109: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- anglesSet.push_back({angle1, float(PI), linesFinal[i].x, linesFinal[i].y, intersection.x, inter
- ection.y});
- ^
- rts/general/Units.cpp:3813:109: error: no matching function for call to 'std::vector<std::vector<fl
- at> >::push_back(<brace-enclosed initializer list>)'
- rts/general/Units.cpp:3813:109: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:64:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
- loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
- tor<float>]
- push_back(const value_type& __x)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
- st value_type& {aka const std::vector<float>&}'
- rts/general/Units.cpp:3814:24: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet.push_back({ float(- PI), angle2, intersection.x, intersection.y, linesFinal[i + 1].x,
- linesFinal[i + 1].y});
- ^
- rts/general/Units.cpp:3814:120: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- anglesSet.push_back({ float(- PI), angle2, intersection.x, intersection.y, linesFinal[i + 1].x,
- linesFinal[i + 1].y});
- ^
- rts/general/Units.cpp:3814:120: error: no matching function for call to 'std::vector<std::vector<fl
- at> >::push_back(<brace-enclosed initializer list>)'
- rts/general/Units.cpp:3814:120: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:64:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
- loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
- tor<float>]
- push_back(const value_type& __x)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
- st value_type& {aka const std::vector<float>&}'
- rts/general/Units.cpp:3819:24: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet.push_back({angle2, float(PI), linesFinal[i + 1].x, linesFinal[i + 1].y, intersection.
- , intersection.y});
- ^
- rts/general/Units.cpp:3819:117: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- anglesSet.push_back({angle2, float(PI), linesFinal[i + 1].x, linesFinal[i + 1].y, intersection.
- , intersection.y});
- ^
- rts/general/Units.cpp:3819:117: error: no matching function for call to 'std::vector<std::vector<fl
- at> >::push_back(<brace-enclosed initializer list>)'
- rts/general/Units.cpp:3819:117: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:64:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
- loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
- tor<float>]
- push_back(const value_type& __x)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
- st value_type& {aka const std::vector<float>&}'
- rts/general/Units.cpp:3820:24: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet.push_back({ float(- PI), angle1, intersection.x, intersection.y, linesFinal[i].x, lin
- sFinal[i].y});
- ^
- rts/general/Units.cpp:3820:112: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- anglesSet.push_back({ float(- PI), angle1, intersection.x, intersection.y, linesFinal[i].x, lin
- sFinal[i].y});
- ^
- rts/general/Units.cpp:3820:112: error: no matching function for call to 'std::vector<std::vector<fl
- at> >::push_back(<brace-enclosed initializer list>)'
- rts/general/Units.cpp:3820:112: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:64:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
- loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
- tor<float>]
- push_back(const value_type& __x)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
- st value_type& {aka const std::vector<float>&}'
- rts/general/Units.cpp:3824:24: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet.push_back({angle2, angle1, linesFinal[i + 1].x, linesFinal[i + 1].y, linesFinal[i].x,
- linesFinal[i].y});
- ^
- rts/general/Units.cpp:3824:116: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- anglesSet.push_back({angle2, angle1, linesFinal[i + 1].x, linesFinal[i + 1].y, linesFinal[i].x,
- linesFinal[i].y});
- ^
- rts/general/Units.cpp:3824:116: error: no matching function for call to 'std::vector<std::vector<fl
- at> >::push_back(<brace-enclosed initializer list>)'
- rts/general/Units.cpp:3824:116: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:64:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
- loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
- tor<float>]
- push_back(const value_type& __x)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
- st value_type& {aka const std::vector<float>&}'
- rts/general/Units.cpp:3828:24: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet.push_back({angle1, angle2, linesFinal[i].x, linesFinal[i].y, linesFinal[i + 1].x, lin
- sFinal[i + 1].y});
- ^
- rts/general/Units.cpp:3828:116: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- anglesSet.push_back({angle1, angle2, linesFinal[i].x, linesFinal[i].y, linesFinal[i + 1].x, lin
- sFinal[i + 1].y});
- ^
- rts/general/Units.cpp:3828:116: error: no matching function for call to 'std::vector<std::vector<fl
- at> >::push_back(<brace-enclosed initializer list>)'
- rts/general/Units.cpp:3828:116: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:64:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
- loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
- tor<float>]
- push_back(const value_type& __x)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
- st value_type& {aka const std::vector<float>&}'
- rts/general/Units.cpp:3836:51: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
- ompat]
- std::sort(anglesSet.begin(), anglesSet.end(), [](auto a, auto b)
- ^
- rts/general/Units.cpp:3836:56: error: 'a' does not name a type
- std::sort(anglesSet.begin(), anglesSet.end(), [](auto a, auto b)
- ^
- rts/general/Units.cpp: In lambda function:
- rts/general/Units.cpp:3843:5: error: expected '{' before ';' token
- });
- ^
- rts/general/Units.cpp: In member function 'void Units::generateLOSLineSegments(Unit*, sf::VertexArr
- y*)':
- rts/general/Units.cpp:3843:5: warning: lambda expressions only available with -std=c++11 or -std=gn
- ++11
- rts/general/Units.cpp:3843:5: error: expected ')' before ';' token
- rts/general/Units.cpp: In member function 'void Units::displayOrders(sf::VertexArray*)':
- rts/general/Units.cpp:3850:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : selectedUnits_)
- ^
- rts/general/Units.cpp:3850:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : selectedUnits_)
- ^
- rts/general/Units.cpp:3852:16: error: invalid conversion from 'int' to 'Unit*' [-fpermissive]
- Unit* unit = element;
- ^
- rts/general/Units.cpp:3855:22: error: range-based 'for' loops are not allowed in C++98 mode
- for (Order order : orders)
- ^
- rts/general/Units.cpp: At global scope:
- rts/general/Units.cpp:3868:38: error: '>>' should be '> >' within a nested template argument list
- void sortedInsert(vector<vector<float>>* vec, vector<float> item)
- ^
- rts/general/Units.cpp: In function 'void sortedInsert(std::vector<std::vector<float> >*, std::vecto
- <float>)':
- rts/general/Units.cpp:3891:14: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- else if (i >= vec->size())
- ^
- rts/general/Units.cpp: At global scope:
- rts/general/Units.cpp:3930:39: error: '>>' should be '> >' within a nested template argument list
- void sortedReplace(vector<vector<float>>* vec, int index)
- ^
- rts/general/Units.cpp: In function 'void sortedReplace(std::vector<std::vector<float> >*, int)':
- rts/general/Units.cpp:3932:32: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (vec->size() == 0 || index >= vec->size())
- ^
- rts/general/Units.cpp: At global scope:
- rts/general/Units.cpp:3941:76: error: '>>' should be '> >' within a nested template argument list
- void Units::setFogTries(const f2& center, float radius, vector<vector<float>> anglesSet, sf::Verte
- Array* vertices)
- ^
- rts/general/Units.cpp: In member function 'void Units::setFogTries(const f2&, float, std::vector<st
- ::vector<float> >, sf::VertexArray*)':
- rts/general/Units.cpp:3954:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < anglesSet.size() - 1; i++)
- ^
- rts/general/Units.cpp:4062:101: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- anglesSet[i] = {startAngle1, startAngle2, start1.x, start1.y, intersection1.x, intersection1
- y};
- ^
- rts/general/Units.cpp:4062:20: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet[i] = {startAngle1, startAngle2, start1.x, start1.y, intersection1.x, intersection1
- y};
- ^
- rts/general/Units.cpp:4062:20: error: no match for 'operator=' (operand types are 'std::vector<floa
- >' and '<brace-enclosed initializer list>')
- rts/general/Units.cpp:4062:20: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:69:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
- lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
- vector<_Tp, _Alloc>::
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
- std::vector<float>&'
- rts/general/Units.cpp:4066:33: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- sortedInsert(&anglesSet, {endAngle2, endAngle1, intersection2.x, intersection2.y, end1.x, e
- d1.y});
- ^
- rts/general/Units.cpp:4066:105: error: could not convert '{endAngle2, endAngle1, intersection2.f2::
- , intersection2.f2::y, end1.f2::x, end1.f2::y}' from '<brace-enclosed initializer list>' to 'std::v
- ctor<float>'
- sortedInsert(&anglesSet, {endAngle2, endAngle1, intersection2.x, intersection2.y, end1.x, e
- d1.y});
- ^
- rts/general/Units.cpp:4079:94: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet[j] = {endAngle2, endAngle1, intersection2.x, intersection2.y, end1.x, end1.y};
- ^
- rts/general/Units.cpp:4079:21: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet[j] = {endAngle2, endAngle1, intersection2.x, intersection2.y, end1.x, end1.y};
- ^
- rts/general/Units.cpp:4079:21: error: no match for 'operator=' (operand types are 'std::vector<floa
- >' and '<brace-enclosed initializer list>')
- rts/general/Units.cpp:4079:21: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:69:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
- lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
- vector<_Tp, _Alloc>::
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
- std::vector<float>&'
- rts/general/Units.cpp:4102:115: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- anglesSet[i] = {startAngle1, startAngle2, anglesSet[i][2], anglesSet[i][3], intersection1.x,
- intersection1.y};
- ^
- rts/general/Units.cpp:4102:20: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet[i] = {startAngle1, startAngle2, anglesSet[i][2], anglesSet[i][3], intersection1.x,
- intersection1.y};
- ^
- rts/general/Units.cpp:4102:20: error: no match for 'operator=' (operand types are 'std::vector<floa
- >' and '<brace-enclosed initializer list>')
- rts/general/Units.cpp:4102:20: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:69:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
- lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
- vector<_Tp, _Alloc>::
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
- std::vector<float>&'
- rts/general/Units.cpp:4118:111: warning: extended initializer lists only available with -std=c++11
- r -std=gnu++11
- anglesSet[j] = {endAngle1, endAngle2, intersection1.x, intersection1.y, anglesSet[j][4], ang
- esSet[j][5]};
- ^
- rts/general/Units.cpp:4118:20: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- anglesSet[j] = {endAngle1, endAngle2, intersection1.x, intersection1.y, anglesSet[j][4], ang
- esSet[j][5]};
- ^
- rts/general/Units.cpp:4118:20: error: no match for 'operator=' (operand types are 'std::vector<floa
- >' and '<brace-enclosed initializer list>')
- rts/general/Units.cpp:4118:20: note: candidate is:
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:69:0,
- from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
- from D:/sfml-source/include/SFML/Window.hpp:41,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
- lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
- vector<_Tp, _Alloc>::
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
- 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
- std::vector<float>&'
- rts/general/Units.cpp:4133:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < anglesSet.size(); i++)
- ^
- rts/general/Units.cpp:4148:14: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- if (i + 1 == anglesSet.size())
- ^
- rts/general/Units.cpp:4135:10: warning: unused variable 'startAngle1' [-Wunused-variable]
- float startAngle1 = anglesSet[i][0];
- ^
- rts/general/Units.cpp:4136:10: warning: unused variable 'endAngle1' [-Wunused-variable]
- float endAngle1 = anglesSet[i][1];
- ^
- rts/general/Units.cpp:3949:8: warning: unused variable 'angleInacurracy' [-Wunused-variable]
- float angleInacurracy = 0.001;
- ^
- rts/general/Units.cpp: In member function 'void Units::setQuad(sf::VertexArray*)':
- rts/general/Units.cpp:4206:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:4206:29: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[currentTeam_])
- ^
- rts/general/Units.cpp:4206:29: error: 'units_' was not declared in this scope
- rts/general/Units.cpp:4208:24: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:4209:21: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::DEFAULT)
- ^
- rts/general/Units.cpp:4222:40: error: 'visibleUnits_' was not declared in this scope
- for (int teamNumber = 0; teamNumber < visibleUnits_[currentTeam_].size(); ++teamNumber)
- ^
- rts/general/Units.cpp:4224:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : visibleUnits_[currentTeam_][teamNumber])
- ^
- rts/general/Units.cpp:4224:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : visibleUnits_[currentTeam_][teamNumber])
- ^
- rts/general/Units.cpp:4226:25: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:4269:20: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::DEFAULT)
- ^
- rts/general/Units.cpp:4271:41: error: 'visibleUnits_' was not declared in this scope
- for (int teamNumber = 0; teamNumber < visibleUnits_[currentTeam_].size(); ++teamNumber)
- ^
- rts/general/Units.cpp:4273:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : visibleUnits_[currentTeam_][teamNumber])
- ^
- rts/general/Units.cpp:4273:31: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : visibleUnits_[currentTeam_][teamNumber])
- ^
- rts/general/Units.cpp:4275:26: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- Unit* unit = element.second;
- ^
- rts/general/Units.cpp:4289:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < projectiles_.size(); ++i)
- ^
- rts/general/Units.cpp:4299:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < animations_.size(); ++i)
- ^
- rts/general/Units.cpp:4314:20: error: 'GameState' is not a class or namespace
- if (gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/general/Units.cpp:4317:41: error: 'visibleUnits_' was not declared in this scope
- for (int teamNumber = 0; teamNumber < visibleUnits_[currentTeam_].size(); ++teamNumber)
- ^
- rts/general/Units.cpp:4319:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& element : units_[teamNumber])
- ^
- rts/general/Units.cpp:4319:31: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : units_[teamNumber])
- ^
- rts/general/Units.cpp:4321:17: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- if (element.second->enabled_)
- ^
- rts/general/Units.cpp:4323:14: error: request for member 'second' in 'element', which is of non-cla
- s type 'const int'
- element.second->setQuad(vertices);
- ^
- rts/general/Units.cpp:4327:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
- mpat]
- for (auto const& wall : walls_)
- ^
- rts/general/Units.cpp:4327:27: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& wall : walls_)
- ^
- rts/general/Units.cpp:4327:27: error: 'walls_' was not declared in this scope
- rts/general/Units.cpp:4329:13: error: request for member 'second' in 'wall', which is of non-class
- ype 'const int'
- if (wall.second->enabled_)
- ^
- rts/general/Units.cpp:4331:10: error: request for member 'second' in 'wall', which is of non-class
- ype 'const int'
- wall.second->setQuad(vertices);
- ^
- rts/general/Units.cpp: In member function 'void Units::drawDebugInformation(Unit*, sf::VertexArray*
- ':
- rts/general/Units.cpp:4346:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int k = 0; k < smallPathfinding_.nodesV_.size(); ++k)
- ^
- rts/general/Units.cpp:4350:21: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int j = 0; j < smallPathfinding_.nodesV_[k]->links_.size(); ++j)
- ^
- rts/general/Units.cpp:4370:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int j = 1; j < unit->path_.size(); ++j)
- ^
- rts/general/Units.cpp: In member function 'void Units::drawLosDebug()':
- rts/general/Units.cpp:4423:21: error: '>>' should be '> >' within a nested template argument list
- vector<vector<float>> anglesSet = anglesSetOriginal_;
- ^
- rts/general/Units.cpp:4424:51: error: expected unqualified-id before ')' token
- sf::VertexArray vertices(sf::PrimitiveType::Lines);
- ^
- rts/general/Units.cpp:4425:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < anglesSet.size(); ++i)
- ^
- rts/general/Units.cpp:4427:12: error: request for member 'append' in 'vertices', which is of non-cl
- ss type 'sf::VertexArray(...)'
- vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Yellow));
- ^
- rts/general/Units.cpp:4427:30: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Yellow));
- ^
- rts/general/Units.cpp:4427:83: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Yellow));
- ^
- rts/general/Units.cpp:4427:83: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- rts/general/Units.cpp:4428:12: error: request for member 'append' in 'vertices', which is of non-cl
- ss type 'sf::VertexArray(...)'
- vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Yellow));
- ^
- rts/general/Units.cpp:4428:30: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Yellow));
- ^
- rts/general/Units.cpp:4428:83: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Yellow));
- ^
- rts/general/Units.cpp:4428:83: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- rts/general/Units.cpp:4431:20: warning: comparison between signed and unsigned integer expressions
- -Wsign-compare]
- for (int i = 0; i < anglesSet.size(); ++i)
- ^
- rts/general/Units.cpp:4433:12: error: request for member 'append' in 'vertices', which is of non-cl
- ss type 'sf::VertexArray(...)'
- vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Green));
- ^
- rts/general/Units.cpp:4433:30: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Green));
- ^
- rts/general/Units.cpp:4433:82: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Green));
- ^
- rts/general/Units.cpp:4433:82: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- rts/general/Units.cpp:4434:12: error: request for member 'append' in 'vertices', which is of non-cl
- ss type 'sf::VertexArray(...)'
- vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Green));
- ^
- rts/general/Units.cpp:4434:30: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Green));
- ^
- rts/general/Units.cpp:4434:82: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Green));
- ^
- rts/general/Units.cpp:4434:82: warning: extended initializer lists only available with -std=c++11 o
- -std=gnu++11
- rts/general/Units.cpp:4436:24: error: no matching function for call to 'sf::RenderWindow::draw(sf::
- ertexArray (&)(...))'
- window_->draw(vertices);
- ^
- rts/general/Units.cpp:4436:24: note: candidates are:
- In file included from D:/sfml-source/include/SFML/Graphics.hpp:45:0,
- from supportClasses/f2.h:4,
- from rts/Hotkey.h:3,
- from rts/Init.h:36,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- D:/sfml-source/include/SFML/Graphics/RenderTarget.hpp:236:10: note: void sf::RenderTarget::draw(con
- t sf::Drawable&, const sf::RenderStates&)
- void draw(const Drawable& drawable, const RenderStates& states = RenderStates::Default);
- ^
- D:/sfml-source/include/SFML/Graphics/RenderTarget.hpp:236:10: note: no known conversion for argum
- nt 1 from 'sf::VertexArray(...)' to 'const sf::Drawable&'
- D:/sfml-source/include/SFML/Graphics/RenderTarget.hpp:247:10: note: void sf::RenderTarget::draw(con
- t sf::Vertex*, std::size_t, sf::PrimitiveType, const sf::RenderStates&)
- void draw(const Vertex* vertices, std::size_t vertexCount,
- ^
- D:/sfml-source/include/SFML/Graphics/RenderTarget.hpp:247:10: note: candidate expects 4 arguments
- 1 provided
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/Pathfinding.h: In instantiation of 'void PriorityQueue<T, Number>::put(T, Number) [w
- th T = f2; Number = float]':
- supportClasses/Pathfinding.h:419:24: required from here
- supportClasses/Pathfinding.h:36:5: error: 'class std::priority_queue<std::pair<float, f2>, std::vec
- or<std::pair<float, f2>, std::allocator<std::pair<float, f2> > >, std::greater<std::pair<float, f2>
- > >' has no member named 'emplace'
- elements.emplace(priority, item);
- ^
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/bits/stl_algobase.h:65:0,
- from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/bits/char_traits.h:39,
- from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/ios:40,
- from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/ostream:38,
- from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/iostream:39,
- from rts/Init.h:28,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h: In instantiation of 'struct std::iterator_traits<f2>':
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:1262:24: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _
- nputIterator, std::__false_type) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>]'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:413:55: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const a
- locator_type&) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>; std::vector<_Tp, _
- lloc>::allocator_type = std::allocator<f2>]'
- supportClasses/Pathfinding.h:394:23: required from here
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:165:53: error: no type named 'iterator_category' in 'class f2'
- typedef typename _Iterator::iterator_category iterator_category;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:166:53: error: no type named 'value_type' in 'class f2'
- typedef typename _Iterator::value_type value_type;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:167:53: error: no type named 'difference_type' in 'class f2'
- typedef typename _Iterator::difference_type difference_type;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:168:53: error: no type named 'pointer' in 'class f2'
- typedef typename _Iterator::pointer pointer;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:169:53: error: no type named 'reference' in 'class f2'
- typedef typename _Iterator::reference reference;
- ^
- In file included from rts/general/Units.h:27:0,
- from rts/general/Units.cpp:26:
- rts/Init.h: In member function 'float Init::getfloat(const string&) const':
- rts/Init.h:604:2: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- rts/general/Units.cpp: In member function 'bool Units::selectUnitsInBox(const f2&, const f2&, const
- int&)':
- rts/general/Units.cpp:384:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- In file included from rts/general/Units.cpp:26:0:
- rts/general/Units.h: In member function 'Unit* Units::getUnit(f2)':
- rts/general/Units.h:91:74: warning: control reaches end of non-void function [-Wreturn-type]
- Unit* getUnit(f2 unitIndex) {return units_[unitIndex.x].at(unitIndex.y);}
- ^
- rts/general/Units.cpp: In member function 'Wall* Units::getNearestWall(const f2&)':
- rts/general/Units.cpp:650:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- rts/general/Units.cpp: In member function 'int Units::addWall(Wall)':
- rts/general/Units.cpp:1090:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/general/Units.cpp:26:
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
- , f2)':
- supportClasses/Pathfinding.h:481:2: warning: control reaches end of non-void function [-Wreturn-typ
- ]
- }
- ^
- In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
- from D:/sfml-source/include/SFML/Window.hpp:32,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from supportClasses/Rectangle.h:9,
- from rts/general/Object.h:3,
- from rts/general/Object.cpp:1:
- D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef signed long long Int64;
- ^
- D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef unsigned long long Uint64;
- ^
- In file included from supportClasses/Rectangle.h:9:0,
- from rts/general/Object.h:3,
- from rts/general/Object.cpp:1:
- supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
- supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
- ng, char)':
- supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
- seglist.push_back(std::stof(segment));
- ^
- supportClasses/f2.h: At global scope:
- supportClasses/f2.h:432:9: error: 'hash' is not a class template
- struct hash<f2>
- ^
- supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
- {
- ^
- supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
- supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:442:13: error: 'std::hash' is not a template
- return hash<string>()(str);
- ^
- supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
- return hash<string>()(str);
- ^
- supportClasses/f2.h:432:9: note: candidate is:
- struct hash<f2>
- ^
- supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
- std::size_t operator()(const f2& k) const
- ^
- supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
- asic_string<char>}' to 'const f2&'
- In file included from supportClasses/Rect.h:17:0,
- from supportClasses/Rectangle.h:11,
- from rts/general/Object.h:3,
- from rts/general/Object.cpp:1:
- supportClasses/Shape.h: At global scope:
- supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
- c++11 or -std=gnu++11
- float radius_ = 0;
- ^
- In file included from supportClasses/Rect.h:17:0,
- from supportClasses/Rectangle.h:11,
- from rts/general/Object.h:3,
- from rts/general/Object.cpp:1:
- supportClasses/Shape.h: In constructor 'Shape::Shape()':
- supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
- d=gnu++11
- Shape() : Shape(4) {}
- ^
- In file included from rts/general/Object.h:3:0,
- from rts/general/Object.cpp:1:
- supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
- supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
- in the copy constructor [-Wextra]
- Rectangle(const Rectangle& rect) {*this = rect;}
- ^
- supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
- supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
- 1 or -std=gnu++11
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
- ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
- to 'std::vector<f2>'
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- In file included from particleEffects/Emitter.h:3:0,
- from particleEffects/ParticleEffects.h:3,
- from rts/general/Object.h:4,
- from rts/general/Object.cpp:1:
- particleEffects/Particle.h: At global scope:
- particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float timer_ = 0;
- ^
- In file included from particleEffects/ParticleEffects.h:3:0,
- from rts/general/Object.h:4,
- from rts/general/Object.cpp:1:
- particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double redDiff_ = 0;
- ^
- particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double blueDiff_ = 0;
- ^
- particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double greenDiff_ = 0;
- ^
- particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double alphaDiff_ = 0;
- ^
- particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double fade_ = 0;
- ^
- particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float emissionTimer_ = 0;
- ^
- particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float lifeTimer_ = 0;
- ^
- particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<Emitter*> emitters_ = vector<Emitter*>();
- ^
- particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
- or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- In file included from rts/general/Object.cpp:1:0:
- rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
- rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
- the copy constructor [-Wextra]
- Object(const Object& object) {*this = object;}
- ^
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/unordered_map:35:0,
- from supportClasses/Pathfinding.h:5,
- from rts/general/Unit.h:35,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/c++0x_warn
- ng.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 stand
- rd. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11
- compiler options.
- #error This file requires compiler and library support for the \
- ^
- In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
- from D:/sfml-source/include/SFML/Window.hpp:32,
- from D:/sfml-source/include/SFML/Graphics.hpp:32,
- from supportClasses/f2.h:4,
- from supportClasses/Rect.h:14,
- from Menu/Button.h:3,
- from Menu/Menu.h:2,
- from rts/Run.h:30,
- from rts/Run.cpp:26:
- D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef signed long long Int64;
- ^
- D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
- Wlong-long]
- typedef unsigned long long Uint64;
- ^
- In file included from supportClasses/Rect.h:14:0,
- from Menu/Button.h:3,
- from Menu/Menu.h:2,
- from rts/Run.h:30,
- from rts/Run.cpp:26:
- supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
- supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
- return f2(std::stof(seglist[0]), std::stof(seglist[1]));
- ^
- supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
- ng, char)':
- supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
- seglist.push_back(std::stof(segment));
- ^
- supportClasses/f2.h: At global scope:
- supportClasses/f2.h:432:9: error: 'hash' is not a class template
- struct hash<f2>
- ^
- supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
- {
- ^
- supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
- supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
- string str = std::to_string((int)k.x) + std::to_string((int)k.y);
- ^
- supportClasses/f2.h:442:13: error: 'std::hash' is not a template
- return hash<string>()(str);
- ^
- supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
- return hash<string>()(str);
- ^
- supportClasses/f2.h:432:9: note: candidate is:
- struct hash<f2>
- ^
- supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
- std::size_t operator()(const f2& k) const
- ^
- supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
- asic_string<char>}' to 'const f2&'
- In file included from supportClasses/Rect.h:17:0,
- from Menu/Button.h:3,
- from Menu/Menu.h:2,
- from rts/Run.h:30,
- from rts/Run.cpp:26:
- supportClasses/Shape.h: At global scope:
- supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
- c++11 or -std=gnu++11
- float radius_ = 0;
- ^
- In file included from supportClasses/Rect.h:17:0,
- from Menu/Button.h:3,
- from Menu/Menu.h:2,
- from rts/Run.h:30,
- from rts/Run.cpp:26:
- supportClasses/Shape.h: In constructor 'Shape::Shape()':
- supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
- d=gnu++11
- Shape() : Shape(4) {}
- ^
- In file included from Menu/Button.h:9:0,
- from Menu/Menu.h:2,
- from rts/Run.h:30,
- from rts/Run.cpp:26:
- supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
- supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
- in the copy constructor [-Wextra]
- Rectangle(const Rectangle& rect) {*this = rect;}
- ^
- supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
- supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
- 1 or -std=gnu++11
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
- ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
- to 'std::vector<f2>'
- vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
- ^
- In file included from rts/Run.h:30:0,
- from rts/Run.cpp:26:
- Menu/Menu.h: At global scope:
- Menu/Menu.h:49:17: warning: non-static data member initializers only available with -std=c++11 or -
- td=gnu++11
- int pressed = - 1;
- ^
- In file included from rts/Init.h:36:0,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/Hotkey.h:318:34: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- bool unitCardControl_ = false;
- ^
- rts/Hotkey.h:319:33: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- bool miniMapControl_ = false;
- ^
- rts/Hotkey.h:320:28: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- bool doubleTap_ = false;
- ^
- rts/Hotkey.h:321:37: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- bool commandCardControl_ = false;
- ^
- rts/Hotkey.h:304:34: warning: unused parameter 'other' [-Wunused-parameter]
- bool operator < (const Hotkey& other) const
- ^
- rts/Hotkey.h:332:10: error: 'hash' is not a class template
- struct hash<Hotkey>
- ^
- rts/Hotkey.h:332:21: error: 'std::hash' is not a template type
- struct hash<Hotkey>
- ^
- In file included from particleEffects/Emitter.h:3:0,
- from particleEffects/ParticleEffects.h:3,
- from rts/general/Object.h:4,
- from rts/general/Tile.h:3,
- from rts/Init.h:37,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float timer_ = 0;
- ^
- In file included from particleEffects/ParticleEffects.h:3:0,
- from rts/general/Object.h:4,
- from rts/general/Tile.h:3,
- from rts/Init.h:37,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double redDiff_ = 0;
- ^
- particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double blueDiff_ = 0;
- ^
- particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double greenDiff_ = 0;
- ^
- particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double alphaDiff_ = 0;
- ^
- particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- double fade_ = 0;
- ^
- particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float emissionTimer_ = 0;
- ^
- particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- float lifeTimer_ = 0;
- ^
- particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<Emitter*> emitters_ = vector<Emitter*>();
- ^
- particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
- or -std=gnu++11
- f2 speed_ = {0, 0};
- ^
- In file included from rts/general/Tile.h:3:0,
- from rts/Init.h:37,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
- rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
- the copy constructor [-Wextra]
- Object(const Object& object) {*this = object;}
- ^
- In file included from rts/Init.h:37:0,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/Tile.h: At global scope:
- rts/general/Tile.h:32:19: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- int beingUsed_ = 0;
- ^
- In file included from rts/general/Unit.h:29:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/OrderQueu.h:46:35: warning: non-static data member initializers only available with -st
- =c++11 or -std=gnu++11
- deque<Order> queu = deque<Order>(0);
- ^
- rts/general/OrderQueu.h:47:43: warning: non-static data member initializers only available with -st
- =c++11 or -std=gnu++11
- Order noOrder = Order(f2(0, 0), NO_COMMAND);
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- supportClasses/Pathfinding.h:16:12: error: 'std::unordered_map' has not been declared
- using std::unordered_map;
- ^
- supportClasses/Pathfinding.h:19:12: error: 'std::make_tuple' has not been declared
- using std::make_tuple;
- ^
- supportClasses/Pathfinding.h:22:12: error: 'std::unordered_set' has not been declared
- using std::unordered_set;
- ^
- supportClasses/Pathfinding.h:24:22: error: 'placeholders' is not a namespace-name
- using namespace std::placeholders;
- ^
- supportClasses/Pathfinding.h:24:34: error: expected namespace-name before ';' token
- using namespace std::placeholders;
- ^
- supportClasses/Pathfinding.h:30:75: error: '>>' should be '> >' within a nested template argument l
- st
- std::priority_queue<PQElement, vector<PQElement>, std::greater<PQElement>> elements;
- ^
- supportClasses/Pathfinding.h:551:36: error: 'unordered_map' has not been declared
- inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
- ^
- supportClasses/Pathfinding.h:551:49: error: expected ',' or '...' before '<' token
- inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- supportClasses/Pathfinding.h:740:1: error: 'unordered_map' does not name a type
- unordered_map<f2, Node*> nodes_;
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- supportClasses/Pathfinding.h: In member function 'std::vector<Node*> Pathfinding::neighbors(f2)':
- supportClasses/Pathfinding.h:95:7: error: 'nodes_' was not declared in this scope
- if (nodes_.count(position))
- ^
- supportClasses/Pathfinding.h:99:22: warning: comparison between signed and unsigned integer express
- ons [-Wsign-compare]
- for (int i = 0; i < node->links_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:111:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In static member function 'static bool Pathfinding::straightPath(f2,
- 2, std::vector<Rect>*)':
- supportClasses/Pathfinding.h:172:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:188:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:207:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h:223:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles->size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'bool Pathfinding::straightPath(f2, f2, const f2&)
- :
- supportClasses/Pathfinding.h:263:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:296:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:332:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:364:23: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
- , f2)':
- supportClasses/Pathfinding.h:394:11: warning: extended initializer lists only available with -std=c
- +11 or -std=gnu++11
- return {start, goal};
- ^
- supportClasses/Pathfinding.h:416:3: error: 'unordered_map' was not declared in this scope
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:416:19: error: expected primary-expression before ',' token
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:416:21: error: expected primary-expression before 'float'
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:417:19: error: expected primary-expression before ',' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:417:23: error: expected primary-expression before '>' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:417:25: error: 'cameFrom' was not declared in this scope
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:422:3: error: 'costSoFar' was not declared in this scope
- costSoFar[start] = 0;
- ^
- supportClasses/Pathfinding.h:438:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(current))
- ^
- supportClasses/Pathfinding.h:446:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nb.size(); ++i)
- ^
- supportClasses/Pathfinding.h:464:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc
- +0x-compat]
- for(auto i : cameFrom)
- ^
- supportClasses/Pathfinding.h:464:12: error: 'i' does not name a type
- for(auto i : cameFrom)
- ^
- supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
- if (start == pos)
- ^
- supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
- supportClasses/Pathfinding.h:473:3: error: expected ')' before 'if'
- supportClasses/Pathfinding.h:475:11: warning: extended initializer lists only available with -std=c
- +11 or -std=gnu++11
- return {};
- ^
- supportClasses/Pathfinding.h:461:9: warning: unused variable 'distance' [-Wunused-variable]
- float distance = - 1;
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
- , std::vector<Rect>)':
- supportClasses/Pathfinding.h:491:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:493:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(start) > 0 && straightPath(nodesV_[i]->position_, start))
- ^
- supportClasses/Pathfinding.h:500:3: error: 'unordered_map' was not declared in this scope
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:500:19: error: expected primary-expression before ',' token
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:500:21: error: expected primary-expression before 'float'
- unordered_map<f2, float> costSoFar;
- ^
- supportClasses/Pathfinding.h:501:19: error: expected primary-expression before ',' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:501:23: error: expected primary-expression before '>' token
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:501:25: error: 'cameFrom' was not declared in this scope
- unordered_map<f2, f2> cameFrom;
- ^
- supportClasses/Pathfinding.h:506:3: error: 'costSoFar' was not declared in this scope
- costSoFar[start] = 0;
- ^
- supportClasses/Pathfinding.h:516:39: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = startingNodeCount; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:525:8: error: 'nodes_' was not declared in this scope
- if (nodes_.count(current))
- ^
- supportClasses/Pathfinding.h:533:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nb.size(); ++i)
- ^
- supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::reconstructPath(int)
- :
- supportClasses/Pathfinding.h:555:18: error: 'goal' was not declared in this scope
- path.push_back(goal);
- ^
- supportClasses/Pathfinding.h:558:23: error: 'cameFrom' was not declared in this scope
- for (int i = 0; i < cameFrom.size(); ++i)
- ^
- supportClasses/Pathfinding.h:562:16: error: 'start' was not declared in this scope
- if (next == start)
- ^
- supportClasses/Pathfinding.h: In member function 'Node* Pathfinding::addNode(const f2&)':
- supportClasses/Pathfinding.h:585:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:605:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < nodesV_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:676:3: error: 'nodes_' was not declared in this scope
- nodes_[position] = node;
- ^
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::removeNode(Node*)':
- supportClasses/Pathfinding.h:682:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < node->links_.size(); ++i)
- ^
- supportClasses/Pathfinding.h:684:22: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int j = 0; j < node->links_[i]->links_.size(); ++j)
- ^
- supportClasses/Pathfinding.h:696:3: error: 'nodes_' was not declared in this scope
- nodes_.erase(node->position_);
- ^
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::generateNodes(const std::vector
- Rect>&)':
- supportClasses/Pathfinding.h:703:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 0; i < obstacles.size(); ++i)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- supportClasses/Pathfinding.h: In member function 'void Pathfinding::update()':
- supportClasses/Pathfinding.h:718:3: error: 'nodes_' was not declared in this scope
- nodes_.clear();
- ^
- supportClasses/Pathfinding.h: In member function 'bool Pathfinding::checkPath(std::vector<f2>)':
- supportClasses/Pathfinding.h:725:21: warning: comparison between signed and unsigned integer expres
- ions [-Wsign-compare]
- for (int i = 1; i < path.size(); ++i)
- ^
- In file included from rts/general/Unit.h:37:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/Wall.h: At global scope:
- rts/general/Wall.h:36:25: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool canBeShotTrough_ = false;
- ^
- rts/general/Wall.h:39:26: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- f2 unitIndex_ = f2(0, - 1);
- ^
- rts/general/Wall.h:40:17: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool enabled_ = true;
- ^
- rts/general/Wall.h: In copy constructor 'Wall::Wall(const Wall&)':
- rts/general/Wall.h:16:2: warning: base class 'class Rectangle' should be explicitly initialized in
- he copy constructor [-Wextra]
- Wall(const Wall& wall) {*this = wall;}
- ^
- In file included from rts/Init.h:38:0,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/Unit.h: At global scope:
- rts/general/Unit.h:88:26: warning: type qualifiers ignored on function return type [-Wignored-quali
- iers]
- void removeCurrentOrder() {orders_.remove();}
- ^
- rts/general/Unit.h:99:18: warning: non-static data member initializers only available with -std=c++
- 1 or -std=gnu++11
- bool selected_ = false;
- ^
- rts/general/Unit.h:113:16: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- bool pushed_ = false;
- ^
- rts/general/Unit.h:156:31: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- OrderQueu orders_ = OrderQueu();
- ^
- rts/general/Unit.h:170:24: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- int pathfindingStep_ = 0;
- ^
- rts/general/Unit.h:180:32: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- f2 previousTarget_ = f2(- 1, -1);
- ^
- rts/general/Unit.h:181:17: warning: non-static data member initializers only available with -std=c+
- 11 or -std=gnu++11
- bool enabled_ = true;
- ^
- rts/general/Unit.h: In copy constructor 'Unit::Unit(const Unit&)':
- rts/general/Unit.h:74:2: warning: base class 'class Object' should be explicitly initialized in the
- copy constructor [-Wextra]
- Unit(const Unit& unit) {*this = unit;}
- ^
- In file included from rts/Init.h:39:0,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/Faction.h: At global scope:
- rts/Faction.h:18:21: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- float usedSupply_ = 0;
- ^
- rts/Faction.h:19:24: warning: non-static data member initializers only available with -std=c++11 or
- -std=gnu++11
- float currentSupply_ = 0;
- ^
- In file included from rts/general/Units.h:27:0,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/Init.h: In constructor 'Init::Init(std::string)':
- rts/Init.h:49:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
- (std::string&)'
- ifstream ini(iniPath);
- ^
- rts/Init.h:49:23: note: candidates are:
- In file included from Menu/Menu.h:6:0,
- from rts/Run.h:30,
- from rts/Run.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
- h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
- basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
- char*'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
- _traits<char>]
- basic_ifstream() : __istream_type(), _M_filebuf()
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: candidate expects 0 arguments, 1 provided
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
- class basic_ifstream : public basic_istream<_CharT, _Traits>
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
- t std::basic_ifstream<char>&'
- In file included from rts/general/Units.h:27:0,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/Init.h:71:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& x : valueMap)
- ^
- rts/Init.h:71:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& x : valueMap)
- ^
- rts/Init.h:73:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h:73:41: error: request for member 'second' in 'x', which is of non-class type 'const int'
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h: In member function 'void Init::loadFile(std::string)':
- rts/Init.h:81:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
- (std::string&)'
- ifstream ini(iniPath);
- ^
- rts/Init.h:81:23: note: candidates are:
- In file included from Menu/Menu.h:6:0,
- from rts/Run.h:30,
- from rts/Run.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
- h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
- basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
- ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
- char*'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
- _traits<char>]
- basic_ifstream() : __istream_type(), _M_filebuf()
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
- ote: candidate expects 0 arguments, 1 provided
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
- class basic_ifstream : public basic_istream<_CharT, _Traits>
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
- note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
- t std::basic_ifstream<char>&'
- In file included from rts/general/Units.h:27:0,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/Init.h:103:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& x : valueMap)
- ^
- rts/Init.h:103:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& x : valueMap)
- ^
- rts/Init.h:105:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h:105:41: error: request for member 'second' in 'x', which is of non-class type 'const int
- valueMap[x.first] = evaluate(split(x.second, ' '));
- ^
- rts/Init.h: In member function 'std::string Init::evaluate(std::vector<std::basic_string<char> >)':
- rts/Init.h:112:21: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < arguments.size(); ++i)
- ^
- rts/Init.h: In member function 'Rect Init::getRect(const string&) const':
- rts/Init.h:144:19: error: 'stof' is not a member of 'std'
- float top = std::stof(arguments[1]);
- ^
- rts/Init.h:145:20: error: 'stof' is not a member of 'std'
- float left = std::stof(arguments[2]);
- ^
- rts/Init.h:146:20: error: 'stof' is not a member of 'std'
- float width = std::stof(arguments[3]);
- ^
- rts/Init.h:147:21: error: 'stof' is not a member of 'std'
- float height = std::stof(arguments[4]);
- ^
- rts/Init.h: In member function 'sf::Color Init::getColor(const string&) const':
- rts/Init.h:175:17: error: 'stof' is not a member of 'std'
- float r = std::stof(arguments[1]);
- ^
- rts/Init.h:176:17: error: 'stof' is not a member of 'std'
- float g = std::stof(arguments[2]);
- ^
- rts/Init.h:177:18: error: 'stof' is not a member of 'std'
- float b = std::stof(arguments[3]);
- ^
- rts/Init.h:178:18: error: 'stof' is not a member of 'std'
- float a = std::stof(arguments[4]);
- ^
- rts/Init.h: In member function 'Function Init::getFunction(const string&) const':
- rts/Init.h:206:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:218:55: error: 'stoi' is not a member of 'std'
- FunctionType type = static_cast<FunctionType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:219:26: error: 'stoi' is not a member of 'std'
- bool global = std::stoi(get(arguments, "global"));
- ^
- rts/Init.h:220:33: error: 'stoi' is not a member of 'std'
- bool ignoreMousePosition = std::stoi(get(arguments, "ignoreMousePosition"));
- ^
- rts/Init.h:221:29: error: 'stoi' is not a member of 'std'
- bool useDoubleTap = std::stoi(get(arguments, "useDoubleTap"));
- ^
- rts/Init.h: In member function 'f2 Init::getf2(const string&) const':
- rts/Init.h:247:11: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
- 1
- return {0, 0};
- ^
- rts/Init.h:253:14: error: 'stof' is not a member of 'std'
- float x = std::stof(arguments[1]);
- ^
- rts/Init.h:254:14: error: 'stof' is not a member of 'std'
- float y = std::stof(arguments[2]);
- ^
- rts/Init.h:261:10: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
- 1
- return {0, 0};
- ^
- rts/Init.h: In member function 'Animation Init::getAnimation(const string&) const':
- rts/Init.h:276:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:288:26: error: 'stof' is not a member of 'std'
- float rectWidth = std::stof(get(arguments, "rectWidth"));
- ^
- rts/Init.h:289:26: error: 'stof' is not a member of 'std'
- float rectHeight = std::stof(get(arguments, "rectHeight"));
- ^
- rts/Init.h:290:27: error: 'stof' is not a member of 'std'
- float duration = std::stof(get(arguments, "duration"));
- ^
- rts/Init.h:291:26: error: 'stof' is not a member of 'std'
- f2 textureDimensions(std::stof(get(arguments, "columns")),
- ^
- rts/Init.h:292:16: error: 'stof' is not a member of 'std'
- std::stof(get(arguments, "rows")));
- ^
- rts/Init.h:293:24: error: 'stoi' is not a member of 'std'
- bool loops = std::stoi(get(arguments, "loops"));
- ^
- rts/Init.h: In member function 'Projectile Init::getProjectile(const string&) const':
- rts/Init.h:323:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:335:21: error: 'stof' is not a member of 'std'
- float width = std::stof(get(arguments, "width"));
- ^
- rts/Init.h:336:22: error: 'stof' is not a member of 'std'
- float height = std::stof(get(arguments, "height"));
- ^
- rts/Init.h:337:22: error: 'stof' is not a member of 'std'
- float velocity = std::stof(get(arguments, "velocity"));
- ^
- rts/Init.h:338:21: error: 'stof' is not a member of 'std'
- float damage = std::stof(get(arguments, "damage"));
- ^
- rts/Init.h: In member function 'Ability Init::getAbility(const string&) const':
- rts/Init.h:370:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:384:33: error: 'stoi' is not a member of 'std'
- bool firstTargetIsUnit = std::stoi(get(arguments, "firstTargetIsUnit"));
- ^
- rts/Init.h:385:34: error: 'stoi' is not a member of 'std'
- bool secondTargetIsUnit = std::stoi(get(arguments, "secondTargetIsUnit"));
- ^
- rts/Init.h:386:27: error: 'stof' is not a member of 'std'
- float cost = std::stof(get(arguments, "cost"));
- ^
- rts/Init.h:387:28: error: 'stof' is not a member of 'std'
- float range = std::stof(get(arguments, "range"));
- ^
- rts/Init.h:388:29: error: 'stof' is not a member of 'std'
- float cooldown = std::stof(get(arguments, "cooldown"));
- ^
- rts/Init.h:389:28: error: 'stof' is not a member of 'std'
- float radius = std::stof(get(arguments, "radius"));
- ^
- rts/Init.h:390:29: error: 'stoi' is not a member of 'std'
- bool targeted = std::stoi(get(arguments, "targeted"));
- ^
- rts/Init.h:391:29: error: 'stof' is not a member of 'std'
- float velocity = std::stof(get(arguments, "velocity"));
- ^
- rts/Init.h:392:28: error: 'stof' is not a member of 'std'
- float damage = std::stof(get(arguments, "damage"));
- ^
- rts/Init.h:393:29: error: 'stof' is not a member of 'std'
- float duration = std::stof(get(arguments, "duration"));
- ^
- rts/Init.h:395:28: error: 'stoi' is not a member of 'std'
- bool hitsAir = std::stoi(get(arguments, "hitsAir"));
- ^
- rts/Init.h:396:30: error: 'stoi' is not a member of 'std'
- bool hitsGround = std::stoi(get(arguments, "hitsGround"));
- ^
- rts/Init.h:397:28: error: 'stoi' is not a member of 'std'
- bool active = std::stoi(get(arguments, "active"));
- ^
- rts/Init.h:398:28: error: 'stoi' is not a member of 'std'
- bool applied = std::stoi(get(arguments, "applied"));
- ^
- rts/Init.h:399:30: error: 'stoi' is not a member of 'std'
- bool targetEnemy = std::stoi(get(arguments, "targetEnemy"));
- ^
- rts/Init.h:400:32: error: 'stoi' is not a member of 'std'
- bool targetFriendly = std::stoi(get(arguments, "targetFriendly"));
- ^
- rts/Init.h:401:29: error: 'stoi' is not a member of 'std'
- bool hitEnemy = std::stoi(get(arguments, "hitEnemy"));
- ^
- rts/Init.h:402:30: error: 'stoi' is not a member of 'std'
- bool hitFriendly = std::stoi(get(arguments, "hitFriendly"));
- ^
- rts/Init.h:403:29: error: 'stoi' is not a member of 'std'
- bool autoCast = std::stoi(get(arguments, "autoCast"));
- ^
- rts/Init.h:405:29: error: 'stoi' is not a member of 'std'
- bool piercing = std::stoi(get(arguments, "piercing"));
- ^
- rts/Init.h:406:29: error: 'stoi' is not a member of 'std'
- bool collision = std::stoi(get(arguments, "collision"));
- ^
- rts/Init.h:407:31: error: 'stoi' is not a member of 'std'
- bool makesBuilding = std::stoi(get(arguments, "makesBuilding"));
- ^
- rts/Init.h:408:29: error: 'stoi' is not a member of 'std'
- bool makesUnit = std::stoi(get(arguments, "makesUnit"));
- ^
- rts/Init.h:409:31: error: 'stoi' is not a member of 'std'
- bool isProjectile = std::stoi(get(arguments, "isProjectile"));
- ^
- rts/Init.h:410:30: error: 'stoi' is not a member of 'std'
- bool isResearch = std::stoi(get(arguments, "isResearch"));
- ^
- rts/Init.h:411:29: error: 'stoi' is not a member of 'std'
- bool useOnce = std::stoi(get(arguments, "useOnce"));
- ^
- rts/Init.h:412:34: error: 'stoi' is not a member of 'std'
- bool useForAllUnitTypes = std::stoi(get(arguments, "useForAllUnitTypes"));
- ^
- rts/Init.h:413:53: error: 'stoi' is not a member of 'std'
- Research research = static_cast<Research>(std::stoi(get(arguments, "research")));
- ^
- rts/Init.h:414:57: error: 'stoi' is not a member of 'std'
- OrderType abilityEnum = static_cast<OrderType>(std::stoi(get(arguments, "abilityEnum")));
- ^
- rts/Init.h:420:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < typesString.size(); ++i)
- ^
- rts/Init.h:422:51: error: 'stoi' is not a member of 'std'
- effects.push_back(static_cast<AbilityEffect>(std::stoi(typesString[i])));
- ^
- In file included from rts/general/Units.h:27:0,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/Init.h: In member function 'std::vector<Ability> Init::getAbilities() const':
- rts/Init.h:448:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& x : valueMap)
- ^
- rts/Init.h:448:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& x : valueMap)
- ^
- rts/Init.h:450:46: error: request for member 'first' in 'x', which is of non-class type 'const int'
- vector<string> args = split(valueMap.at(x.first));
- ^
- rts/Init.h:453:38: error: request for member 'first' in 'x', which is of non-class type 'const int'
- abilities.push_back(getAbility(x.first));
- ^
- rts/Init.h: In member function 'Unit Init::getUnit(const string&) const':
- rts/Init.h:471:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:483:26: error: 'stof' is not a member of 'std'
- float RectWidth = std::stof(get(arguments, "RectWidth"));
- ^
- rts/Init.h:484:26: error: 'stof' is not a member of 'std'
- float RectHeight = std::stof(get(arguments, "RectHeight"));
- ^
- rts/Init.h:489:20: error: 'stof' is not a member of 'std'
- float radius = std::stof(get(arguments, "radius"));
- ^
- rts/Init.h:496:26: error: 'stof' is not a member of 'std'
- float health = std::stof(get(arguments, "health"));
- ^
- rts/Init.h:497:28: error: 'stof' is not a member of 'std'
- float attackPoint = std::stof(get(arguments, "attackPoint"));
- ^
- rts/Init.h:498:28: error: 'stof' is not a member of 'std'
- float attackDelay = std::stof(get(arguments, "attackDelay"));
- ^
- rts/Init.h:499:25: error: 'stof' is not a member of 'std'
- float armor = std::stof(get(arguments, "armor"));
- ^
- rts/Init.h:500:29: error: 'stof' is not a member of 'std'
- float movementSpeed = std::stof(get(arguments, "movementSpeed"));
- ^
- rts/Init.h:501:25: error: 'stof' is not a member of 'std'
- float range = std::stof(get(arguments, "range"));
- ^
- rts/Init.h:502:28: error: 'stof' is not a member of 'std'
- float sightRange = std::stof(get(arguments, "sightRange"));
- ^
- rts/Init.h:503:26: error: 'stof' is not a member of 'std'
- float supply = std::stof(get(arguments, "supply"));
- ^
- rts/Init.h:504:27: error: 'stof' is not a member of 'std'
- float buildTime = std::stof(get(arguments, "buildTime"));
- ^
- rts/Init.h:505:28: error: 'stof' is not a member of 'std'
- float barrelLength = std::stof(get(arguments, "barrelLength"));
- ^
- rts/Init.h:506:31: error: 'stof' is not a member of 'std'
- float resourceCapacity = std::stof(get(arguments, "resourceCapacity"));
- ^
- rts/Init.h:507:27: error: 'stof' is not a member of 'std'
- float maxEnergy = std::stof(get(arguments, "maxEnergy"));
- ^
- rts/Init.h:508:26: error: 'stof' is not a member of 'std'
- float energy = std::stof(get(arguments, "energy"));
- ^
- rts/Init.h:509:27: error: 'stof' is not a member of 'std'
- float maxShield = std::stof(get(arguments, "maxShield"));
- ^
- rts/Init.h:510:30: error: 'stof' is not a member of 'std'
- float gatherDuration = std::stof(get(arguments, "gatherDuration"));
- ^
- rts/Init.h:511:28: error: 'stof' is not a member of 'std'
- float vertOffset = std::stof(get(arguments, "vertOffset"));
- ^
- rts/Init.h:512:27: error: 'stof' is not a member of 'std'
- float horOffset = std::stof(get(arguments, "horOffset"));
- ^
- rts/Init.h:514:26: error: 'stoi' is not a member of 'std'
- bool canAttack = std::stoi(get(arguments, "canAttack"));
- ^
- rts/Init.h:515:27: error: 'stoi' is not a member of 'std'
- bool canBeMoved = std::stoi(get(arguments, "canBeMoved"));
- ^
- rts/Init.h:516:26: error: 'stoi' is not a member of 'std'
- bool canRotate = std::stoi(get(arguments, "canRotate"));
- ^
- rts/Init.h:517:25: error: 'stoi' is not a member of 'std'
- bool flying = std::stoi(get(arguments, "flying"));
- ^
- rts/Init.h:518:25: error: 'stoi' is not a member of 'std'
- bool hasHead = std::stoi(get(arguments, "hasHead"));
- ^
- rts/Init.h:519:30: error: 'stoi' is not a member of 'std'
- bool returnsResources = std::stoi(get(arguments, "returnsResources"));
- ^
- rts/Init.h:520:26: error: 'stoi' is not a member of 'std'
- bool animated = std::stoi(get(arguments, "animated"));
- ^
- rts/Init.h:521:27: error: 'stoi' is not a member of 'std'
- bool isBuilding = std::stoi(get(arguments, "isBuilding"));
- ^
- rts/Init.h:522:27: error: 'stoi' is not a member of 'std'
- bool noCollision = std::stoi(get(arguments, "noCollision"));
- ^
- rts/Init.h:523:29: error: 'stoi' is not a member of 'std'
- int workersRequired = std::stoi(get(arguments, "workersRequired"));
- ^
- rts/Init.h:524:46: error: in C++98 'offset' must be initialized by constructor, not by '{...}'
- f2 offset = {horOffset, vertOffset};
- ^
- rts/Init.h:530:51: error: 'stoi' is not a member of 'std'
- OrderType projectile = static_cast<OrderType>(std::stoi(get(arguments, "projectile")));
- ^
- rts/Init.h:538:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < costsstring.size(); ++i)
- ^
- rts/Init.h:540:22: error: 'stof' is not a member of 'std'
- costs.push_back(std::stof(costsstring[i]));
- ^
- rts/Init.h:545:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < typesString.size(); ++i)
- ^
- rts/Init.h:547:44: error: 'stoi' is not a member of 'std'
- types.push_back(static_cast<unitType>(std::stoi(typesString[i])));
- ^
- rts/Init.h:553:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < abl.size(); ++i)
- ^
- rts/Init.h:555:49: error: 'stoi' is not a member of 'std'
- abilities.push_back(static_cast<OrderType>(std::stoi(abl[i])));
- ^
- rts/Init.h:561:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < pass.size(); ++i)
- ^
- rts/Init.h:565:49: error: 'stoi' is not a member of 'std'
- passives.push_back(static_cast<OrderType>(std::stoi(pass[i])));
- ^
- rts/Init.h:577:24: error: 'stof' is not a member of 'std'
- unit.aggroRange_ = std::stof(get(arguments, "aggroRange"));
- ^
- rts/Init.h: In member function 'float Init::getfloat(const string&) const':
- rts/Init.h:603:10: error: 'stof' is not a member of 'std'
- return std::stof(get(valueMap, key));
- ^
- rts/Init.h: In member function 'Hotkey Init::getHotkey(const string&) const':
- rts/Init.h:618:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:631:21: error: 'stoi' is not a member of 'std'
- bool realtime = std::stoi(get(arguments, "realtime"));
- ^
- rts/Init.h:635:25: error: 'stoi' is not a member of 'std'
- bool control = std::stoi(get(arguments, "control"));
- ^
- rts/Init.h:636:25: error: 'stoi' is not a member of 'std'
- bool shift = std::stoi(get(arguments, "shift"));
- ^
- rts/Init.h:637:24: error: 'stoi' is not a member of 'std'
- bool alt = std::stoi(get(arguments, "alt"));
- ^
- rts/Init.h:638:25: error: 'stoi' is not a member of 'std'
- bool super = std::stoi(get(arguments, "super"));
- ^
- rts/Init.h:639:26: error: 'stoi' is not a member of 'std'
- bool isButton = std::stoi(get(arguments, "isButton"));
- ^
- rts/Init.h:640:29: error: 'stoi' is not a member of 'std'
- bool unitCardControl = std::stoi(get(arguments, "unitCardControl"));
- ^
- rts/Init.h:641:29: error: 'stoi' is not a member of 'std'
- bool miniMapControl = std::stoi(get(arguments, "miniMapControl"));
- ^
- rts/Init.h:642:27: error: 'stoi' is not a member of 'std'
- bool doubleTap = std::stoi(get(arguments, "doubleTap"));
- ^
- rts/Init.h:643:32: error: 'stoi' is not a member of 'std'
- bool commandCardControl = std::stoi(get(arguments, "commandCardControl"));
- ^
- rts/Init.h:645:16: error: 'stoi' is not a member of 'std'
- int key = std::stoi(get(arguments, "key"));
- ^
- rts/Init.h:646:19: error: 'stoi' is not a member of 'std'
- int button = std::stoi(get(arguments, "button"));
- ^
- rts/Init.h:655:26: error: 'stoi' is not a member of 'std'
- hotkey.eventType_ = std::stoi(get(arguments, "eventType"));
- ^
- rts/Init.h:679:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < stringKeys.size(); ++i)
- ^
- rts/Init.h:681:31: error: 'stoi' is not a member of 'std'
- hotkey.keys_.push_back(std::stoi(stringKeys[i]));
- ^
- rts/Init.h:689:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 0; i < stringButtons.size(); ++i)
- ^
- rts/Init.h:691:34: error: 'stoi' is not a member of 'std'
- hotkey.buttons_.push_back(std::stoi(stringButtons[i]));
- ^
- rts/Init.h: In member function 'sf::Mouse::Button Init::getButton(const string&) const':
- rts/Init.h:715:41: error: 'stoi' is not a member of 'std'
- return static_cast<sf::Mouse::Button>(std::stoi(get(valueMap, key)));
- ^
- rts/Init.h: In member function 'sf::Keyboard::Key Init::getKey(const string&) const':
- rts/Init.h:720:41: error: 'stoi' is not a member of 'std'
- return static_cast<sf::Keyboard::Key>(std::stoi(get(valueMap, key)));
- ^
- rts/Init.h: In member function 'Tile Init::getTile(const string&) const':
- rts/Init.h:735:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:747:22: error: 'stof' is not a member of 'std'
- float width = std::stof(get(arguments, "width"));
- ^
- rts/Init.h:748:22: error: 'stof' is not a member of 'std'
- float height = std::stof(get(arguments, "height"));
- ^
- rts/Init.h:753:25: error: 'stof' is not a member of 'std'
- float resources = std::stof(get(arguments, "resources"));
- ^
- rts/Init.h:755:25: error: 'stoi' is not a member of 'std'
- bool passable = std::stoi(get(arguments, "passable"));
- ^
- rts/Init.h:756:46: error: 'stoi' is not a member of 'std'
- TileType type = static_cast<TileType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:753:11: warning: unused variable 'resources' [-Wunused-variable]
- float resources = std::stof(get(arguments, "resources"));
- ^
- rts/Init.h: In member function 'Wall Init::getWall(const string&) const':
- rts/Init.h:788:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:801:27: error: 'stof' is not a member of 'std'
- float width = std::stof(get(arguments, "width"));
- ^
- rts/Init.h:802:27: error: 'stof' is not a member of 'std'
- float height = std::stof(get(arguments, "height"));
- ^
- rts/Init.h:807:50: error: 'stoi' is not a member of 'std'
- WallType type = static_cast<WallType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:813:30: error: 'stoi' is not a member of 'std'
- wall.canBeSeenThrough_ = std::stoi(get(arguments, "canBeSeenThrough"));
- ^
- rts/Init.h:814:31: error: 'stoi' is not a member of 'std'
- wall.canBeMovedThrough_ = std::stoi(get(arguments, "canBeMovedThrough"));
- ^
- rts/Init.h:815:28: error: 'stoi' is not a member of 'std'
- wall.canBeDestroyed_ = std::stoi(get(arguments, "canBeDestroyed"));
- ^
- rts/Init.h:816:37: error: 'stoi' is not a member of 'std'
- wall.canBePartiallyDestroyed_ = std::stoi(get(arguments, "canBePartiallyDestroyed"));
- ^
- rts/Init.h:817:23: error: 'stof' is not a member of 'std'
- wall.hitPoints_ = std::stof(get(arguments, "hitPoints"));
- ^
- rts/Init.h: In member function 'std::vector<Wall*> Init::getWalls(const string&) const':
- rts/Init.h:848:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:852:24: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int j = 0; j < dataSet.size(); ++j)
- ^
- rts/Init.h:859:13: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h:859:33: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h:859:53: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h:859:73: error: 'stof' is not a member of 'std'
- Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
- texture_));
- ^
- rts/Init.h: In member function 'Faction Init::getFaction(const string&) const':
- rts/Init.h:888:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- for (int i = 1; i < args.size(); ++i)
- ^
- rts/Init.h:900:35: error: 'stoi' is not a member of 'std'
- int numberOfResourceTypes = std::stoi(get(arguments, "numberOfResourceTypes"));
- ^
- rts/Init.h:901:30: error: 'stof' is not a member of 'std'
- float maxSupply = std::stof(get(arguments, "maxSupply"));
- ^
- rts/Init.h:902:32: error: 'stof' is not a member of 'std'
- float civilianFavor = std::stof(get(arguments, "civilianFavor"));
- ^
- rts/Init.h:903:55: error: 'stoi' is not a member of 'std'
- FactionType type = static_cast<FactionType>(std::stoi(get(arguments, "type")));
- ^
- rts/Init.h:912:40: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
- re]
- if (currentResourcesstring.size() > i)
- ^
- rts/Init.h:914:34: error: 'stof' is not a member of 'std'
- currentResources.push_back(std::stof(currentResourcesstring[i]));
- ^
- rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allUnits() const':
- rts/Init.h:947:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& element : valueMap)
- ^
- rts/Init.h:947:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : valueMap)
- ^
- rts/Init.h:949:16: error: request for member 'second' in 'element', which is of non-class type 'con
- t int'
- if (element.second.compare(0, 4, "Unit") == 0)
- ^
- rts/Init.h:951:30: error: request for member 'first' in 'element', which is of non-class type 'cons
- int'
- result.push_back(element.first);
- ^
- rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allWalls() const':
- rts/Init.h:961:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& element : valueMap)
- ^
- rts/Init.h:961:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : valueMap)
- ^
- rts/Init.h:963:16: error: request for member 'second' in 'element', which is of non-class type 'con
- t int'
- if (element.second.compare(0, 4, "Wall") == 0)
- ^
- rts/Init.h:965:30: error: request for member 'first' in 'element', which is of non-class type 'cons
- int'
- result.push_back(element.first);
- ^
- In file included from rts/general/Units.h:29:0,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/Hotkeys.h: At global scope:
- rts/Hotkeys.h:133:6: error: 'unordered_map' in namespace 'std' does not name a template type
- std::unordered_map<Hotkey, vector<Function>> hotkeys_;
- ^
- rts/Hotkeys.h: In constructor 'Hotkeys::Hotkeys(std::string)':
- rts/Hotkeys.h:16:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& p : config.valueMap)
- ^
- rts/Hotkeys.h:16:24: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& p : config.valueMap)
- ^
- rts/Hotkeys.h:18:46: error: request for member 'second' in 'p', which is of non-class type 'const i
- t'
- vector<string> arguments = config.split(p.second, ' ');
- ^
- rts/Hotkeys.h:22:46: error: request for member 'first' in 'p', which is of non-class type 'const in
- '
- Function function = config.getFunction(p.first);
- ^
- rts/Hotkeys.h:23:23: warning: comparison between signed and unsigned integer expressions [-Wsign-co
- pare]
- for (int i = 1; i < arguments.size(); ++i)
- ^
- rts/Hotkeys.h:32:25: warning: comparison between signed and unsigned integer expressions [-Wsign-co
- pare]
- for (int i = 0; i < hotkeysstring.size(); ++i)
- ^
- rts/Hotkeys.h:114:24: warning: comparison between signed and unsigned integer expressions [-Wsign-c
- mpare]
- for (int i = 0; i < hotkeys.size(); ++i)
- ^
- rts/Hotkeys.h:117:11: error: 'hotkeys_' was not declared in this scope
- if (hotkeys_.count(hotkey) == 0)
- ^
- rts/Hotkeys.h:126:7: error: 'hotkeys_' was not declared in this scope
- hotkeys_[hotkey].push_back(function);
- ^
- In file included from rts/general/Units.h:31:0,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/Terrain.h: In member function 'int Terrain::findTile(f2)':
- rts/general/Terrain.h:17:21: warning: comparison between signed and unsigned integer expressions [-
- sign-compare]
- for (int i = 0; i < objects_.size(); ++i)
- ^
- In file included from rts/general/Units.h:33:0,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/UI.h: In member function 'int UI::hovered(f2)':
- rts/general/UI.h:15:21: warning: comparison between signed and unsigned integer expressions [-Wsign
- compare]
- for (int i = 0; i < UIElements_.size(); ++i)
- ^
- rts/general/UI.h: In member function 'void UI::setQuad(sf::VertexArray*)':
- rts/general/UI.h:27:21: warning: comparison between signed and unsigned integer expressions [-Wsign
- compare]
- for (int i = 0; i < UIElements_.size(); ++i)
- ^
- rts/general/UI.h: In member function 'void UI::drawText()':
- rts/general/UI.h:35:21: warning: comparison between signed and unsigned integer expressions [-Wsign
- compare]
- for (int i = 0; i < UITextElements_.size(); ++i)
- ^
- In file included from rts/general/Units.h:39:0,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/EditorAction.h: At global scope:
- rts/general/EditorAction.h:40:41: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<f2> unitsDisabled_ = vector<f2>(0);
- ^
- rts/general/EditorAction.h:41:43: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<int> wallsDisabled_ = vector<int>(0);
- ^
- rts/general/EditorAction.h:42:40: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<f2> unitsEnabled_ = vector<f2>(0);
- ^
- rts/general/EditorAction.h:43:42: warning: non-static data member initializers only available with
- std=c++11 or -std=gnu++11
- vector<int> wallsEnabled_ = vector<int>(0);
- ^
- In file included from rts/Game.h:3:0,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/Units.h:85:204: error: 'function' in namespace 'std' does not name a template type
- f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
- 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
- td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
- ^
- rts/general/Units.h:85:212: error: expected ',' or '...' before '<' token
- f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
- 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
- td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
- ^
- rts/general/Units.h:147:7: error: 'unordered_map' in namespace 'std' does not name a template type
- std::unordered_map<int, Unit*>::iterator kill(f2 unit, bool deleteWalls = false);
- ^
- rts/general/Units.h:218:70: error: '>>' should be '> >' within a nested template argument list
- void setFogTries(const f2& center, float radius, vector<vector<float>> lines, sf::VertexArray* ve
- tices);
- ^
- rts/general/Units.h:257:8: error: 'unordered_map' is not a member of 'std'
- vector<std::unordered_map<int, Unit*>> units_;
- ^
- rts/general/Units.h:257:8: error: 'unordered_map' is not a member of 'std'
- rts/general/Units.h:257:40: error: template argument 1 is invalid
- vector<std::unordered_map<int, Unit*>> units_;
- ^
- rts/general/Units.h:257:40: error: template argument 2 is invalid
- rts/general/Units.h:258:15: error: 'unordered_map' is not a member of 'std'
- vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
- ^
- rts/general/Units.h:258:15: error: 'unordered_map' is not a member of 'std'
- rts/general/Units.h:258:46: error: template argument 1 is invalid
- vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
- ^
- rts/general/Units.h:258:46: error: template argument 2 is invalid
- rts/general/Units.h:258:48: error: template argument 1 is invalid
- vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
- ^
- rts/general/Units.h:258:48: error: template argument 2 is invalid
- rts/general/Units.h:264:34: error: '>>' should be '> >' within a nested template argument list
- vector<vector<vector<vector<Unit*>>>> unitsGrid_;
- ^
- rts/general/Units.h:264:36: error: '>>' should be '> >' within a nested template argument list
- vector<vector<vector<vector<Unit*>>>> unitsGrid_;
- ^
- rts/general/Units.h:268:23: error: '>>' should be '> >' within a nested template argument list
- vector<vector<relation>> relationTable_;
- ^
- rts/general/Units.h:284:20: error: '>>' should be '> >' within a nested template argument list
- vector<vector<Unit*>> controlGroups_;
- ^
- rts/general/Units.h:286:19: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- long IDCounter_ = 0;
- ^
- rts/general/Units.h:290:38: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- string selectedSubGroupType_ = "none";
- ^
- rts/general/Units.h:299:30: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- bool creatingSelectionBox_ = false;
- ^
- rts/general/Units.h:310:27: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- bool updatePathfinding_ = false;
- ^
- rts/general/Units.h:339:6: error: 'unordered_map' in namespace 'std' does not name a template type
- std::unordered_map<int, Wall*> walls_;
- ^
- rts/general/Units.h:340:23: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- long wallIDCounter_ = 0;
- ^
- rts/general/Units.h:342:20: error: '>>' should be '> >' within a nested template argument list
- vector<vector<float>> anglesSet_;
- ^
- rts/general/Units.h:343:20: error: '>>' should be '> >' within a nested template argument list
- vector<vector<float>> anglesSetOriginal_;
- ^
- rts/general/Units.h:348:24: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- GameState gameState_ = DEFAULT;
- ^
- rts/general/Units.h:354:19: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- int editorTeam_ = 0;
- ^
- rts/general/Units.h:359:27: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- int editorActionsIndex_ = 0;
- ^
- rts/general/Units.h:361:23: warning: non-static data member initializers only available with -std=c
- +11 or -std=gnu++11
- bool abilityCursor_ = false;
- ^
- In file included from rts/Game.h:3:0,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/Units.h:85:5: error: default argument missing for parameter 9 of 'f2 Units::closestUnit
- f2, float, std::vector<int>, int, f2, std::string, bool, relation, int)'
- f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
- 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
- td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
- ^
- In file included from rts/Game.h:3:0,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/general/Units.h: In member function 'Unit* Units::getUnit(f2)':
- rts/general/Units.h:91:38: error: 'units_' was not declared in this scope
- Unit* getUnit(f2 unitIndex) {return units_[unitIndex.x].at(unitIndex.y);}
- ^
- In file included from rts/Run.cpp:26:0:
- rts/Run.h: At global scope:
- rts/Run.h:89:24: warning: non-static data member initializers only available with -std=c++11 or -st
- =gnu++11
- bool addToSelection_ = false;
- ^
- rts/Run.h:90:28: warning: non-static data member initializers only available with -std=c++11 or -st
- =gnu++11
- f2 mousePosition_ = f2(0, 0);
- ^
- rts/Run.h:106:34: error: '>>' should be '> >' within a nested template argument list
- std::list<std::pair<Hotkey, float>> hotkeyList_;
- ^
- rts/Run.h:111:19: warning: non-static data member initializers only available with -std=c++11 or -s
- d=gnu++11
- bool mouseLeft_ = false;
- ^
- rts/Run.h:112:76: warning: non-static data member initializers only available with -std=c++11 or -s
- d=gnu++11
- sf::VertexArray miniMapVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
- ^
- rts/Run.h:112:51: error: expected primary-expression before '(' token
- sf::VertexArray miniMapVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
- ^
- rts/Run.h:112:56: error: 'sf::PrimitiveType' is not a class or namespace
- sf::VertexArray miniMapVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
- ^
- rts/Run.cpp: In constructor 'Run::Run(Game*)':
- rts/Run.cpp:68:56: error: 'GameState' is not a class or namespace
- game_->units_ = new Units(&renderTexture_, &texture_, GameState::DEFAULT, &window_, &mainView_);
- ^
- rts/Run.cpp: In member function 'void Run::mainLoop()':
- rts/Run.cpp:104:94: error: in C++98 'buttons' must be initialized by constructor, not by '{...}'
- std::vector<string> buttons = {"Start game", "building editor", "option3", "option4", "quit"};
- ^
- rts/Run.cpp:104:94: error: could not convert '{"Start game", "building editor", "option3", "option4
- , "quit"}' from '<brace-enclosed initializer list>' to 'std::vector<std::basic_string<char> >'
- rts/Run.cpp: In member function 'Hotkey Run::parseInputEvent(sf::Event, Menu*)':
- rts/Run.cpp:122:2: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- auto it = hotkeyList_.begin();
- ^
- rts/Run.cpp:122:7: error: 'it' does not name a type
- auto it = hotkeyList_.begin();
- ^
- rts/Run.cpp:124:9: error: 'it' was not declared in this scope
- while (it != hotkeyList_.end())
- ^
- rts/Run.cpp:150:35: error: 'GameState' is not a class or namespace
- if (game_->units_->gameState_ == GameState::BUILDING_EDITOR)
- ^
- rts/Run.cpp:156:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for ( auto it = hotkeyList_.begin(); it != hotkeyList_.end(); ++it )
- ^
- rts/Run.cpp:156:13: error: 'it' does not name a type
- for ( auto it = hotkeyList_.begin(); it != hotkeyList_.end(); ++it )
- ^
- rts/Run.cpp:156:39: error: expected ';' before 'it'
- for ( auto it = hotkeyList_.begin(); it != hotkeyList_.end(); ++it )
- ^
- rts/Run.cpp:156:39: error: 'it' was not declared in this scope
- rts/Run.cpp:170:30: error: 'class Hotkeys' has no member named 'hotkeys_'
- if (game_->units_->hotkeys_.hotkeys_.count(hotkey) > 0)
- ^
- rts/Run.cpp:173:47: error: 'class Hotkeys' has no member named 'hotkeys_'
- for (int i = 0; i < game_->units_->hotkeys_.hotkeys_[hotkey].size(); ++i)
- ^
- rts/Run.cpp:175:48: error: 'class Hotkeys' has no member named 'hotkeys_'
- Function function = game_->units_->hotkeys_.hotkeys_.at(hotkey)[i];
- ^
- rts/Run.cpp:180:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::MOVE_CAMERA:
- ^
- rts/Run.cpp:185:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::SELECT:
- ^
- rts/Run.cpp:196:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::SELECT_ADD:
- ^
- rts/Run.cpp:208:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::SELECT_STOP:
- ^
- rts/Run.cpp:225:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::MENU:
- ^
- rts/Run.cpp:231:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::MOVE_CAMERA_BY_MINIMAP:
- ^
- rts/Run.cpp:178:12: warning: enumeration value 'NON_FUNCTION' not handled in switch [-Wswitch]
- switch (function.type_)
- ^
- rts/Run.cpp:178:12: warning: enumeration value 'ORDER_FUNCTION' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION1' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION2' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION3' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION4' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION5' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION6' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION7' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION8' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION9' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION10' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION11' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION12' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION13' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION14' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION15' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION16' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'CONTROL_ALL' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SELECT_TYPE' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SELECT' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'PAN_DRAG' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SELECT_STOP' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'MENU' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_UP' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_LEFT' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_DOWN' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_RIGHT' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_BY_MINIMAP' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'DESELECT_UNITCARD' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_SELECTION' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SELECT_UNITCARD' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SELECTGROUP_UNITCARD' not handled in switch [-Wswit
- h]
- rts/Run.cpp:178:12: warning: enumeration value 'DESELECTGROUP_UNITCARD' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'SELECT_ADD' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP1' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP2' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP3' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP4' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP5' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP6' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP7' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP8' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP9' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP10' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP11' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP12' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP13' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP14' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP15' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP1' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP2' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP3' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP4' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP5' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP6' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP7' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP8' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP9' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP10' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP11' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP12' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP13' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP14' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP15' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP1' not handled in switch [-W
- witch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP2' not handled in switch [-W
- witch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP3' not handled in switch [-W
- witch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP4' not handled in switch [-W
- witch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP5' not handled in switch [-W
- witch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP6' not handled in switch [-W
- witch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP7' not handled in switch [-W
- witch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP8' not handled in switch [-W
- witch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP9' not handled in switch [-W
- witch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP10' not handled in switch [-
- switch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP11' not handled in switch [-
- switch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP12' not handled in switch [-
- switch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP13' not handled in switch [-
- switch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP14' not handled in switch [-
- switch]
- rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP15' not handled in switch [-
- switch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP1' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP2' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP3' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP4' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP5' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP6' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP7' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP8' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP9' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP10' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP11' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP12' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP13' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP14' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP15' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION1' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION2' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION3' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION4' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION5' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION6' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION7' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION8' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION9' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION10' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION11' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION12' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION13' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION14' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION15' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION16' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'QUEU_ORDER' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'CHANGE_SUBSELECTION' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'EDGEPAN' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'MOUSE_ENTERED' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'COMMAND_CARD_COUNTROL' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:178:12: warning: enumeration value 'DELETE' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SAVE' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'UNDO' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION1' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION2' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION3' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION4' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION5' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION6' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION7' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION8' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION9' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION10' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION11' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION12' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION13' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION14' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION15' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION16' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION1' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION2' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION3' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION4' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION5' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION6' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION7' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION8' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION9' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION10' not handled in switch [-Wswit
- h]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION11' not handled in switch [-Wswit
- h]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION12' not handled in switch [-Wswit
- h]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION13' not handled in switch [-Wswit
- h]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION14' not handled in switch [-Wswit
- h]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION15' not handled in switch [-Wswit
- h]
- rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION16' not handled in switch [-Wswit
- h]
- rts/Run.cpp:178:12: warning: enumeration value 'COMPLETE_ORDER' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'COMMAND_CARD_CLICKED' not handled in switch [-Wswit
- h]
- rts/Run.cpp:178:12: warning: enumeration value 'SAVE_MAP' not handled in switch [-Wswitch]
- rts/Run.cpp:178:12: warning: enumeration value 'REDO' not handled in switch [-Wswitch]
- rts/Run.cpp: In member function 'void Run::parseInputRealtime()':
- rts/Run.cpp:260:30: error: 'class Hotkeys' has no member named 'hotkeys_'
- if (game_->units_->hotkeys_.hotkeys_.count(hotkey) > 0)
- ^
- rts/Run.cpp:262:47: error: 'class Hotkeys' has no member named 'hotkeys_'
- for (int i = 0; i < game_->units_->hotkeys_.hotkeys_[hotkey].size(); ++i)
- ^
- rts/Run.cpp:264:48: error: 'class Hotkeys' has no member named 'hotkeys_'
- Function function = game_->units_->hotkeys_.hotkeys_.at(hotkey)[i];
- ^
- rts/Run.cpp:269:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::PAN_DRAG:
- ^
- rts/Run.cpp:278:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::MOVE_CAMERA_UP:
- ^
- rts/Run.cpp:283:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::MOVE_CAMERA_LEFT:
- ^
- rts/Run.cpp:288:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::MOVE_CAMERA_DOWN:
- ^
- rts/Run.cpp:293:11: error: 'FunctionType' is not a class or namespace
- case FunctionType::MOVE_CAMERA_RIGHT:
- ^
- rts/Run.cpp:267:12: warning: enumeration value 'NON_FUNCTION' not handled in switch [-Wswitch]
- switch (function.type_)
- ^
- rts/Run.cpp:267:12: warning: enumeration value 'ORDER_FUNCTION' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION1' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION2' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION3' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION4' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION5' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION6' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION7' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION8' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION9' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION10' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION11' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION12' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION13' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION14' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION15' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION16' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'CONTROL_ALL' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SELECT_TYPE' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SELECT' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'PAN_DRAG' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SELECT_STOP' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'MENU' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_UP' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_LEFT' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_DOWN' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_RIGHT' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_BY_MINIMAP' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'DESELECT_UNITCARD' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_SELECTION' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SELECT_UNITCARD' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SELECTGROUP_UNITCARD' not handled in switch [-Wswit
- h]
- rts/Run.cpp:267:12: warning: enumeration value 'DESELECTGROUP_UNITCARD' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'SELECT_ADD' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP1' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP2' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP3' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP4' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP5' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP6' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP7' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP8' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP9' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP10' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP11' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP12' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP13' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP14' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP15' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP1' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP2' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP3' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP4' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP5' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP6' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP7' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP8' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP9' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP10' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP11' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP12' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP13' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP14' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP15' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP1' not handled in switch [-W
- witch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP2' not handled in switch [-W
- witch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP3' not handled in switch [-W
- witch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP4' not handled in switch [-W
- witch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP5' not handled in switch [-W
- witch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP6' not handled in switch [-W
- witch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP7' not handled in switch [-W
- witch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP8' not handled in switch [-W
- witch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP9' not handled in switch [-W
- witch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP10' not handled in switch [-
- switch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP11' not handled in switch [-
- switch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP12' not handled in switch [-
- switch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP13' not handled in switch [-
- switch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP14' not handled in switch [-
- switch]
- rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP15' not handled in switch [-
- switch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP1' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP2' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP3' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP4' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP5' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP6' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP7' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP8' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP9' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP10' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP11' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP12' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP13' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP14' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP15' not handled in switch [-Wsw
- tch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION1' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION2' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION3' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION4' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION5' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION6' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION7' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION8' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION9' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION10' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION11' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION12' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION13' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION14' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION15' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION16' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'QUEU_ORDER' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'CHANGE_SUBSELECTION' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'EDGEPAN' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'MOUSE_ENTERED' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'COMMAND_CARD_COUNTROL' not handled in switch [-Wswi
- ch]
- rts/Run.cpp:267:12: warning: enumeration value 'DELETE' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SAVE' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'UNDO' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION1' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION2' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION3' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION4' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION5' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION6' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION7' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION8' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION9' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION10' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION11' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION12' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION13' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION14' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION15' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION16' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION1' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION2' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION3' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION4' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION5' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION6' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION7' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION8' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION9' not handled in switch [-Wswitc
- ]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION10' not handled in switch [-Wswit
- h]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION11' not handled in switch [-Wswit
- h]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION12' not handled in switch [-Wswit
- h]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION13' not handled in switch [-Wswit
- h]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION14' not handled in switch [-Wswit
- h]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION15' not handled in switch [-Wswit
- h]
- rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION16' not handled in switch [-Wswit
- h]
- rts/Run.cpp:267:12: warning: enumeration value 'COMPLETE_ORDER' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'COMMAND_CARD_CLICKED' not handled in switch [-Wswit
- h]
- rts/Run.cpp:267:12: warning: enumeration value 'SAVE_MAP' not handled in switch [-Wswitch]
- rts/Run.cpp:267:12: warning: enumeration value 'REDO' not handled in switch [-Wswitch]
- rts/Run.cpp: In member function 'void Run::gameLoop(Menu*)':
- rts/Run.cpp:318:57: error: 'GameState' is not a class or namespace
- game_->units_ = new Units(&renderTexture_, &texture_, GameState::DEFAULT, &window_, &mainView_);
- ^
- rts/Run.cpp:322:57: error: 'GameState' is not a class or namespace
- game_->units_ = new Units(&renderTexture_, &texture_, GameState::BUILDING_EDITOR, &window_, &mai
- View_);
- ^
- rts/Run.cpp:368:21: error: 'to_string' is not a member of 'std'
- text_.setString (std::to_string(framerate));
- ^
- rts/Run.cpp:357:8: warning: unused variable 'currentTeam' [-Wunused-variable]
- int currentTeam = game_->units_->currentTeam_;
- ^
- rts/Run.cpp: In member function 'void Run::drawBoxFromPoints(f2, f2)':
- rts/Run.cpp:453:38: warning: extended initializer lists only available with -std=c++11 or -std=gnu+
- 11
- createLineBetweenPoints(startPoint, {endPoint.x, startPoint.y}, 3, blackBox).setQuad(&vertices_);
- ^
- rts/Run.cpp:454:38: warning: extended initializer lists only available with -std=c++11 or -std=gnu+
- 11
- createLineBetweenPoints(startPoint, {startPoint.x, endPoint.y}, 3, blackBox).setQuad(&vertices_);
- ^
- rts/Run.cpp:455:36: warning: extended initializer lists only available with -std=c++11 or -std=gnu+
- 11
- createLineBetweenPoints(endPoint, {endPoint.x, startPoint.y}, 3, blackBox).setQuad(&vertices_);
- ^
- rts/Run.cpp:456:36: warning: extended initializer lists only available with -std=c++11 or -std=gnu+
- 11
- createLineBetweenPoints(endPoint, {startPoint.x, endPoint.y}, 3, blackBox).setQuad(&vertices_);
- ^
- rts/Run.cpp:450:8: warning: unused variable 'width' [-Wunused-variable]
- float width = startPoint.x - endPoint.x;
- ^
- rts/Run.cpp:451:8: warning: unused variable 'height' [-Wunused-variable]
- float height = startPoint.y - endPoint.y;
- ^
- rts/Run.cpp: In member function 'void Run::setMiniMapQuads(sf::VertexArray*)':
- rts/Run.cpp:557:16: error: 'unordered_map' is not a member of 'std'
- vector<vector<std::unordered_map<int, Unit*>>>* units = &game_->units_->visibleUnits_;
- ^
- rts/Run.cpp:557:16: error: 'unordered_map' is not a member of 'std'
- rts/Run.cpp:557:47: error: template argument 1 is invalid
- vector<vector<std::unordered_map<int, Unit*>>>* units = &game_->units_->visibleUnits_;
- ^
- rts/Run.cpp:557:47: error: template argument 2 is invalid
- rts/Run.cpp:557:50: error: 'units' was not declared in this scope
- vector<vector<std::unordered_map<int, Unit*>>>* units = &game_->units_->visibleUnits_;
- ^
- rts/Run.cpp:557:74: error: 'class Units' has no member named 'visibleUnits_'
- vector<vector<std::unordered_map<int, Unit*>>>* units = &game_->units_->visibleUnits_;
- ^
- rts/Run.cpp:557:74: error: an assignment cannot appear in a constant-expression
- rts/Run.cpp:557:74: error: template argument 1 is invalid
- rts/Run.cpp:557:74: error: template argument 2 is invalid
- rts/Run.cpp:562:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto const& element : (*units)[playerTeam][team])
- ^
- rts/Run.cpp:562:30: error: range-based 'for' loops are not allowed in C++98 mode
- for (auto const& element : (*units)[playerTeam][team])
- ^
- rts/Run.cpp:564:25: error: request for member 'second' in 'element', which is of non-class type 'co
- st int'
- Unit* unit = element.second;
- ^
- rts/Run.cpp:566:59: error: 'relation' is not a class or namespace
- if (game_->units_->relationTable_[playerTeam][team] == relation::CONTROL)
- ^
- rts/Run.cpp:570:59: error: 'relation' is not a class or namespace
- if (game_->units_->relationTable_[playerTeam][team] == relation::ENEMY)
- ^
- rts/Run.cpp:574:59: error: 'relation' is not a class or namespace
- if (game_->units_->relationTable_[playerTeam][team] == relation::FRIEND)
- ^
- rts/Run.cpp:578:59: error: 'relation' is not a class or namespace
- if (game_->units_->relationTable_[playerTeam][team] == relation::NEUTRAL)
- ^
- In file included from rts/general/Unit.h:35:0,
- from rts/Init.h:38,
- from rts/general/Units.h:27,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- supportClasses/Pathfinding.h: In instantiation of 'void PriorityQueue<T, Number>::put(T, Number) [w
- th T = f2; Number = float]':
- supportClasses/Pathfinding.h:419:24: required from here
- supportClasses/Pathfinding.h:36:5: error: 'class std::priority_queue<std::pair<float, f2>, std::vec
- or<std::pair<float, f2>, std::allocator<std::pair<float, f2> > >, std::greater<std::pair<float, f2>
- > >' has no member named 'emplace'
- elements.emplace(priority, item);
- ^
- In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/bits/stl_algobase.h:65:0,
- from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
- e/c++/vector:60,
- from supportClasses/Rect.h:8,
- from Menu/Button.h:3,
- from Menu/Menu.h:2,
- from rts/Run.h:30,
- from rts/Run.cpp:26:
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h: In instantiation of 'struct std::iterator_traits<f2>':
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:1262:24: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _
- nputIterator, std::__false_type) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>]'
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
- h:413:55: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const a
- locator_type&) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>; std::vector<_Tp, _
- lloc>::allocator_type = std::allocator<f2>]'
- supportClasses/Pathfinding.h:394:23: required from here
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:165:53: error: no type named 'iterator_category' in 'class f2'
- typedef typename _Iterator::iterator_category iterator_category;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:166:53: error: no type named 'value_type' in 'class f2'
- typedef typename _Iterator::value_type value_type;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:167:53: error: no type named 'difference_type' in 'class f2'
- typedef typename _Iterator::difference_type difference_type;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:168:53: error: no type named 'pointer' in 'class f2'
- typedef typename _Iterator::pointer pointer;
- ^
- C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
- r_base_types.h:169:53: error: no type named 'reference' in 'class f2'
- typedef typename _Iterator::reference reference;
- ^
- In file included from rts/general/Units.h:27:0,
- from rts/Game.h:3,
- from rts/Run.h:31,
- from rts/Run.cpp:26:
- rts/Init.h: In member function 'float Init::getfloat(const string&) const':
- rts/Init.h:604:2: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- rts/Run.cpp: In member function 'Hotkey Run::parseInputEvent(sf::Event, Menu*)':
- rts/Run.cpp:245:1: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- make: *** [debug] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement