Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 470.00 KB | None | 0 0
  1. rts/Hotkey.h:321:37: warning: non-static data member initializers only available with -std=c++11 or
  2. -std=gnu++11
  3. bool commandCardControl_ = false;
  4. ^
  5. rts/Hotkey.h:304:34: warning: unused parameter 'other' [-Wunused-parameter]
  6. bool operator < (const Hotkey& other) const
  7. ^
  8. rts/Hotkey.h:332:10: error: 'hash' is not a class template
  9. struct hash<Hotkey>
  10. ^
  11. rts/Hotkey.h:332:21: error: 'std::hash' is not a template type
  12. struct hash<Hotkey>
  13. ^
  14. In file included from rts/general/Unit.h:29:0,
  15. from rts/Init.h:38,
  16. from rts/general/Terrain.h:4,
  17. from rts/general/Terrain.cpp:1:
  18. rts/general/OrderQueu.h:46:35: warning: non-static data member initializers only available with -st
  19. =c++11 or -std=gnu++11
  20. deque<Order> queu = deque<Order>(0);
  21. ^
  22. rts/general/OrderQueu.h:47:43: warning: non-static data member initializers only available with -st
  23. =c++11 or -std=gnu++11
  24. Order noOrder = Order(f2(0, 0), NO_COMMAND);
  25. ^
  26. In file included from rts/general/Unit.h:35:0,
  27. from rts/Init.h:38,
  28. from rts/general/Terrain.h:4,
  29. from rts/general/Terrain.cpp:1:
  30. supportClasses/Pathfinding.h:16:12: error: 'std::unordered_map' has not been declared
  31. using std::unordered_map;
  32. ^
  33. supportClasses/Pathfinding.h:19:12: error: 'std::make_tuple' has not been declared
  34. using std::make_tuple;
  35. ^
  36. supportClasses/Pathfinding.h:22:12: error: 'std::unordered_set' has not been declared
  37. using std::unordered_set;
  38. ^
  39. supportClasses/Pathfinding.h:24:22: error: 'placeholders' is not a namespace-name
  40. using namespace std::placeholders;
  41. ^
  42. supportClasses/Pathfinding.h:24:34: error: expected namespace-name before ';' token
  43. using namespace std::placeholders;
  44. ^
  45. supportClasses/Pathfinding.h:30:75: error: '>>' should be '> >' within a nested template argument l
  46. st
  47. std::priority_queue<PQElement, vector<PQElement>, std::greater<PQElement>> elements;
  48. ^
  49. supportClasses/Pathfinding.h:551:36: error: 'unordered_map' has not been declared
  50. inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
  51. ^
  52. supportClasses/Pathfinding.h:551:49: error: expected ',' or '...' before '<' token
  53. inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
  54. ^
  55. In file included from rts/general/Unit.h:35:0,
  56. from rts/Init.h:38,
  57. from rts/general/Terrain.h:4,
  58. from rts/general/Terrain.cpp:1:
  59. supportClasses/Pathfinding.h:740:1: error: 'unordered_map' does not name a type
  60. unordered_map<f2, Node*> nodes_;
  61. ^
  62. In file included from rts/general/Unit.h:35:0,
  63. from rts/Init.h:38,
  64. from rts/general/Terrain.h:4,
  65. from rts/general/Terrain.cpp:1:
  66. supportClasses/Pathfinding.h: In member function 'std::vector<Node*> Pathfinding::neighbors(f2)':
  67. supportClasses/Pathfinding.h:95:7: error: 'nodes_' was not declared in this scope
  68. if (nodes_.count(position))
  69. ^
  70. supportClasses/Pathfinding.h:99:22: warning: comparison between signed and unsigned integer express
  71. ons [-Wsign-compare]
  72. for (int i = 0; i < node->links_.size(); ++i)
  73. ^
  74. supportClasses/Pathfinding.h:111:22: warning: comparison between signed and unsigned integer expres
  75. ions [-Wsign-compare]
  76. for (int i = 0; i < nodesV_.size(); ++i)
  77. ^
  78. supportClasses/Pathfinding.h: In static member function 'static bool Pathfinding::straightPath(f2,
  79. 2, std::vector<Rect>*)':
  80. supportClasses/Pathfinding.h:172:23: warning: comparison between signed and unsigned integer expres
  81. ions [-Wsign-compare]
  82. for (int i = 0; i < obstacles->size(); ++i)
  83. ^
  84. supportClasses/Pathfinding.h:188:23: warning: comparison between signed and unsigned integer expres
  85. ions [-Wsign-compare]
  86. for (int i = 0; i < obstacles->size(); ++i)
  87. ^
  88. supportClasses/Pathfinding.h:207:23: warning: comparison between signed and unsigned integer expres
  89. ions [-Wsign-compare]
  90. for (int i = 0; i < obstacles->size(); ++i)
  91. ^
  92. supportClasses/Pathfinding.h:223:23: warning: comparison between signed and unsigned integer expres
  93. ions [-Wsign-compare]
  94. for (int i = 0; i < obstacles->size(); ++i)
  95. ^
  96. supportClasses/Pathfinding.h: In member function 'bool Pathfinding::straightPath(f2, f2, const f2&)
  97. :
  98. supportClasses/Pathfinding.h:263:23: warning: comparison between signed and unsigned integer expres
  99. ions [-Wsign-compare]
  100. for (int i = 0; i < obstacles_.size(); ++i)
  101. ^
  102. supportClasses/Pathfinding.h:296:23: warning: comparison between signed and unsigned integer expres
  103. ions [-Wsign-compare]
  104. for (int i = 0; i < obstacles_.size(); ++i)
  105. ^
  106. supportClasses/Pathfinding.h:332:23: warning: comparison between signed and unsigned integer expres
  107. ions [-Wsign-compare]
  108. for (int i = 0; i < obstacles_.size(); ++i)
  109. ^
  110. supportClasses/Pathfinding.h:364:23: warning: comparison between signed and unsigned integer expres
  111. ions [-Wsign-compare]
  112. for (int i = 0; i < obstacles_.size(); ++i)
  113. ^
  114. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
  115. , f2)':
  116. supportClasses/Pathfinding.h:394:11: warning: extended initializer lists only available with -std=c
  117. +11 or -std=gnu++11
  118. return {start, goal};
  119. ^
  120. supportClasses/Pathfinding.h:416:3: error: 'unordered_map' was not declared in this scope
  121. unordered_map<f2, float> costSoFar;
  122. ^
  123. supportClasses/Pathfinding.h:416:19: error: expected primary-expression before ',' token
  124. unordered_map<f2, float> costSoFar;
  125. ^
  126. supportClasses/Pathfinding.h:416:21: error: expected primary-expression before 'float'
  127. unordered_map<f2, float> costSoFar;
  128. ^
  129. supportClasses/Pathfinding.h:417:19: error: expected primary-expression before ',' token
  130. unordered_map<f2, f2> cameFrom;
  131. ^
  132. supportClasses/Pathfinding.h:417:23: error: expected primary-expression before '>' token
  133. unordered_map<f2, f2> cameFrom;
  134. ^
  135. supportClasses/Pathfinding.h:417:25: error: 'cameFrom' was not declared in this scope
  136. unordered_map<f2, f2> cameFrom;
  137. ^
  138. supportClasses/Pathfinding.h:422:3: error: 'costSoFar' was not declared in this scope
  139. costSoFar[start] = 0;
  140. ^
  141. supportClasses/Pathfinding.h:438:8: error: 'nodes_' was not declared in this scope
  142. if (nodes_.count(current))
  143. ^
  144. supportClasses/Pathfinding.h:446:22: warning: comparison between signed and unsigned integer expres
  145. ions [-Wsign-compare]
  146. for (int i = 0; i < nb.size(); ++i)
  147. ^
  148. supportClasses/Pathfinding.h:464:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc
  149. +0x-compat]
  150. for(auto i : cameFrom)
  151. ^
  152. supportClasses/Pathfinding.h:464:12: error: 'i' does not name a type
  153. for(auto i : cameFrom)
  154. ^
  155. supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
  156. if (start == pos)
  157. ^
  158. supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
  159. supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
  160. supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
  161. supportClasses/Pathfinding.h:473:3: error: expected ')' before 'if'
  162. supportClasses/Pathfinding.h:475:11: warning: extended initializer lists only available with -std=c
  163. +11 or -std=gnu++11
  164. return {};
  165. ^
  166. supportClasses/Pathfinding.h:461:9: warning: unused variable 'distance' [-Wunused-variable]
  167. float distance = - 1;
  168. ^
  169. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
  170. , std::vector<Rect>)':
  171. supportClasses/Pathfinding.h:491:21: warning: comparison between signed and unsigned integer expres
  172. ions [-Wsign-compare]
  173. for (int i = 0; i < nodesV_.size(); ++i)
  174. ^
  175. supportClasses/Pathfinding.h:493:8: error: 'nodes_' was not declared in this scope
  176. if (nodes_.count(start) > 0 && straightPath(nodesV_[i]->position_, start))
  177. ^
  178. supportClasses/Pathfinding.h:500:3: error: 'unordered_map' was not declared in this scope
  179. unordered_map<f2, float> costSoFar;
  180. ^
  181. supportClasses/Pathfinding.h:500:19: error: expected primary-expression before ',' token
  182. unordered_map<f2, float> costSoFar;
  183. ^
  184. supportClasses/Pathfinding.h:500:21: error: expected primary-expression before 'float'
  185. unordered_map<f2, float> costSoFar;
  186. ^
  187. supportClasses/Pathfinding.h:501:19: error: expected primary-expression before ',' token
  188. unordered_map<f2, f2> cameFrom;
  189. ^
  190. supportClasses/Pathfinding.h:501:23: error: expected primary-expression before '>' token
  191. unordered_map<f2, f2> cameFrom;
  192. ^
  193. supportClasses/Pathfinding.h:501:25: error: 'cameFrom' was not declared in this scope
  194. unordered_map<f2, f2> cameFrom;
  195. ^
  196. supportClasses/Pathfinding.h:506:3: error: 'costSoFar' was not declared in this scope
  197. costSoFar[start] = 0;
  198. ^
  199. supportClasses/Pathfinding.h:516:39: warning: comparison between signed and unsigned integer expres
  200. ions [-Wsign-compare]
  201. for (int i = startingNodeCount; i < nodesV_.size(); ++i)
  202. ^
  203. supportClasses/Pathfinding.h:525:8: error: 'nodes_' was not declared in this scope
  204. if (nodes_.count(current))
  205. ^
  206. supportClasses/Pathfinding.h:533:22: warning: comparison between signed and unsigned integer expres
  207. ions [-Wsign-compare]
  208. for (int i = 0; i < nb.size(); ++i)
  209. ^
  210. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::reconstructPath(int)
  211. :
  212. supportClasses/Pathfinding.h:555:18: error: 'goal' was not declared in this scope
  213. path.push_back(goal);
  214. ^
  215. supportClasses/Pathfinding.h:558:23: error: 'cameFrom' was not declared in this scope
  216. for (int i = 0; i < cameFrom.size(); ++i)
  217. ^
  218. supportClasses/Pathfinding.h:562:16: error: 'start' was not declared in this scope
  219. if (next == start)
  220. ^
  221. supportClasses/Pathfinding.h: In member function 'Node* Pathfinding::addNode(const f2&)':
  222. supportClasses/Pathfinding.h:585:21: warning: comparison between signed and unsigned integer expres
  223. ions [-Wsign-compare]
  224. for (int i = 0; i < obstacles_.size(); ++i)
  225. ^
  226. supportClasses/Pathfinding.h:605:21: warning: comparison between signed and unsigned integer expres
  227. ions [-Wsign-compare]
  228. for (int i = 0; i < nodesV_.size(); ++i)
  229. ^
  230. supportClasses/Pathfinding.h:676:3: error: 'nodes_' was not declared in this scope
  231. nodes_[position] = node;
  232. ^
  233. supportClasses/Pathfinding.h: In member function 'void Pathfinding::removeNode(Node*)':
  234. supportClasses/Pathfinding.h:682:21: warning: comparison between signed and unsigned integer expres
  235. ions [-Wsign-compare]
  236. for (int i = 0; i < node->links_.size(); ++i)
  237. ^
  238. supportClasses/Pathfinding.h:684:22: warning: comparison between signed and unsigned integer expres
  239. ions [-Wsign-compare]
  240. for (int j = 0; j < node->links_[i]->links_.size(); ++j)
  241. ^
  242. supportClasses/Pathfinding.h:696:3: error: 'nodes_' was not declared in this scope
  243. nodes_.erase(node->position_);
  244. ^
  245. supportClasses/Pathfinding.h: In member function 'void Pathfinding::generateNodes(const std::vector
  246. Rect>&)':
  247. supportClasses/Pathfinding.h:703:21: warning: comparison between signed and unsigned integer expres
  248. ions [-Wsign-compare]
  249. for (int i = 0; i < obstacles.size(); ++i)
  250. ^
  251. In file included from rts/general/Unit.h:35:0,
  252. from rts/Init.h:38,
  253. from rts/general/Terrain.h:4,
  254. from rts/general/Terrain.cpp:1:
  255. supportClasses/Pathfinding.h: In member function 'void Pathfinding::update()':
  256. supportClasses/Pathfinding.h:718:3: error: 'nodes_' was not declared in this scope
  257. nodes_.clear();
  258. ^
  259. supportClasses/Pathfinding.h: In member function 'bool Pathfinding::checkPath(std::vector<f2>)':
  260. supportClasses/Pathfinding.h:725:21: warning: comparison between signed and unsigned integer expres
  261. ions [-Wsign-compare]
  262. for (int i = 1; i < path.size(); ++i)
  263. ^
  264. In file included from rts/general/Unit.h:37:0,
  265. from rts/Init.h:38,
  266. from rts/general/Terrain.h:4,
  267. from rts/general/Terrain.cpp:1:
  268. rts/general/Wall.h: At global scope:
  269. rts/general/Wall.h:36:25: warning: non-static data member initializers only available with -std=c++
  270. 1 or -std=gnu++11
  271. bool canBeShotTrough_ = false;
  272. ^
  273. rts/general/Wall.h:39:26: warning: non-static data member initializers only available with -std=c++
  274. 1 or -std=gnu++11
  275. f2 unitIndex_ = f2(0, - 1);
  276. ^
  277. rts/general/Wall.h:40:17: warning: non-static data member initializers only available with -std=c++
  278. 1 or -std=gnu++11
  279. bool enabled_ = true;
  280. ^
  281. rts/general/Wall.h: In copy constructor 'Wall::Wall(const Wall&)':
  282. rts/general/Wall.h:16:2: warning: base class 'class Rectangle' should be explicitly initialized in
  283. he copy constructor [-Wextra]
  284. Wall(const Wall& wall) {*this = wall;}
  285. ^
  286. In file included from rts/Init.h:38:0,
  287. from rts/general/Terrain.h:4,
  288. from rts/general/Terrain.cpp:1:
  289. rts/general/Unit.h: At global scope:
  290. rts/general/Unit.h:88:26: warning: type qualifiers ignored on function return type [-Wignored-quali
  291. iers]
  292. void removeCurrentOrder() {orders_.remove();}
  293. ^
  294. rts/general/Unit.h:99:18: warning: non-static data member initializers only available with -std=c++
  295. 1 or -std=gnu++11
  296. bool selected_ = false;
  297. ^
  298. rts/general/Unit.h:113:16: warning: non-static data member initializers only available with -std=c+
  299. 11 or -std=gnu++11
  300. bool pushed_ = false;
  301. ^
  302. rts/general/Unit.h:156:31: warning: non-static data member initializers only available with -std=c+
  303. 11 or -std=gnu++11
  304. OrderQueu orders_ = OrderQueu();
  305. ^
  306. rts/general/Unit.h:170:24: warning: non-static data member initializers only available with -std=c+
  307. 11 or -std=gnu++11
  308. int pathfindingStep_ = 0;
  309. ^
  310. rts/general/Unit.h:180:32: warning: non-static data member initializers only available with -std=c+
  311. 11 or -std=gnu++11
  312. f2 previousTarget_ = f2(- 1, -1);
  313. ^
  314. rts/general/Unit.h:181:17: warning: non-static data member initializers only available with -std=c+
  315. 11 or -std=gnu++11
  316. bool enabled_ = true;
  317. ^
  318. rts/general/Unit.h: In copy constructor 'Unit::Unit(const Unit&)':
  319. rts/general/Unit.h:74:2: warning: base class 'class Object' should be explicitly initialized in the
  320. copy constructor [-Wextra]
  321. Unit(const Unit& unit) {*this = unit;}
  322. ^
  323. In file included from rts/Init.h:39:0,
  324. from rts/general/Terrain.h:4,
  325. from rts/general/Terrain.cpp:1:
  326. rts/Faction.h: At global scope:
  327. rts/Faction.h:18:21: warning: non-static data member initializers only available with -std=c++11 or
  328. -std=gnu++11
  329. float usedSupply_ = 0;
  330. ^
  331. rts/Faction.h:19:24: warning: non-static data member initializers only available with -std=c++11 or
  332. -std=gnu++11
  333. float currentSupply_ = 0;
  334. ^
  335. In file included from rts/general/Terrain.h:4:0,
  336. from rts/general/Terrain.cpp:1:
  337. rts/Init.h: In constructor 'Init::Init(std::string)':
  338. rts/Init.h:49:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
  339. (std::string&)'
  340. ifstream ini(iniPath);
  341. ^
  342. rts/Init.h:49:23: note: candidates are:
  343. In file included from rts/Init.h:29:0,
  344. from rts/general/Terrain.h:4,
  345. from rts/general/Terrain.cpp:1:
  346. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  347. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
  348. h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
  349. basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
  350. ^
  351. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  352. ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
  353. char*'
  354. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  355. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
  356. _traits<char>]
  357. basic_ifstream() : __istream_type(), _M_filebuf()
  358. ^
  359. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  360. ote: candidate expects 0 arguments, 1 provided
  361. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  362. note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
  363. class basic_ifstream : public basic_istream<_CharT, _Traits>
  364. ^
  365. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  366. note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
  367. t std::basic_ifstream<char>&'
  368. In file included from rts/general/Terrain.h:4:0,
  369. from rts/general/Terrain.cpp:1:
  370. rts/Init.h:71:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  371. for (auto const& x : valueMap)
  372. ^
  373. rts/Init.h:71:24: error: range-based 'for' loops are not allowed in C++98 mode
  374. for (auto const& x : valueMap)
  375. ^
  376. rts/Init.h:73:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
  377. valueMap[x.first] = evaluate(split(x.second, ' '));
  378. ^
  379. rts/Init.h:73:41: error: request for member 'second' in 'x', which is of non-class type 'const int'
  380. valueMap[x.first] = evaluate(split(x.second, ' '));
  381. ^
  382. rts/Init.h: In member function 'void Init::loadFile(std::string)':
  383. rts/Init.h:81:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
  384. (std::string&)'
  385. ifstream ini(iniPath);
  386. ^
  387. rts/Init.h:81:23: note: candidates are:
  388. In file included from rts/Init.h:29:0,
  389. from rts/general/Terrain.h:4,
  390. from rts/general/Terrain.cpp:1:
  391. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  392. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
  393. h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
  394. basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
  395. ^
  396. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  397. ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
  398. char*'
  399. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  400. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
  401. _traits<char>]
  402. basic_ifstream() : __istream_type(), _M_filebuf()
  403. ^
  404. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  405. ote: candidate expects 0 arguments, 1 provided
  406. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  407. note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
  408. class basic_ifstream : public basic_istream<_CharT, _Traits>
  409. ^
  410. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  411. note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
  412. t std::basic_ifstream<char>&'
  413. In file included from rts/general/Terrain.h:4:0,
  414. from rts/general/Terrain.cpp:1:
  415. rts/Init.h:103:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  416. for (auto const& x : valueMap)
  417. ^
  418. rts/Init.h:103:24: error: range-based 'for' loops are not allowed in C++98 mode
  419. for (auto const& x : valueMap)
  420. ^
  421. rts/Init.h:105:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
  422. valueMap[x.first] = evaluate(split(x.second, ' '));
  423. ^
  424. rts/Init.h:105:41: error: request for member 'second' in 'x', which is of non-class type 'const int
  425.  
  426. valueMap[x.first] = evaluate(split(x.second, ' '));
  427. ^
  428. rts/Init.h: In member function 'std::string Init::evaluate(std::vector<std::basic_string<char> >)':
  429. rts/Init.h:112:21: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  430. re]
  431. for (int i = 1; i < arguments.size(); ++i)
  432. ^
  433. rts/Init.h: In member function 'Rect Init::getRect(const string&) const':
  434. rts/Init.h:144:19: error: 'stof' is not a member of 'std'
  435. float top = std::stof(arguments[1]);
  436. ^
  437. rts/Init.h:145:20: error: 'stof' is not a member of 'std'
  438. float left = std::stof(arguments[2]);
  439. ^
  440. rts/Init.h:146:20: error: 'stof' is not a member of 'std'
  441. float width = std::stof(arguments[3]);
  442. ^
  443. rts/Init.h:147:21: error: 'stof' is not a member of 'std'
  444. float height = std::stof(arguments[4]);
  445. ^
  446. rts/Init.h: In member function 'sf::Color Init::getColor(const string&) const':
  447. rts/Init.h:175:17: error: 'stof' is not a member of 'std'
  448. float r = std::stof(arguments[1]);
  449. ^
  450. rts/Init.h:176:17: error: 'stof' is not a member of 'std'
  451. float g = std::stof(arguments[2]);
  452. ^
  453. rts/Init.h:177:18: error: 'stof' is not a member of 'std'
  454. float b = std::stof(arguments[3]);
  455. ^
  456. rts/Init.h:178:18: error: 'stof' is not a member of 'std'
  457. float a = std::stof(arguments[4]);
  458. ^
  459. rts/Init.h: In member function 'Function Init::getFunction(const string&) const':
  460. rts/Init.h:206:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  461. re]
  462. for (int i = 1; i < args.size(); ++i)
  463. ^
  464. rts/Init.h:218:55: error: 'stoi' is not a member of 'std'
  465. FunctionType type = static_cast<FunctionType>(std::stoi(get(arguments, "type")));
  466. ^
  467. rts/Init.h:219:26: error: 'stoi' is not a member of 'std'
  468. bool global = std::stoi(get(arguments, "global"));
  469. ^
  470. rts/Init.h:220:33: error: 'stoi' is not a member of 'std'
  471. bool ignoreMousePosition = std::stoi(get(arguments, "ignoreMousePosition"));
  472. ^
  473. rts/Init.h:221:29: error: 'stoi' is not a member of 'std'
  474. bool useDoubleTap = std::stoi(get(arguments, "useDoubleTap"));
  475. ^
  476. rts/Init.h: In member function 'f2 Init::getf2(const string&) const':
  477. rts/Init.h:247:11: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
  478. 1
  479. return {0, 0};
  480. ^
  481. rts/Init.h:253:14: error: 'stof' is not a member of 'std'
  482. float x = std::stof(arguments[1]);
  483. ^
  484. rts/Init.h:254:14: error: 'stof' is not a member of 'std'
  485. float y = std::stof(arguments[2]);
  486. ^
  487. rts/Init.h:261:10: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
  488. 1
  489. return {0, 0};
  490. ^
  491. rts/Init.h: In member function 'Animation Init::getAnimation(const string&) const':
  492. rts/Init.h:276:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  493. re]
  494. for (int i = 1; i < args.size(); ++i)
  495. ^
  496. rts/Init.h:288:26: error: 'stof' is not a member of 'std'
  497. float rectWidth = std::stof(get(arguments, "rectWidth"));
  498. ^
  499. rts/Init.h:289:26: error: 'stof' is not a member of 'std'
  500. float rectHeight = std::stof(get(arguments, "rectHeight"));
  501. ^
  502. rts/Init.h:290:27: error: 'stof' is not a member of 'std'
  503. float duration = std::stof(get(arguments, "duration"));
  504. ^
  505. rts/Init.h:291:26: error: 'stof' is not a member of 'std'
  506. f2 textureDimensions(std::stof(get(arguments, "columns")),
  507. ^
  508. rts/Init.h:292:16: error: 'stof' is not a member of 'std'
  509. std::stof(get(arguments, "rows")));
  510. ^
  511. rts/Init.h:293:24: error: 'stoi' is not a member of 'std'
  512. bool loops = std::stoi(get(arguments, "loops"));
  513. ^
  514. rts/Init.h: In member function 'Projectile Init::getProjectile(const string&) const':
  515. rts/Init.h:323:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  516. re]
  517. for (int i = 1; i < args.size(); ++i)
  518. ^
  519. rts/Init.h:335:21: error: 'stof' is not a member of 'std'
  520. float width = std::stof(get(arguments, "width"));
  521. ^
  522. rts/Init.h:336:22: error: 'stof' is not a member of 'std'
  523. float height = std::stof(get(arguments, "height"));
  524. ^
  525. rts/Init.h:337:22: error: 'stof' is not a member of 'std'
  526. float velocity = std::stof(get(arguments, "velocity"));
  527. ^
  528. rts/Init.h:338:21: error: 'stof' is not a member of 'std'
  529. float damage = std::stof(get(arguments, "damage"));
  530. ^
  531. rts/Init.h: In member function 'Ability Init::getAbility(const string&) const':
  532. rts/Init.h:370:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  533. re]
  534. for (int i = 1; i < args.size(); ++i)
  535. ^
  536. rts/Init.h:384:33: error: 'stoi' is not a member of 'std'
  537. bool firstTargetIsUnit = std::stoi(get(arguments, "firstTargetIsUnit"));
  538. ^
  539. rts/Init.h:385:34: error: 'stoi' is not a member of 'std'
  540. bool secondTargetIsUnit = std::stoi(get(arguments, "secondTargetIsUnit"));
  541. ^
  542. rts/Init.h:386:27: error: 'stof' is not a member of 'std'
  543. float cost = std::stof(get(arguments, "cost"));
  544. ^
  545. rts/Init.h:387:28: error: 'stof' is not a member of 'std'
  546. float range = std::stof(get(arguments, "range"));
  547. ^
  548. rts/Init.h:388:29: error: 'stof' is not a member of 'std'
  549. float cooldown = std::stof(get(arguments, "cooldown"));
  550. ^
  551. rts/Init.h:389:28: error: 'stof' is not a member of 'std'
  552. float radius = std::stof(get(arguments, "radius"));
  553. ^
  554. rts/Init.h:390:29: error: 'stoi' is not a member of 'std'
  555. bool targeted = std::stoi(get(arguments, "targeted"));
  556. ^
  557. rts/Init.h:391:29: error: 'stof' is not a member of 'std'
  558. float velocity = std::stof(get(arguments, "velocity"));
  559. ^
  560. rts/Init.h:392:28: error: 'stof' is not a member of 'std'
  561. float damage = std::stof(get(arguments, "damage"));
  562. ^
  563. rts/Init.h:393:29: error: 'stof' is not a member of 'std'
  564. float duration = std::stof(get(arguments, "duration"));
  565. ^
  566. rts/Init.h:395:28: error: 'stoi' is not a member of 'std'
  567. bool hitsAir = std::stoi(get(arguments, "hitsAir"));
  568. ^
  569. rts/Init.h:396:30: error: 'stoi' is not a member of 'std'
  570. bool hitsGround = std::stoi(get(arguments, "hitsGround"));
  571. ^
  572. rts/Init.h:397:28: error: 'stoi' is not a member of 'std'
  573. bool active = std::stoi(get(arguments, "active"));
  574. ^
  575. rts/Init.h:398:28: error: 'stoi' is not a member of 'std'
  576. bool applied = std::stoi(get(arguments, "applied"));
  577. ^
  578. rts/Init.h:399:30: error: 'stoi' is not a member of 'std'
  579. bool targetEnemy = std::stoi(get(arguments, "targetEnemy"));
  580. ^
  581. rts/Init.h:400:32: error: 'stoi' is not a member of 'std'
  582. bool targetFriendly = std::stoi(get(arguments, "targetFriendly"));
  583. ^
  584. rts/Init.h:401:29: error: 'stoi' is not a member of 'std'
  585. bool hitEnemy = std::stoi(get(arguments, "hitEnemy"));
  586. ^
  587. rts/Init.h:402:30: error: 'stoi' is not a member of 'std'
  588. bool hitFriendly = std::stoi(get(arguments, "hitFriendly"));
  589. ^
  590. rts/Init.h:403:29: error: 'stoi' is not a member of 'std'
  591. bool autoCast = std::stoi(get(arguments, "autoCast"));
  592. ^
  593. rts/Init.h:405:29: error: 'stoi' is not a member of 'std'
  594. bool piercing = std::stoi(get(arguments, "piercing"));
  595. ^
  596. rts/Init.h:406:29: error: 'stoi' is not a member of 'std'
  597. bool collision = std::stoi(get(arguments, "collision"));
  598. ^
  599. rts/Init.h:407:31: error: 'stoi' is not a member of 'std'
  600. bool makesBuilding = std::stoi(get(arguments, "makesBuilding"));
  601. ^
  602. rts/Init.h:408:29: error: 'stoi' is not a member of 'std'
  603. bool makesUnit = std::stoi(get(arguments, "makesUnit"));
  604. ^
  605. rts/Init.h:409:31: error: 'stoi' is not a member of 'std'
  606. bool isProjectile = std::stoi(get(arguments, "isProjectile"));
  607. ^
  608. rts/Init.h:410:30: error: 'stoi' is not a member of 'std'
  609. bool isResearch = std::stoi(get(arguments, "isResearch"));
  610. ^
  611. rts/Init.h:411:29: error: 'stoi' is not a member of 'std'
  612. bool useOnce = std::stoi(get(arguments, "useOnce"));
  613. ^
  614. rts/Init.h:412:34: error: 'stoi' is not a member of 'std'
  615. bool useForAllUnitTypes = std::stoi(get(arguments, "useForAllUnitTypes"));
  616. ^
  617. rts/Init.h:413:53: error: 'stoi' is not a member of 'std'
  618. Research research = static_cast<Research>(std::stoi(get(arguments, "research")));
  619. ^
  620. rts/Init.h:414:57: error: 'stoi' is not a member of 'std'
  621. OrderType abilityEnum = static_cast<OrderType>(std::stoi(get(arguments, "abilityEnum")));
  622. ^
  623. rts/Init.h:420:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  624. re]
  625. for (int i = 0; i < typesString.size(); ++i)
  626. ^
  627. rts/Init.h:422:51: error: 'stoi' is not a member of 'std'
  628. effects.push_back(static_cast<AbilityEffect>(std::stoi(typesString[i])));
  629. ^
  630. In file included from rts/general/Terrain.h:4:0,
  631. from rts/general/Terrain.cpp:1:
  632. rts/Init.h: In member function 'std::vector<Ability> Init::getAbilities() const':
  633. rts/Init.h:448:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  634. for (auto const& x : valueMap)
  635. ^
  636. rts/Init.h:448:24: error: range-based 'for' loops are not allowed in C++98 mode
  637. for (auto const& x : valueMap)
  638. ^
  639. rts/Init.h:450:46: error: request for member 'first' in 'x', which is of non-class type 'const int'
  640. vector<string> args = split(valueMap.at(x.first));
  641. ^
  642. rts/Init.h:453:38: error: request for member 'first' in 'x', which is of non-class type 'const int'
  643. abilities.push_back(getAbility(x.first));
  644. ^
  645. rts/Init.h: In member function 'Unit Init::getUnit(const string&) const':
  646. rts/Init.h:471:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  647. re]
  648. for (int i = 1; i < args.size(); ++i)
  649. ^
  650. rts/Init.h:483:26: error: 'stof' is not a member of 'std'
  651. float RectWidth = std::stof(get(arguments, "RectWidth"));
  652. ^
  653. rts/Init.h:484:26: error: 'stof' is not a member of 'std'
  654. float RectHeight = std::stof(get(arguments, "RectHeight"));
  655. ^
  656. rts/Init.h:489:20: error: 'stof' is not a member of 'std'
  657. float radius = std::stof(get(arguments, "radius"));
  658. ^
  659. rts/Init.h:496:26: error: 'stof' is not a member of 'std'
  660. float health = std::stof(get(arguments, "health"));
  661. ^
  662. rts/Init.h:497:28: error: 'stof' is not a member of 'std'
  663. float attackPoint = std::stof(get(arguments, "attackPoint"));
  664. ^
  665. rts/Init.h:498:28: error: 'stof' is not a member of 'std'
  666. float attackDelay = std::stof(get(arguments, "attackDelay"));
  667. ^
  668. rts/Init.h:499:25: error: 'stof' is not a member of 'std'
  669. float armor = std::stof(get(arguments, "armor"));
  670. ^
  671. rts/Init.h:500:29: error: 'stof' is not a member of 'std'
  672. float movementSpeed = std::stof(get(arguments, "movementSpeed"));
  673. ^
  674. rts/Init.h:501:25: error: 'stof' is not a member of 'std'
  675. float range = std::stof(get(arguments, "range"));
  676. ^
  677. rts/Init.h:502:28: error: 'stof' is not a member of 'std'
  678. float sightRange = std::stof(get(arguments, "sightRange"));
  679. ^
  680. rts/Init.h:503:26: error: 'stof' is not a member of 'std'
  681. float supply = std::stof(get(arguments, "supply"));
  682. ^
  683. rts/Init.h:504:27: error: 'stof' is not a member of 'std'
  684. float buildTime = std::stof(get(arguments, "buildTime"));
  685. ^
  686. rts/Init.h:505:28: error: 'stof' is not a member of 'std'
  687. float barrelLength = std::stof(get(arguments, "barrelLength"));
  688. ^
  689. rts/Init.h:506:31: error: 'stof' is not a member of 'std'
  690. float resourceCapacity = std::stof(get(arguments, "resourceCapacity"));
  691. ^
  692. rts/Init.h:507:27: error: 'stof' is not a member of 'std'
  693. float maxEnergy = std::stof(get(arguments, "maxEnergy"));
  694. ^
  695. rts/Init.h:508:26: error: 'stof' is not a member of 'std'
  696. float energy = std::stof(get(arguments, "energy"));
  697. ^
  698. rts/Init.h:509:27: error: 'stof' is not a member of 'std'
  699. float maxShield = std::stof(get(arguments, "maxShield"));
  700. ^
  701. rts/Init.h:510:30: error: 'stof' is not a member of 'std'
  702. float gatherDuration = std::stof(get(arguments, "gatherDuration"));
  703. ^
  704. rts/Init.h:511:28: error: 'stof' is not a member of 'std'
  705. float vertOffset = std::stof(get(arguments, "vertOffset"));
  706. ^
  707. rts/Init.h:512:27: error: 'stof' is not a member of 'std'
  708. float horOffset = std::stof(get(arguments, "horOffset"));
  709. ^
  710. rts/Init.h:514:26: error: 'stoi' is not a member of 'std'
  711. bool canAttack = std::stoi(get(arguments, "canAttack"));
  712. ^
  713. rts/Init.h:515:27: error: 'stoi' is not a member of 'std'
  714. bool canBeMoved = std::stoi(get(arguments, "canBeMoved"));
  715. ^
  716. rts/Init.h:516:26: error: 'stoi' is not a member of 'std'
  717. bool canRotate = std::stoi(get(arguments, "canRotate"));
  718. ^
  719. rts/Init.h:517:25: error: 'stoi' is not a member of 'std'
  720. bool flying = std::stoi(get(arguments, "flying"));
  721. ^
  722. rts/Init.h:518:25: error: 'stoi' is not a member of 'std'
  723. bool hasHead = std::stoi(get(arguments, "hasHead"));
  724. ^
  725. rts/Init.h:519:30: error: 'stoi' is not a member of 'std'
  726. bool returnsResources = std::stoi(get(arguments, "returnsResources"));
  727. ^
  728. rts/Init.h:520:26: error: 'stoi' is not a member of 'std'
  729. bool animated = std::stoi(get(arguments, "animated"));
  730. ^
  731. rts/Init.h:521:27: error: 'stoi' is not a member of 'std'
  732. bool isBuilding = std::stoi(get(arguments, "isBuilding"));
  733. ^
  734. rts/Init.h:522:27: error: 'stoi' is not a member of 'std'
  735. bool noCollision = std::stoi(get(arguments, "noCollision"));
  736. ^
  737. rts/Init.h:523:29: error: 'stoi' is not a member of 'std'
  738. int workersRequired = std::stoi(get(arguments, "workersRequired"));
  739. ^
  740. rts/Init.h:524:46: error: in C++98 'offset' must be initialized by constructor, not by '{...}'
  741. f2 offset = {horOffset, vertOffset};
  742. ^
  743. rts/Init.h:530:51: error: 'stoi' is not a member of 'std'
  744. OrderType projectile = static_cast<OrderType>(std::stoi(get(arguments, "projectile")));
  745. ^
  746. rts/Init.h:538:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  747. re]
  748. for (int i = 0; i < costsstring.size(); ++i)
  749. ^
  750. rts/Init.h:540:22: error: 'stof' is not a member of 'std'
  751. costs.push_back(std::stof(costsstring[i]));
  752. ^
  753. rts/Init.h:545:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  754. re]
  755. for (int i = 0; i < typesString.size(); ++i)
  756. ^
  757. rts/Init.h:547:44: error: 'stoi' is not a member of 'std'
  758. types.push_back(static_cast<unitType>(std::stoi(typesString[i])));
  759. ^
  760. rts/Init.h:553:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  761. re]
  762. for (int i = 0; i < abl.size(); ++i)
  763. ^
  764. rts/Init.h:555:49: error: 'stoi' is not a member of 'std'
  765. abilities.push_back(static_cast<OrderType>(std::stoi(abl[i])));
  766. ^
  767. rts/Init.h:561:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  768. re]
  769. for (int i = 0; i < pass.size(); ++i)
  770. ^
  771. rts/Init.h:565:49: error: 'stoi' is not a member of 'std'
  772. passives.push_back(static_cast<OrderType>(std::stoi(pass[i])));
  773. ^
  774. rts/Init.h:577:24: error: 'stof' is not a member of 'std'
  775. unit.aggroRange_ = std::stof(get(arguments, "aggroRange"));
  776. ^
  777. rts/Init.h: In member function 'float Init::getfloat(const string&) const':
  778. rts/Init.h:603:10: error: 'stof' is not a member of 'std'
  779. return std::stof(get(valueMap, key));
  780. ^
  781. rts/Init.h: In member function 'Hotkey Init::getHotkey(const string&) const':
  782. rts/Init.h:618:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  783. re]
  784. for (int i = 1; i < args.size(); ++i)
  785. ^
  786. rts/Init.h:631:21: error: 'stoi' is not a member of 'std'
  787. bool realtime = std::stoi(get(arguments, "realtime"));
  788. ^
  789. rts/Init.h:635:25: error: 'stoi' is not a member of 'std'
  790. bool control = std::stoi(get(arguments, "control"));
  791. ^
  792. rts/Init.h:636:25: error: 'stoi' is not a member of 'std'
  793. bool shift = std::stoi(get(arguments, "shift"));
  794. ^
  795. rts/Init.h:637:24: error: 'stoi' is not a member of 'std'
  796. bool alt = std::stoi(get(arguments, "alt"));
  797. ^
  798. rts/Init.h:638:25: error: 'stoi' is not a member of 'std'
  799. bool super = std::stoi(get(arguments, "super"));
  800. ^
  801. rts/Init.h:639:26: error: 'stoi' is not a member of 'std'
  802. bool isButton = std::stoi(get(arguments, "isButton"));
  803. ^
  804. rts/Init.h:640:29: error: 'stoi' is not a member of 'std'
  805. bool unitCardControl = std::stoi(get(arguments, "unitCardControl"));
  806. ^
  807. rts/Init.h:641:29: error: 'stoi' is not a member of 'std'
  808. bool miniMapControl = std::stoi(get(arguments, "miniMapControl"));
  809. ^
  810. rts/Init.h:642:27: error: 'stoi' is not a member of 'std'
  811. bool doubleTap = std::stoi(get(arguments, "doubleTap"));
  812. ^
  813. rts/Init.h:643:32: error: 'stoi' is not a member of 'std'
  814. bool commandCardControl = std::stoi(get(arguments, "commandCardControl"));
  815. ^
  816. rts/Init.h:645:16: error: 'stoi' is not a member of 'std'
  817. int key = std::stoi(get(arguments, "key"));
  818. ^
  819. rts/Init.h:646:19: error: 'stoi' is not a member of 'std'
  820. int button = std::stoi(get(arguments, "button"));
  821. ^
  822. rts/Init.h:655:26: error: 'stoi' is not a member of 'std'
  823. hotkey.eventType_ = std::stoi(get(arguments, "eventType"));
  824. ^
  825. rts/Init.h:679:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  826. re]
  827. for (int i = 0; i < stringKeys.size(); ++i)
  828. ^
  829. rts/Init.h:681:31: error: 'stoi' is not a member of 'std'
  830. hotkey.keys_.push_back(std::stoi(stringKeys[i]));
  831. ^
  832. rts/Init.h:689:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  833. re]
  834. for (int i = 0; i < stringButtons.size(); ++i)
  835. ^
  836. rts/Init.h:691:34: error: 'stoi' is not a member of 'std'
  837. hotkey.buttons_.push_back(std::stoi(stringButtons[i]));
  838. ^
  839. rts/Init.h: In member function 'sf::Mouse::Button Init::getButton(const string&) const':
  840. rts/Init.h:715:41: error: 'stoi' is not a member of 'std'
  841. return static_cast<sf::Mouse::Button>(std::stoi(get(valueMap, key)));
  842. ^
  843. rts/Init.h: In member function 'sf::Keyboard::Key Init::getKey(const string&) const':
  844. rts/Init.h:720:41: error: 'stoi' is not a member of 'std'
  845. return static_cast<sf::Keyboard::Key>(std::stoi(get(valueMap, key)));
  846. ^
  847. rts/Init.h: In member function 'Tile Init::getTile(const string&) const':
  848. rts/Init.h:735:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  849. re]
  850. for (int i = 1; i < args.size(); ++i)
  851. ^
  852. rts/Init.h:747:22: error: 'stof' is not a member of 'std'
  853. float width = std::stof(get(arguments, "width"));
  854. ^
  855. rts/Init.h:748:22: error: 'stof' is not a member of 'std'
  856. float height = std::stof(get(arguments, "height"));
  857. ^
  858. rts/Init.h:753:25: error: 'stof' is not a member of 'std'
  859. float resources = std::stof(get(arguments, "resources"));
  860. ^
  861. rts/Init.h:755:25: error: 'stoi' is not a member of 'std'
  862. bool passable = std::stoi(get(arguments, "passable"));
  863. ^
  864. rts/Init.h:756:46: error: 'stoi' is not a member of 'std'
  865. TileType type = static_cast<TileType>(std::stoi(get(arguments, "type")));
  866. ^
  867. rts/Init.h:753:11: warning: unused variable 'resources' [-Wunused-variable]
  868. float resources = std::stof(get(arguments, "resources"));
  869. ^
  870. rts/Init.h: In member function 'Wall Init::getWall(const string&) const':
  871. rts/Init.h:788:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  872. re]
  873. for (int i = 1; i < args.size(); ++i)
  874. ^
  875. rts/Init.h:801:27: error: 'stof' is not a member of 'std'
  876. float width = std::stof(get(arguments, "width"));
  877. ^
  878. rts/Init.h:802:27: error: 'stof' is not a member of 'std'
  879. float height = std::stof(get(arguments, "height"));
  880. ^
  881. rts/Init.h:807:50: error: 'stoi' is not a member of 'std'
  882. WallType type = static_cast<WallType>(std::stoi(get(arguments, "type")));
  883. ^
  884. rts/Init.h:813:30: error: 'stoi' is not a member of 'std'
  885. wall.canBeSeenThrough_ = std::stoi(get(arguments, "canBeSeenThrough"));
  886. ^
  887. rts/Init.h:814:31: error: 'stoi' is not a member of 'std'
  888. wall.canBeMovedThrough_ = std::stoi(get(arguments, "canBeMovedThrough"));
  889. ^
  890. rts/Init.h:815:28: error: 'stoi' is not a member of 'std'
  891. wall.canBeDestroyed_ = std::stoi(get(arguments, "canBeDestroyed"));
  892. ^
  893. rts/Init.h:816:37: error: 'stoi' is not a member of 'std'
  894. wall.canBePartiallyDestroyed_ = std::stoi(get(arguments, "canBePartiallyDestroyed"));
  895. ^
  896. rts/Init.h:817:23: error: 'stof' is not a member of 'std'
  897. wall.hitPoints_ = std::stof(get(arguments, "hitPoints"));
  898. ^
  899. rts/Init.h: In member function 'std::vector<Wall*> Init::getWalls(const string&) const':
  900. rts/Init.h:848:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  901. re]
  902. for (int i = 1; i < args.size(); ++i)
  903. ^
  904. rts/Init.h:852:24: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  905. re]
  906. for (int j = 0; j < dataSet.size(); ++j)
  907. ^
  908. rts/Init.h:859:13: error: 'stof' is not a member of 'std'
  909. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  910. texture_));
  911. ^
  912. rts/Init.h:859:33: error: 'stof' is not a member of 'std'
  913. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  914. texture_));
  915. ^
  916. rts/Init.h:859:53: error: 'stof' is not a member of 'std'
  917. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  918. texture_));
  919. ^
  920. rts/Init.h:859:73: error: 'stof' is not a member of 'std'
  921. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  922. texture_));
  923. ^
  924. rts/Init.h: In member function 'Faction Init::getFaction(const string&) const':
  925. rts/Init.h:888:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  926. re]
  927. for (int i = 1; i < args.size(); ++i)
  928. ^
  929. rts/Init.h:900:35: error: 'stoi' is not a member of 'std'
  930. int numberOfResourceTypes = std::stoi(get(arguments, "numberOfResourceTypes"));
  931. ^
  932. rts/Init.h:901:30: error: 'stof' is not a member of 'std'
  933. float maxSupply = std::stof(get(arguments, "maxSupply"));
  934. ^
  935. rts/Init.h:902:32: error: 'stof' is not a member of 'std'
  936. float civilianFavor = std::stof(get(arguments, "civilianFavor"));
  937. ^
  938. rts/Init.h:903:55: error: 'stoi' is not a member of 'std'
  939. FactionType type = static_cast<FactionType>(std::stoi(get(arguments, "type")));
  940. ^
  941. rts/Init.h:912:40: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  942. re]
  943. if (currentResourcesstring.size() > i)
  944. ^
  945. rts/Init.h:914:34: error: 'stof' is not a member of 'std'
  946. currentResources.push_back(std::stof(currentResourcesstring[i]));
  947. ^
  948. rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allUnits() const':
  949. rts/Init.h:947:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  950. for (auto const& element : valueMap)
  951. ^
  952. rts/Init.h:947:30: error: range-based 'for' loops are not allowed in C++98 mode
  953. for (auto const& element : valueMap)
  954. ^
  955. rts/Init.h:949:16: error: request for member 'second' in 'element', which is of non-class type 'con
  956. t int'
  957. if (element.second.compare(0, 4, "Unit") == 0)
  958. ^
  959. rts/Init.h:951:30: error: request for member 'first' in 'element', which is of non-class type 'cons
  960. int'
  961. result.push_back(element.first);
  962. ^
  963. rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allWalls() const':
  964. rts/Init.h:961:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  965. for (auto const& element : valueMap)
  966. ^
  967. rts/Init.h:961:30: error: range-based 'for' loops are not allowed in C++98 mode
  968. for (auto const& element : valueMap)
  969. ^
  970. rts/Init.h:963:16: error: request for member 'second' in 'element', which is of non-class type 'con
  971. t int'
  972. if (element.second.compare(0, 4, "Wall") == 0)
  973. ^
  974. rts/Init.h:965:30: error: request for member 'first' in 'element', which is of non-class type 'cons
  975. int'
  976. result.push_back(element.first);
  977. ^
  978. In file included from rts/general/Terrain.cpp:1:0:
  979. rts/general/Terrain.h: In member function 'int Terrain::findTile(f2)':
  980. rts/general/Terrain.h:17:21: warning: comparison between signed and unsigned integer expressions [-
  981. sign-compare]
  982. for (int i = 0; i < objects_.size(); ++i)
  983. ^
  984. rts/general/Terrain.cpp: In constructor 'Terrain::Terrain(f2, f2, const std::vector<Tile*>&, f2, f2
  985. ':
  986. rts/general/Terrain.cpp:19:21: warning: comparison between signed and unsigned integer expressions
  987. -Wsign-compare]
  988. for (int i = 0; i < objects.size(); ++i)
  989. ^
  990. rts/general/Terrain.cpp: In member function 'std::vector<Tile*> Terrain::getUnpassableTiles()':
  991. rts/general/Terrain.cpp:40:20: warning: comparison between signed and unsigned integer expressions
  992. -Wsign-compare]
  993. for (int i = 0; i < objects_.size(); ++i)
  994. ^
  995. In file included from rts/general/Unit.h:35:0,
  996. from rts/Init.h:38,
  997. from rts/general/Terrain.h:4,
  998. from rts/general/Terrain.cpp:1:
  999. supportClasses/Pathfinding.h: In instantiation of 'void PriorityQueue<T, Number>::put(T, Number) [w
  1000. th T = f2; Number = float]':
  1001. supportClasses/Pathfinding.h:419:24: required from here
  1002. supportClasses/Pathfinding.h:36:5: error: 'class std::priority_queue<std::pair<float, f2>, std::vec
  1003. or<std::pair<float, f2>, std::allocator<std::pair<float, f2> > >, std::greater<std::pair<float, f2>
  1004. > >' has no member named 'emplace'
  1005. elements.emplace(priority, item);
  1006. ^
  1007. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  1008. e/c++/bits/stl_algobase.h:65:0,
  1009. from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  1010. e/c++/vector:60,
  1011. from supportClasses/Rectangle.h:3,
  1012. from rts/general/Object.h:3,
  1013. from rts/general/Tile.h:3,
  1014. from rts/general/Terrain.h:3,
  1015. from rts/general/Terrain.cpp:1:
  1016. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1017. r_base_types.h: In instantiation of 'struct std::iterator_traits<f2>':
  1018. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  1019. h:1262:24: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _
  1020. nputIterator, std::__false_type) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>]'
  1021. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  1022. h:413:55: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const a
  1023. locator_type&) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>; std::vector<_Tp, _
  1024. lloc>::allocator_type = std::allocator<f2>]'
  1025. supportClasses/Pathfinding.h:394:23: required from here
  1026. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1027. r_base_types.h:165:53: error: no type named 'iterator_category' in 'class f2'
  1028. typedef typename _Iterator::iterator_category iterator_category;
  1029. ^
  1030. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1031. r_base_types.h:166:53: error: no type named 'value_type' in 'class f2'
  1032. typedef typename _Iterator::value_type value_type;
  1033. ^
  1034. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1035. r_base_types.h:167:53: error: no type named 'difference_type' in 'class f2'
  1036. typedef typename _Iterator::difference_type difference_type;
  1037. ^
  1038. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1039. r_base_types.h:168:53: error: no type named 'pointer' in 'class f2'
  1040. typedef typename _Iterator::pointer pointer;
  1041. ^
  1042. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1043. r_base_types.h:169:53: error: no type named 'reference' in 'class f2'
  1044. typedef typename _Iterator::reference reference;
  1045. ^
  1046. In file included from rts/general/Terrain.h:4:0,
  1047. from rts/general/Terrain.cpp:1:
  1048. rts/Init.h: In member function 'float Init::getfloat(const string&) const':
  1049. rts/Init.h:604:2: warning: control reaches end of non-void function [-Wreturn-type]
  1050. }
  1051. ^
  1052. In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
  1053. from D:/sfml-source/include/SFML/Window.hpp:32,
  1054. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  1055. from supportClasses/f2.h:4,
  1056. from supportClasses/Rectangle.h:9,
  1057. from rts/general/Object.h:3,
  1058. from rts/general/Tile.h:3,
  1059. from rts/general/Tile.cpp:1:
  1060. D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
  1061. Wlong-long]
  1062. typedef signed long long Int64;
  1063. ^
  1064. D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
  1065. Wlong-long]
  1066. typedef unsigned long long Uint64;
  1067. ^
  1068. In file included from supportClasses/Rectangle.h:9:0,
  1069. from rts/general/Object.h:3,
  1070. from rts/general/Tile.h:3,
  1071. from rts/general/Tile.cpp:1:
  1072. supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
  1073. supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
  1074. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  1075. ^
  1076. supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
  1077. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  1078. ^
  1079. supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
  1080. ng, char)':
  1081. supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
  1082. seglist.push_back(std::stof(segment));
  1083. ^
  1084. supportClasses/f2.h: At global scope:
  1085. supportClasses/f2.h:432:9: error: 'hash' is not a class template
  1086. struct hash<f2>
  1087. ^
  1088. supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
  1089. {
  1090. ^
  1091. supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
  1092. supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
  1093. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  1094. ^
  1095. supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
  1096. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  1097. ^
  1098. supportClasses/f2.h:442:13: error: 'std::hash' is not a template
  1099. return hash<string>()(str);
  1100. ^
  1101. supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
  1102. return hash<string>()(str);
  1103. ^
  1104. supportClasses/f2.h:432:9: note: candidate is:
  1105. struct hash<f2>
  1106. ^
  1107. supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
  1108. std::size_t operator()(const f2& k) const
  1109. ^
  1110. supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
  1111. asic_string<char>}' to 'const f2&'
  1112. In file included from supportClasses/Rect.h:17:0,
  1113. from supportClasses/Rectangle.h:11,
  1114. from rts/general/Object.h:3,
  1115. from rts/general/Tile.h:3,
  1116. from rts/general/Tile.cpp:1:
  1117. supportClasses/Shape.h: At global scope:
  1118. supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
  1119. c++11 or -std=gnu++11
  1120. float radius_ = 0;
  1121. ^
  1122. In file included from supportClasses/Rect.h:17:0,
  1123. from supportClasses/Rectangle.h:11,
  1124. from rts/general/Object.h:3,
  1125. from rts/general/Tile.h:3,
  1126. from rts/general/Tile.cpp:1:
  1127. supportClasses/Shape.h: In constructor 'Shape::Shape()':
  1128. supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
  1129. d=gnu++11
  1130. Shape() : Shape(4) {}
  1131. ^
  1132. In file included from rts/general/Object.h:3:0,
  1133. from rts/general/Tile.h:3,
  1134. from rts/general/Tile.cpp:1:
  1135. supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
  1136. supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
  1137. in the copy constructor [-Wextra]
  1138. Rectangle(const Rectangle& rect) {*this = rect;}
  1139. ^
  1140. supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
  1141. supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
  1142. 1 or -std=gnu++11
  1143. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  1144. ^
  1145. supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
  1146. ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
  1147. to 'std::vector<f2>'
  1148. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  1149. ^
  1150. In file included from particleEffects/Emitter.h:3:0,
  1151. from particleEffects/ParticleEffects.h:3,
  1152. from rts/general/Object.h:4,
  1153. from rts/general/Tile.h:3,
  1154. from rts/general/Tile.cpp:1:
  1155. particleEffects/Particle.h: At global scope:
  1156. particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
  1157. std=c++11 or -std=gnu++11
  1158. float timer_ = 0;
  1159. ^
  1160. In file included from particleEffects/ParticleEffects.h:3:0,
  1161. from rts/general/Object.h:4,
  1162. from rts/general/Tile.h:3,
  1163. from rts/general/Tile.cpp:1:
  1164. particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
  1165. std=c++11 or -std=gnu++11
  1166. double redDiff_ = 0;
  1167. ^
  1168. particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
  1169. std=c++11 or -std=gnu++11
  1170. double blueDiff_ = 0;
  1171. ^
  1172. particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
  1173. std=c++11 or -std=gnu++11
  1174. double greenDiff_ = 0;
  1175. ^
  1176. particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
  1177. std=c++11 or -std=gnu++11
  1178. double alphaDiff_ = 0;
  1179. ^
  1180. particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
  1181. std=c++11 or -std=gnu++11
  1182. double fade_ = 0;
  1183. ^
  1184. particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
  1185. std=c++11 or -std=gnu++11
  1186. f2 speed_ = {0, 0};
  1187. ^
  1188. particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
  1189. std=c++11 or -std=gnu++11
  1190. float emissionTimer_ = 0;
  1191. ^
  1192. particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
  1193. std=c++11 or -std=gnu++11
  1194. float lifeTimer_ = 0;
  1195. ^
  1196. particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
  1197. std=c++11 or -std=gnu++11
  1198. vector<Emitter*> emitters_ = vector<Emitter*>();
  1199. ^
  1200. particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
  1201. or -std=gnu++11
  1202. f2 speed_ = {0, 0};
  1203. ^
  1204. In file included from rts/general/Tile.h:3:0,
  1205. from rts/general/Tile.cpp:1:
  1206. rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
  1207. rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
  1208. the copy constructor [-Wextra]
  1209. Object(const Object& object) {*this = object;}
  1210. ^
  1211. In file included from rts/general/Tile.cpp:1:0:
  1212. rts/general/Tile.h: At global scope:
  1213. rts/general/Tile.h:32:19: warning: non-static data member initializers only available with -std=c++
  1214. 1 or -std=gnu++11
  1215. int beingUsed_ = 0;
  1216. ^
  1217. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  1218. e/c++/unordered_map:35:0,
  1219. from supportClasses/Pathfinding.h:5,
  1220. from rts/general/Unit.h:35,
  1221. from rts/general/Unit.cpp:1:
  1222. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/c++0x_warn
  1223. ng.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 stand
  1224. rd. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11
  1225. compiler options.
  1226. #error This file requires compiler and library support for the \
  1227. ^
  1228. In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
  1229. from D:/sfml-source/include/SFML/Window.hpp:32,
  1230. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  1231. from supportClasses/f2.h:4,
  1232. from supportClasses/Rectangle.h:9,
  1233. from rts/general/Object.h:3,
  1234. from rts/general/Unit.h:27,
  1235. from rts/general/Unit.cpp:1:
  1236. D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
  1237. Wlong-long]
  1238. typedef signed long long Int64;
  1239. ^
  1240. D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
  1241. Wlong-long]
  1242. typedef unsigned long long Uint64;
  1243. ^
  1244. In file included from supportClasses/Rectangle.h:9:0,
  1245. from rts/general/Object.h:3,
  1246. from rts/general/Unit.h:27,
  1247. from rts/general/Unit.cpp:1:
  1248. supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
  1249. supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
  1250. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  1251. ^
  1252. supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
  1253. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  1254. ^
  1255. supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
  1256. ng, char)':
  1257. supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
  1258. seglist.push_back(std::stof(segment));
  1259. ^
  1260. supportClasses/f2.h: At global scope:
  1261. supportClasses/f2.h:432:9: error: 'hash' is not a class template
  1262. struct hash<f2>
  1263. ^
  1264. supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
  1265. {
  1266. ^
  1267. supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
  1268. supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
  1269. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  1270. ^
  1271. supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
  1272. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  1273. ^
  1274. supportClasses/f2.h:442:13: error: 'std::hash' is not a template
  1275. return hash<string>()(str);
  1276. ^
  1277. supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
  1278. return hash<string>()(str);
  1279. ^
  1280. supportClasses/f2.h:432:9: note: candidate is:
  1281. struct hash<f2>
  1282. ^
  1283. supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
  1284. std::size_t operator()(const f2& k) const
  1285. ^
  1286. supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
  1287. asic_string<char>}' to 'const f2&'
  1288. In file included from supportClasses/Rect.h:17:0,
  1289. from supportClasses/Rectangle.h:11,
  1290. from rts/general/Object.h:3,
  1291. from rts/general/Unit.h:27,
  1292. from rts/general/Unit.cpp:1:
  1293. supportClasses/Shape.h: At global scope:
  1294. supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
  1295. c++11 or -std=gnu++11
  1296. float radius_ = 0;
  1297. ^
  1298. In file included from supportClasses/Rect.h:17:0,
  1299. from supportClasses/Rectangle.h:11,
  1300. from rts/general/Object.h:3,
  1301. from rts/general/Unit.h:27,
  1302. from rts/general/Unit.cpp:1:
  1303. supportClasses/Shape.h: In constructor 'Shape::Shape()':
  1304. supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
  1305. d=gnu++11
  1306. Shape() : Shape(4) {}
  1307. ^
  1308. In file included from rts/general/Object.h:3:0,
  1309. from rts/general/Unit.h:27,
  1310. from rts/general/Unit.cpp:1:
  1311. supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
  1312. supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
  1313. in the copy constructor [-Wextra]
  1314. Rectangle(const Rectangle& rect) {*this = rect;}
  1315. ^
  1316. supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
  1317. supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
  1318. 1 or -std=gnu++11
  1319. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  1320. ^
  1321. supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
  1322. ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
  1323. to 'std::vector<f2>'
  1324. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  1325. ^
  1326. In file included from particleEffects/Emitter.h:3:0,
  1327. from particleEffects/ParticleEffects.h:3,
  1328. from rts/general/Object.h:4,
  1329. from rts/general/Unit.h:27,
  1330. from rts/general/Unit.cpp:1:
  1331. particleEffects/Particle.h: At global scope:
  1332. particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
  1333. std=c++11 or -std=gnu++11
  1334. float timer_ = 0;
  1335. ^
  1336. In file included from particleEffects/ParticleEffects.h:3:0,
  1337. from rts/general/Object.h:4,
  1338. from rts/general/Unit.h:27,
  1339. from rts/general/Unit.cpp:1:
  1340. particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
  1341. std=c++11 or -std=gnu++11
  1342. double redDiff_ = 0;
  1343. ^
  1344. particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
  1345. std=c++11 or -std=gnu++11
  1346. double blueDiff_ = 0;
  1347. ^
  1348. particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
  1349. std=c++11 or -std=gnu++11
  1350. double greenDiff_ = 0;
  1351. ^
  1352. particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
  1353. std=c++11 or -std=gnu++11
  1354. double alphaDiff_ = 0;
  1355. ^
  1356. particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
  1357. std=c++11 or -std=gnu++11
  1358. double fade_ = 0;
  1359. ^
  1360. particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
  1361. std=c++11 or -std=gnu++11
  1362. f2 speed_ = {0, 0};
  1363. ^
  1364. particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
  1365. std=c++11 or -std=gnu++11
  1366. float emissionTimer_ = 0;
  1367. ^
  1368. particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
  1369. std=c++11 or -std=gnu++11
  1370. float lifeTimer_ = 0;
  1371. ^
  1372. particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
  1373. std=c++11 or -std=gnu++11
  1374. vector<Emitter*> emitters_ = vector<Emitter*>();
  1375. ^
  1376. particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
  1377. or -std=gnu++11
  1378. f2 speed_ = {0, 0};
  1379. ^
  1380. In file included from rts/general/Unit.h:27:0,
  1381. from rts/general/Unit.cpp:1:
  1382. rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
  1383. rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
  1384. the copy constructor [-Wextra]
  1385. Object(const Object& object) {*this = object;}
  1386. ^
  1387. In file included from rts/general/Unit.h:29:0,
  1388. from rts/general/Unit.cpp:1:
  1389. rts/general/OrderQueu.h: At global scope:
  1390. rts/general/OrderQueu.h:46:35: warning: non-static data member initializers only available with -st
  1391. =c++11 or -std=gnu++11
  1392. deque<Order> queu = deque<Order>(0);
  1393. ^
  1394. rts/general/OrderQueu.h:47:43: warning: non-static data member initializers only available with -st
  1395. =c++11 or -std=gnu++11
  1396. Order noOrder = Order(f2(0, 0), NO_COMMAND);
  1397. ^
  1398. In file included from rts/general/Unit.h:35:0,
  1399. from rts/general/Unit.cpp:1:
  1400. supportClasses/Pathfinding.h:16:12: error: 'std::unordered_map' has not been declared
  1401. using std::unordered_map;
  1402. ^
  1403. supportClasses/Pathfinding.h:19:12: error: 'std::make_tuple' has not been declared
  1404. using std::make_tuple;
  1405. ^
  1406. supportClasses/Pathfinding.h:22:12: error: 'std::unordered_set' has not been declared
  1407. using std::unordered_set;
  1408. ^
  1409. supportClasses/Pathfinding.h:24:22: error: 'placeholders' is not a namespace-name
  1410. using namespace std::placeholders;
  1411. ^
  1412. supportClasses/Pathfinding.h:24:34: error: expected namespace-name before ';' token
  1413. using namespace std::placeholders;
  1414. ^
  1415. supportClasses/Pathfinding.h:30:75: error: '>>' should be '> >' within a nested template argument l
  1416. st
  1417. std::priority_queue<PQElement, vector<PQElement>, std::greater<PQElement>> elements;
  1418. ^
  1419. supportClasses/Pathfinding.h:551:36: error: 'unordered_map' has not been declared
  1420. inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
  1421. ^
  1422. supportClasses/Pathfinding.h:551:49: error: expected ',' or '...' before '<' token
  1423. inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
  1424. ^
  1425. In file included from rts/general/Unit.h:35:0,
  1426. from rts/general/Unit.cpp:1:
  1427. supportClasses/Pathfinding.h:740:1: error: 'unordered_map' does not name a type
  1428. unordered_map<f2, Node*> nodes_;
  1429. ^
  1430. In file included from rts/general/Unit.h:35:0,
  1431. from rts/general/Unit.cpp:1:
  1432. supportClasses/Pathfinding.h: In member function 'std::vector<Node*> Pathfinding::neighbors(f2)':
  1433. supportClasses/Pathfinding.h:95:7: error: 'nodes_' was not declared in this scope
  1434. if (nodes_.count(position))
  1435. ^
  1436. supportClasses/Pathfinding.h:99:22: warning: comparison between signed and unsigned integer express
  1437. ons [-Wsign-compare]
  1438. for (int i = 0; i < node->links_.size(); ++i)
  1439. ^
  1440. supportClasses/Pathfinding.h:111:22: warning: comparison between signed and unsigned integer expres
  1441. ions [-Wsign-compare]
  1442. for (int i = 0; i < nodesV_.size(); ++i)
  1443. ^
  1444. supportClasses/Pathfinding.h: In static member function 'static bool Pathfinding::straightPath(f2,
  1445. 2, std::vector<Rect>*)':
  1446. supportClasses/Pathfinding.h:172:23: warning: comparison between signed and unsigned integer expres
  1447. ions [-Wsign-compare]
  1448. for (int i = 0; i < obstacles->size(); ++i)
  1449. ^
  1450. supportClasses/Pathfinding.h:188:23: warning: comparison between signed and unsigned integer expres
  1451. ions [-Wsign-compare]
  1452. for (int i = 0; i < obstacles->size(); ++i)
  1453. ^
  1454. supportClasses/Pathfinding.h:207:23: warning: comparison between signed and unsigned integer expres
  1455. ions [-Wsign-compare]
  1456. for (int i = 0; i < obstacles->size(); ++i)
  1457. ^
  1458. supportClasses/Pathfinding.h:223:23: warning: comparison between signed and unsigned integer expres
  1459. ions [-Wsign-compare]
  1460. for (int i = 0; i < obstacles->size(); ++i)
  1461. ^
  1462. supportClasses/Pathfinding.h: In member function 'bool Pathfinding::straightPath(f2, f2, const f2&)
  1463. :
  1464. supportClasses/Pathfinding.h:263:23: warning: comparison between signed and unsigned integer expres
  1465. ions [-Wsign-compare]
  1466. for (int i = 0; i < obstacles_.size(); ++i)
  1467. ^
  1468. supportClasses/Pathfinding.h:296:23: warning: comparison between signed and unsigned integer expres
  1469. ions [-Wsign-compare]
  1470. for (int i = 0; i < obstacles_.size(); ++i)
  1471. ^
  1472. supportClasses/Pathfinding.h:332:23: warning: comparison between signed and unsigned integer expres
  1473. ions [-Wsign-compare]
  1474. for (int i = 0; i < obstacles_.size(); ++i)
  1475. ^
  1476. supportClasses/Pathfinding.h:364:23: warning: comparison between signed and unsigned integer expres
  1477. ions [-Wsign-compare]
  1478. for (int i = 0; i < obstacles_.size(); ++i)
  1479. ^
  1480. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
  1481. , f2)':
  1482. supportClasses/Pathfinding.h:394:11: warning: extended initializer lists only available with -std=c
  1483. +11 or -std=gnu++11
  1484. return {start, goal};
  1485. ^
  1486. supportClasses/Pathfinding.h:416:3: error: 'unordered_map' was not declared in this scope
  1487. unordered_map<f2, float> costSoFar;
  1488. ^
  1489. supportClasses/Pathfinding.h:416:19: error: expected primary-expression before ',' token
  1490. unordered_map<f2, float> costSoFar;
  1491. ^
  1492. supportClasses/Pathfinding.h:416:21: error: expected primary-expression before 'float'
  1493. unordered_map<f2, float> costSoFar;
  1494. ^
  1495. supportClasses/Pathfinding.h:417:19: error: expected primary-expression before ',' token
  1496. unordered_map<f2, f2> cameFrom;
  1497. ^
  1498. supportClasses/Pathfinding.h:417:23: error: expected primary-expression before '>' token
  1499. unordered_map<f2, f2> cameFrom;
  1500. ^
  1501. supportClasses/Pathfinding.h:417:25: error: 'cameFrom' was not declared in this scope
  1502. unordered_map<f2, f2> cameFrom;
  1503. ^
  1504. supportClasses/Pathfinding.h:422:3: error: 'costSoFar' was not declared in this scope
  1505. costSoFar[start] = 0;
  1506. ^
  1507. supportClasses/Pathfinding.h:438:8: error: 'nodes_' was not declared in this scope
  1508. if (nodes_.count(current))
  1509. ^
  1510. supportClasses/Pathfinding.h:446:22: warning: comparison between signed and unsigned integer expres
  1511. ions [-Wsign-compare]
  1512. for (int i = 0; i < nb.size(); ++i)
  1513. ^
  1514. supportClasses/Pathfinding.h:464:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc
  1515. +0x-compat]
  1516. for(auto i : cameFrom)
  1517. ^
  1518. supportClasses/Pathfinding.h:464:12: error: 'i' does not name a type
  1519. for(auto i : cameFrom)
  1520. ^
  1521. supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
  1522. if (start == pos)
  1523. ^
  1524. supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
  1525. supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
  1526. supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
  1527. supportClasses/Pathfinding.h:473:3: error: expected ')' before 'if'
  1528. supportClasses/Pathfinding.h:475:11: warning: extended initializer lists only available with -std=c
  1529. +11 or -std=gnu++11
  1530. return {};
  1531. ^
  1532. supportClasses/Pathfinding.h:461:9: warning: unused variable 'distance' [-Wunused-variable]
  1533. float distance = - 1;
  1534. ^
  1535. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
  1536. , std::vector<Rect>)':
  1537. supportClasses/Pathfinding.h:491:21: warning: comparison between signed and unsigned integer expres
  1538. ions [-Wsign-compare]
  1539. for (int i = 0; i < nodesV_.size(); ++i)
  1540. ^
  1541. supportClasses/Pathfinding.h:493:8: error: 'nodes_' was not declared in this scope
  1542. if (nodes_.count(start) > 0 && straightPath(nodesV_[i]->position_, start))
  1543. ^
  1544. supportClasses/Pathfinding.h:500:3: error: 'unordered_map' was not declared in this scope
  1545. unordered_map<f2, float> costSoFar;
  1546. ^
  1547. supportClasses/Pathfinding.h:500:19: error: expected primary-expression before ',' token
  1548. unordered_map<f2, float> costSoFar;
  1549. ^
  1550. supportClasses/Pathfinding.h:500:21: error: expected primary-expression before 'float'
  1551. unordered_map<f2, float> costSoFar;
  1552. ^
  1553. supportClasses/Pathfinding.h:501:19: error: expected primary-expression before ',' token
  1554. unordered_map<f2, f2> cameFrom;
  1555. ^
  1556. supportClasses/Pathfinding.h:501:23: error: expected primary-expression before '>' token
  1557. unordered_map<f2, f2> cameFrom;
  1558. ^
  1559. supportClasses/Pathfinding.h:501:25: error: 'cameFrom' was not declared in this scope
  1560. unordered_map<f2, f2> cameFrom;
  1561. ^
  1562. supportClasses/Pathfinding.h:506:3: error: 'costSoFar' was not declared in this scope
  1563. costSoFar[start] = 0;
  1564. ^
  1565. supportClasses/Pathfinding.h:516:39: warning: comparison between signed and unsigned integer expres
  1566. ions [-Wsign-compare]
  1567. for (int i = startingNodeCount; i < nodesV_.size(); ++i)
  1568. ^
  1569. supportClasses/Pathfinding.h:525:8: error: 'nodes_' was not declared in this scope
  1570. if (nodes_.count(current))
  1571. ^
  1572. supportClasses/Pathfinding.h:533:22: warning: comparison between signed and unsigned integer expres
  1573. ions [-Wsign-compare]
  1574. for (int i = 0; i < nb.size(); ++i)
  1575. ^
  1576. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::reconstructPath(int)
  1577. :
  1578. supportClasses/Pathfinding.h:555:18: error: 'goal' was not declared in this scope
  1579. path.push_back(goal);
  1580. ^
  1581. supportClasses/Pathfinding.h:558:23: error: 'cameFrom' was not declared in this scope
  1582. for (int i = 0; i < cameFrom.size(); ++i)
  1583. ^
  1584. supportClasses/Pathfinding.h:562:16: error: 'start' was not declared in this scope
  1585. if (next == start)
  1586. ^
  1587. supportClasses/Pathfinding.h: In member function 'Node* Pathfinding::addNode(const f2&)':
  1588. supportClasses/Pathfinding.h:585:21: warning: comparison between signed and unsigned integer expres
  1589. ions [-Wsign-compare]
  1590. for (int i = 0; i < obstacles_.size(); ++i)
  1591. ^
  1592. supportClasses/Pathfinding.h:605:21: warning: comparison between signed and unsigned integer expres
  1593. ions [-Wsign-compare]
  1594. for (int i = 0; i < nodesV_.size(); ++i)
  1595. ^
  1596. supportClasses/Pathfinding.h:676:3: error: 'nodes_' was not declared in this scope
  1597. nodes_[position] = node;
  1598. ^
  1599. supportClasses/Pathfinding.h: In member function 'void Pathfinding::removeNode(Node*)':
  1600. supportClasses/Pathfinding.h:682:21: warning: comparison between signed and unsigned integer expres
  1601. ions [-Wsign-compare]
  1602. for (int i = 0; i < node->links_.size(); ++i)
  1603. ^
  1604. supportClasses/Pathfinding.h:684:22: warning: comparison between signed and unsigned integer expres
  1605. ions [-Wsign-compare]
  1606. for (int j = 0; j < node->links_[i]->links_.size(); ++j)
  1607. ^
  1608. supportClasses/Pathfinding.h:696:3: error: 'nodes_' was not declared in this scope
  1609. nodes_.erase(node->position_);
  1610. ^
  1611. supportClasses/Pathfinding.h: In member function 'void Pathfinding::generateNodes(const std::vector
  1612. Rect>&)':
  1613. supportClasses/Pathfinding.h:703:21: warning: comparison between signed and unsigned integer expres
  1614. ions [-Wsign-compare]
  1615. for (int i = 0; i < obstacles.size(); ++i)
  1616. ^
  1617. In file included from rts/general/Unit.h:35:0,
  1618. from rts/general/Unit.cpp:1:
  1619. supportClasses/Pathfinding.h: In member function 'void Pathfinding::update()':
  1620. supportClasses/Pathfinding.h:718:3: error: 'nodes_' was not declared in this scope
  1621. nodes_.clear();
  1622. ^
  1623. supportClasses/Pathfinding.h: In member function 'bool Pathfinding::checkPath(std::vector<f2>)':
  1624. supportClasses/Pathfinding.h:725:21: warning: comparison between signed and unsigned integer expres
  1625. ions [-Wsign-compare]
  1626. for (int i = 1; i < path.size(); ++i)
  1627. ^
  1628. In file included from rts/general/Unit.h:37:0,
  1629. from rts/general/Unit.cpp:1:
  1630. rts/general/Wall.h: At global scope:
  1631. rts/general/Wall.h:36:25: warning: non-static data member initializers only available with -std=c++
  1632. 1 or -std=gnu++11
  1633. bool canBeShotTrough_ = false;
  1634. ^
  1635. rts/general/Wall.h:39:26: warning: non-static data member initializers only available with -std=c++
  1636. 1 or -std=gnu++11
  1637. f2 unitIndex_ = f2(0, - 1);
  1638. ^
  1639. rts/general/Wall.h:40:17: warning: non-static data member initializers only available with -std=c++
  1640. 1 or -std=gnu++11
  1641. bool enabled_ = true;
  1642. ^
  1643. rts/general/Wall.h: In copy constructor 'Wall::Wall(const Wall&)':
  1644. rts/general/Wall.h:16:2: warning: base class 'class Rectangle' should be explicitly initialized in
  1645. he copy constructor [-Wextra]
  1646. Wall(const Wall& wall) {*this = wall;}
  1647. ^
  1648. In file included from rts/general/Unit.cpp:1:0:
  1649. rts/general/Unit.h: At global scope:
  1650. rts/general/Unit.h:88:26: warning: type qualifiers ignored on function return type [-Wignored-quali
  1651. iers]
  1652. void removeCurrentOrder() {orders_.remove();}
  1653. ^
  1654. rts/general/Unit.h:99:18: warning: non-static data member initializers only available with -std=c++
  1655. 1 or -std=gnu++11
  1656. bool selected_ = false;
  1657. ^
  1658. rts/general/Unit.h:113:16: warning: non-static data member initializers only available with -std=c+
  1659. 11 or -std=gnu++11
  1660. bool pushed_ = false;
  1661. ^
  1662. rts/general/Unit.h:156:31: warning: non-static data member initializers only available with -std=c+
  1663. 11 or -std=gnu++11
  1664. OrderQueu orders_ = OrderQueu();
  1665. ^
  1666. rts/general/Unit.h:170:24: warning: non-static data member initializers only available with -std=c+
  1667. 11 or -std=gnu++11
  1668. int pathfindingStep_ = 0;
  1669. ^
  1670. rts/general/Unit.h:180:32: warning: non-static data member initializers only available with -std=c+
  1671. 11 or -std=gnu++11
  1672. f2 previousTarget_ = f2(- 1, -1);
  1673. ^
  1674. rts/general/Unit.h:181:17: warning: non-static data member initializers only available with -std=c+
  1675. 11 or -std=gnu++11
  1676. bool enabled_ = true;
  1677. ^
  1678. rts/general/Unit.h: In copy constructor 'Unit::Unit(const Unit&)':
  1679. rts/general/Unit.h:74:2: warning: base class 'class Object' should be explicitly initialized in the
  1680. copy constructor [-Wextra]
  1681. Unit(const Unit& unit) {*this = unit;}
  1682. ^
  1683. rts/general/Unit.cpp: At global scope:
  1684. rts/general/Unit.cpp:7:62: warning: unused parameter 'energy' [-Wunused-parameter]
  1685. const bool& canRotate, const float& maxEnergy, const float& energy, const float& maxShield,
  1686. ^
  1687. rts/general/Unit.cpp:113:27: warning: unused parameter 'number' [-Wunused-parameter]
  1688. void Unit::useAbility(int number)
  1689. ^
  1690. rts/general/Unit.cpp: In member function 'void Unit::update(const float&)':
  1691. rts/general/Unit.cpp:148:20: warning: comparison between signed and unsigned integer expressions [-
  1692. sign-compare]
  1693. for (int i = 0; i < abilityCooldowns_.size(); ++i)
  1694. ^
  1695. In file included from rts/general/Unit.h:35:0,
  1696. from rts/general/Unit.cpp:1:
  1697. supportClasses/Pathfinding.h: In instantiation of 'void PriorityQueue<T, Number>::put(T, Number) [w
  1698. th T = f2; Number = float]':
  1699. supportClasses/Pathfinding.h:419:24: required from here
  1700. supportClasses/Pathfinding.h:36:5: error: 'class std::priority_queue<std::pair<float, f2>, std::vec
  1701. or<std::pair<float, f2>, std::allocator<std::pair<float, f2> > >, std::greater<std::pair<float, f2>
  1702. > >' has no member named 'emplace'
  1703. elements.emplace(priority, item);
  1704. ^
  1705. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  1706. e/c++/bits/stl_algobase.h:65:0,
  1707. from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  1708. e/c++/vector:60,
  1709. from supportClasses/Rectangle.h:3,
  1710. from rts/general/Object.h:3,
  1711. from rts/general/Unit.h:27,
  1712. from rts/general/Unit.cpp:1:
  1713. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1714. r_base_types.h: In instantiation of 'struct std::iterator_traits<f2>':
  1715. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  1716. h:1262:24: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _
  1717. nputIterator, std::__false_type) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>]'
  1718. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  1719. h:413:55: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const a
  1720. locator_type&) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>; std::vector<_Tp, _
  1721. lloc>::allocator_type = std::allocator<f2>]'
  1722. supportClasses/Pathfinding.h:394:23: required from here
  1723. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1724. r_base_types.h:165:53: error: no type named 'iterator_category' in 'class f2'
  1725. typedef typename _Iterator::iterator_category iterator_category;
  1726. ^
  1727. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1728. r_base_types.h:166:53: error: no type named 'value_type' in 'class f2'
  1729. typedef typename _Iterator::value_type value_type;
  1730. ^
  1731. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1732. r_base_types.h:167:53: error: no type named 'difference_type' in 'class f2'
  1733. typedef typename _Iterator::difference_type difference_type;
  1734. ^
  1735. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1736. r_base_types.h:168:53: error: no type named 'pointer' in 'class f2'
  1737. typedef typename _Iterator::pointer pointer;
  1738. ^
  1739. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  1740. r_base_types.h:169:53: error: no type named 'reference' in 'class f2'
  1741. typedef typename _Iterator::reference reference;
  1742. ^
  1743. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  1744. e/c++/unordered_map:35:0,
  1745. from supportClasses/Pathfinding.h:5,
  1746. from rts/general/Unit.h:35,
  1747. from rts/Init.h:38,
  1748. from rts/general/Units.h:27,
  1749. from rts/general/Units.cpp:26:
  1750. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/c++0x_warn
  1751. ng.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 stand
  1752. rd. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11
  1753. compiler options.
  1754. #error This file requires compiler and library support for the \
  1755. ^
  1756. In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
  1757. from D:/sfml-source/include/SFML/Window.hpp:32,
  1758. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  1759. from supportClasses/f2.h:4,
  1760. from rts/Hotkey.h:3,
  1761. from rts/Init.h:36,
  1762. from rts/general/Units.h:27,
  1763. from rts/general/Units.cpp:26:
  1764. D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
  1765. Wlong-long]
  1766. typedef signed long long Int64;
  1767. ^
  1768. D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
  1769. Wlong-long]
  1770. typedef unsigned long long Uint64;
  1771. ^
  1772. In file included from rts/Hotkey.h:3:0,
  1773. from rts/Init.h:36,
  1774. from rts/general/Units.h:27,
  1775. from rts/general/Units.cpp:26:
  1776. supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
  1777. supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
  1778. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  1779. ^
  1780. supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
  1781. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  1782. ^
  1783. supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
  1784. ng, char)':
  1785. supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
  1786. seglist.push_back(std::stof(segment));
  1787. ^
  1788. supportClasses/f2.h: At global scope:
  1789. supportClasses/f2.h:432:9: error: 'hash' is not a class template
  1790. struct hash<f2>
  1791. ^
  1792. supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
  1793. {
  1794. ^
  1795. supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
  1796. supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
  1797. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  1798. ^
  1799. supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
  1800. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  1801. ^
  1802. supportClasses/f2.h:442:13: error: 'std::hash' is not a template
  1803. return hash<string>()(str);
  1804. ^
  1805. supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
  1806. return hash<string>()(str);
  1807. ^
  1808. supportClasses/f2.h:432:9: note: candidate is:
  1809. struct hash<f2>
  1810. ^
  1811. supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
  1812. std::size_t operator()(const f2& k) const
  1813. ^
  1814. supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
  1815. asic_string<char>}' to 'const f2&'
  1816. In file included from rts/Init.h:36:0,
  1817. from rts/general/Units.h:27,
  1818. from rts/general/Units.cpp:26:
  1819. rts/Hotkey.h: At global scope:
  1820. rts/Hotkey.h:318:34: warning: non-static data member initializers only available with -std=c++11 or
  1821. -std=gnu++11
  1822. bool unitCardControl_ = false;
  1823. ^
  1824. rts/Hotkey.h:319:33: warning: non-static data member initializers only available with -std=c++11 or
  1825. -std=gnu++11
  1826. bool miniMapControl_ = false;
  1827. ^
  1828. rts/Hotkey.h:320:28: warning: non-static data member initializers only available with -std=c++11 or
  1829. -std=gnu++11
  1830. bool doubleTap_ = false;
  1831. ^
  1832. rts/Hotkey.h:321:37: warning: non-static data member initializers only available with -std=c++11 or
  1833. -std=gnu++11
  1834. bool commandCardControl_ = false;
  1835. ^
  1836. rts/Hotkey.h:304:34: warning: unused parameter 'other' [-Wunused-parameter]
  1837. bool operator < (const Hotkey& other) const
  1838. ^
  1839. rts/Hotkey.h:332:10: error: 'hash' is not a class template
  1840. struct hash<Hotkey>
  1841. ^
  1842. rts/Hotkey.h:332:21: error: 'std::hash' is not a template type
  1843. struct hash<Hotkey>
  1844. ^
  1845. In file included from supportClasses/Rect.h:17:0,
  1846. from supportClasses/Rectangle.h:11,
  1847. from rts/general/Object.h:3,
  1848. from rts/general/Tile.h:3,
  1849. from rts/Init.h:37,
  1850. from rts/general/Units.h:27,
  1851. from rts/general/Units.cpp:26:
  1852. supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
  1853. c++11 or -std=gnu++11
  1854. float radius_ = 0;
  1855. ^
  1856. In file included from supportClasses/Rect.h:17:0,
  1857. from supportClasses/Rectangle.h:11,
  1858. from rts/general/Object.h:3,
  1859. from rts/general/Tile.h:3,
  1860. from rts/Init.h:37,
  1861. from rts/general/Units.h:27,
  1862. from rts/general/Units.cpp:26:
  1863. supportClasses/Shape.h: In constructor 'Shape::Shape()':
  1864. supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
  1865. d=gnu++11
  1866. Shape() : Shape(4) {}
  1867. ^
  1868. In file included from rts/general/Object.h:3:0,
  1869. from rts/general/Tile.h:3,
  1870. from rts/Init.h:37,
  1871. from rts/general/Units.h:27,
  1872. from rts/general/Units.cpp:26:
  1873. supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
  1874. supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
  1875. in the copy constructor [-Wextra]
  1876. Rectangle(const Rectangle& rect) {*this = rect;}
  1877. ^
  1878. supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
  1879. supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
  1880. 1 or -std=gnu++11
  1881. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  1882. ^
  1883. supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
  1884. ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
  1885. to 'std::vector<f2>'
  1886. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  1887. ^
  1888. In file included from particleEffects/Emitter.h:3:0,
  1889. from particleEffects/ParticleEffects.h:3,
  1890. from rts/general/Object.h:4,
  1891. from rts/general/Tile.h:3,
  1892. from rts/Init.h:37,
  1893. from rts/general/Units.h:27,
  1894. from rts/general/Units.cpp:26:
  1895. particleEffects/Particle.h: At global scope:
  1896. particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
  1897. std=c++11 or -std=gnu++11
  1898. float timer_ = 0;
  1899. ^
  1900. In file included from particleEffects/ParticleEffects.h:3:0,
  1901. from rts/general/Object.h:4,
  1902. from rts/general/Tile.h:3,
  1903. from rts/Init.h:37,
  1904. from rts/general/Units.h:27,
  1905. from rts/general/Units.cpp:26:
  1906. particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
  1907. std=c++11 or -std=gnu++11
  1908. double redDiff_ = 0;
  1909. ^
  1910. particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
  1911. std=c++11 or -std=gnu++11
  1912. double blueDiff_ = 0;
  1913. ^
  1914. particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
  1915. std=c++11 or -std=gnu++11
  1916. double greenDiff_ = 0;
  1917. ^
  1918. particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
  1919. std=c++11 or -std=gnu++11
  1920. double alphaDiff_ = 0;
  1921. ^
  1922. particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
  1923. std=c++11 or -std=gnu++11
  1924. double fade_ = 0;
  1925. ^
  1926. particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
  1927. std=c++11 or -std=gnu++11
  1928. f2 speed_ = {0, 0};
  1929. ^
  1930. particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
  1931. std=c++11 or -std=gnu++11
  1932. float emissionTimer_ = 0;
  1933. ^
  1934. particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
  1935. std=c++11 or -std=gnu++11
  1936. float lifeTimer_ = 0;
  1937. ^
  1938. particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
  1939. std=c++11 or -std=gnu++11
  1940. vector<Emitter*> emitters_ = vector<Emitter*>();
  1941. ^
  1942. particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
  1943. or -std=gnu++11
  1944. f2 speed_ = {0, 0};
  1945. ^
  1946. In file included from rts/general/Tile.h:3:0,
  1947. from rts/Init.h:37,
  1948. from rts/general/Units.h:27,
  1949. from rts/general/Units.cpp:26:
  1950. rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
  1951. rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
  1952. the copy constructor [-Wextra]
  1953. Object(const Object& object) {*this = object;}
  1954. ^
  1955. In file included from rts/Init.h:37:0,
  1956. from rts/general/Units.h:27,
  1957. from rts/general/Units.cpp:26:
  1958. rts/general/Tile.h: At global scope:
  1959. rts/general/Tile.h:32:19: warning: non-static data member initializers only available with -std=c++
  1960. 1 or -std=gnu++11
  1961. int beingUsed_ = 0;
  1962. ^
  1963. In file included from rts/general/Unit.h:29:0,
  1964. from rts/Init.h:38,
  1965. from rts/general/Units.h:27,
  1966. from rts/general/Units.cpp:26:
  1967. rts/general/OrderQueu.h:46:35: warning: non-static data member initializers only available with -st
  1968. =c++11 or -std=gnu++11
  1969. deque<Order> queu = deque<Order>(0);
  1970. ^
  1971. rts/general/OrderQueu.h:47:43: warning: non-static data member initializers only available with -st
  1972. =c++11 or -std=gnu++11
  1973. Order noOrder = Order(f2(0, 0), NO_COMMAND);
  1974. ^
  1975. In file included from rts/general/Unit.h:35:0,
  1976. from rts/Init.h:38,
  1977. from rts/general/Units.h:27,
  1978. from rts/general/Units.cpp:26:
  1979. supportClasses/Pathfinding.h:16:12: error: 'std::unordered_map' has not been declared
  1980. using std::unordered_map;
  1981. ^
  1982. supportClasses/Pathfinding.h:19:12: error: 'std::make_tuple' has not been declared
  1983. using std::make_tuple;
  1984. ^
  1985. supportClasses/Pathfinding.h:22:12: error: 'std::unordered_set' has not been declared
  1986. using std::unordered_set;
  1987. ^
  1988. supportClasses/Pathfinding.h:24:22: error: 'placeholders' is not a namespace-name
  1989. using namespace std::placeholders;
  1990. ^
  1991. supportClasses/Pathfinding.h:24:34: error: expected namespace-name before ';' token
  1992. using namespace std::placeholders;
  1993. ^
  1994. supportClasses/Pathfinding.h:30:75: error: '>>' should be '> >' within a nested template argument l
  1995. st
  1996. std::priority_queue<PQElement, vector<PQElement>, std::greater<PQElement>> elements;
  1997. ^
  1998. supportClasses/Pathfinding.h:551:36: error: 'unordered_map' has not been declared
  1999. inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
  2000. ^
  2001. supportClasses/Pathfinding.h:551:49: error: expected ',' or '...' before '<' token
  2002. inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
  2003. ^
  2004. In file included from rts/general/Unit.h:35:0,
  2005. from rts/Init.h:38,
  2006. from rts/general/Units.h:27,
  2007. from rts/general/Units.cpp:26:
  2008. supportClasses/Pathfinding.h:740:1: error: 'unordered_map' does not name a type
  2009. unordered_map<f2, Node*> nodes_;
  2010. ^
  2011. In file included from rts/general/Unit.h:35:0,
  2012. from rts/Init.h:38,
  2013. from rts/general/Units.h:27,
  2014. from rts/general/Units.cpp:26:
  2015. supportClasses/Pathfinding.h: In member function 'std::vector<Node*> Pathfinding::neighbors(f2)':
  2016. supportClasses/Pathfinding.h:95:7: error: 'nodes_' was not declared in this scope
  2017. if (nodes_.count(position))
  2018. ^
  2019. supportClasses/Pathfinding.h:99:22: warning: comparison between signed and unsigned integer express
  2020. ons [-Wsign-compare]
  2021. for (int i = 0; i < node->links_.size(); ++i)
  2022. ^
  2023. supportClasses/Pathfinding.h:111:22: warning: comparison between signed and unsigned integer expres
  2024. ions [-Wsign-compare]
  2025. for (int i = 0; i < nodesV_.size(); ++i)
  2026. ^
  2027. supportClasses/Pathfinding.h: In static member function 'static bool Pathfinding::straightPath(f2,
  2028. 2, std::vector<Rect>*)':
  2029. supportClasses/Pathfinding.h:172:23: warning: comparison between signed and unsigned integer expres
  2030. ions [-Wsign-compare]
  2031. for (int i = 0; i < obstacles->size(); ++i)
  2032. ^
  2033. supportClasses/Pathfinding.h:188:23: warning: comparison between signed and unsigned integer expres
  2034. ions [-Wsign-compare]
  2035. for (int i = 0; i < obstacles->size(); ++i)
  2036. ^
  2037. supportClasses/Pathfinding.h:207:23: warning: comparison between signed and unsigned integer expres
  2038. ions [-Wsign-compare]
  2039. for (int i = 0; i < obstacles->size(); ++i)
  2040. ^
  2041. supportClasses/Pathfinding.h:223:23: warning: comparison between signed and unsigned integer expres
  2042. ions [-Wsign-compare]
  2043. for (int i = 0; i < obstacles->size(); ++i)
  2044. ^
  2045. supportClasses/Pathfinding.h: In member function 'bool Pathfinding::straightPath(f2, f2, const f2&)
  2046. :
  2047. supportClasses/Pathfinding.h:263:23: warning: comparison between signed and unsigned integer expres
  2048. ions [-Wsign-compare]
  2049. for (int i = 0; i < obstacles_.size(); ++i)
  2050. ^
  2051. supportClasses/Pathfinding.h:296:23: warning: comparison between signed and unsigned integer expres
  2052. ions [-Wsign-compare]
  2053. for (int i = 0; i < obstacles_.size(); ++i)
  2054. ^
  2055. supportClasses/Pathfinding.h:332:23: warning: comparison between signed and unsigned integer expres
  2056. ions [-Wsign-compare]
  2057. for (int i = 0; i < obstacles_.size(); ++i)
  2058. ^
  2059. supportClasses/Pathfinding.h:364:23: warning: comparison between signed and unsigned integer expres
  2060. ions [-Wsign-compare]
  2061. for (int i = 0; i < obstacles_.size(); ++i)
  2062. ^
  2063. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
  2064. , f2)':
  2065. supportClasses/Pathfinding.h:394:11: warning: extended initializer lists only available with -std=c
  2066. +11 or -std=gnu++11
  2067. return {start, goal};
  2068. ^
  2069. supportClasses/Pathfinding.h:416:3: error: 'unordered_map' was not declared in this scope
  2070. unordered_map<f2, float> costSoFar;
  2071. ^
  2072. supportClasses/Pathfinding.h:416:19: error: expected primary-expression before ',' token
  2073. unordered_map<f2, float> costSoFar;
  2074. ^
  2075. supportClasses/Pathfinding.h:416:21: error: expected primary-expression before 'float'
  2076. unordered_map<f2, float> costSoFar;
  2077. ^
  2078. supportClasses/Pathfinding.h:417:19: error: expected primary-expression before ',' token
  2079. unordered_map<f2, f2> cameFrom;
  2080. ^
  2081. supportClasses/Pathfinding.h:417:23: error: expected primary-expression before '>' token
  2082. unordered_map<f2, f2> cameFrom;
  2083. ^
  2084. supportClasses/Pathfinding.h:417:25: error: 'cameFrom' was not declared in this scope
  2085. unordered_map<f2, f2> cameFrom;
  2086. ^
  2087. supportClasses/Pathfinding.h:422:3: error: 'costSoFar' was not declared in this scope
  2088. costSoFar[start] = 0;
  2089. ^
  2090. supportClasses/Pathfinding.h:438:8: error: 'nodes_' was not declared in this scope
  2091. if (nodes_.count(current))
  2092. ^
  2093. supportClasses/Pathfinding.h:446:22: warning: comparison between signed and unsigned integer expres
  2094. ions [-Wsign-compare]
  2095. for (int i = 0; i < nb.size(); ++i)
  2096. ^
  2097. supportClasses/Pathfinding.h:464:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc
  2098. +0x-compat]
  2099. for(auto i : cameFrom)
  2100. ^
  2101. supportClasses/Pathfinding.h:464:12: error: 'i' does not name a type
  2102. for(auto i : cameFrom)
  2103. ^
  2104. supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
  2105. if (start == pos)
  2106. ^
  2107. supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
  2108. supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
  2109. supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
  2110. supportClasses/Pathfinding.h:473:3: error: expected ')' before 'if'
  2111. supportClasses/Pathfinding.h:475:11: warning: extended initializer lists only available with -std=c
  2112. +11 or -std=gnu++11
  2113. return {};
  2114. ^
  2115. supportClasses/Pathfinding.h:461:9: warning: unused variable 'distance' [-Wunused-variable]
  2116. float distance = - 1;
  2117. ^
  2118. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
  2119. , std::vector<Rect>)':
  2120. supportClasses/Pathfinding.h:491:21: warning: comparison between signed and unsigned integer expres
  2121. ions [-Wsign-compare]
  2122. for (int i = 0; i < nodesV_.size(); ++i)
  2123. ^
  2124. supportClasses/Pathfinding.h:493:8: error: 'nodes_' was not declared in this scope
  2125. if (nodes_.count(start) > 0 && straightPath(nodesV_[i]->position_, start))
  2126. ^
  2127. supportClasses/Pathfinding.h:500:3: error: 'unordered_map' was not declared in this scope
  2128. unordered_map<f2, float> costSoFar;
  2129. ^
  2130. supportClasses/Pathfinding.h:500:19: error: expected primary-expression before ',' token
  2131. unordered_map<f2, float> costSoFar;
  2132. ^
  2133. supportClasses/Pathfinding.h:500:21: error: expected primary-expression before 'float'
  2134. unordered_map<f2, float> costSoFar;
  2135. ^
  2136. supportClasses/Pathfinding.h:501:19: error: expected primary-expression before ',' token
  2137. unordered_map<f2, f2> cameFrom;
  2138. ^
  2139. supportClasses/Pathfinding.h:501:23: error: expected primary-expression before '>' token
  2140. unordered_map<f2, f2> cameFrom;
  2141. ^
  2142. supportClasses/Pathfinding.h:501:25: error: 'cameFrom' was not declared in this scope
  2143. unordered_map<f2, f2> cameFrom;
  2144. ^
  2145. supportClasses/Pathfinding.h:506:3: error: 'costSoFar' was not declared in this scope
  2146. costSoFar[start] = 0;
  2147. ^
  2148. supportClasses/Pathfinding.h:516:39: warning: comparison between signed and unsigned integer expres
  2149. ions [-Wsign-compare]
  2150. for (int i = startingNodeCount; i < nodesV_.size(); ++i)
  2151. ^
  2152. supportClasses/Pathfinding.h:525:8: error: 'nodes_' was not declared in this scope
  2153. if (nodes_.count(current))
  2154. ^
  2155. supportClasses/Pathfinding.h:533:22: warning: comparison between signed and unsigned integer expres
  2156. ions [-Wsign-compare]
  2157. for (int i = 0; i < nb.size(); ++i)
  2158. ^
  2159. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::reconstructPath(int)
  2160. :
  2161. supportClasses/Pathfinding.h:555:18: error: 'goal' was not declared in this scope
  2162. path.push_back(goal);
  2163. ^
  2164. supportClasses/Pathfinding.h:558:23: error: 'cameFrom' was not declared in this scope
  2165. for (int i = 0; i < cameFrom.size(); ++i)
  2166. ^
  2167. supportClasses/Pathfinding.h:562:16: error: 'start' was not declared in this scope
  2168. if (next == start)
  2169. ^
  2170. supportClasses/Pathfinding.h: In member function 'Node* Pathfinding::addNode(const f2&)':
  2171. supportClasses/Pathfinding.h:585:21: warning: comparison between signed and unsigned integer expres
  2172. ions [-Wsign-compare]
  2173. for (int i = 0; i < obstacles_.size(); ++i)
  2174. ^
  2175. supportClasses/Pathfinding.h:605:21: warning: comparison between signed and unsigned integer expres
  2176. ions [-Wsign-compare]
  2177. for (int i = 0; i < nodesV_.size(); ++i)
  2178. ^
  2179. supportClasses/Pathfinding.h:676:3: error: 'nodes_' was not declared in this scope
  2180. nodes_[position] = node;
  2181. ^
  2182. supportClasses/Pathfinding.h: In member function 'void Pathfinding::removeNode(Node*)':
  2183. supportClasses/Pathfinding.h:682:21: warning: comparison between signed and unsigned integer expres
  2184. ions [-Wsign-compare]
  2185. for (int i = 0; i < node->links_.size(); ++i)
  2186. ^
  2187. supportClasses/Pathfinding.h:684:22: warning: comparison between signed and unsigned integer expres
  2188. ions [-Wsign-compare]
  2189. for (int j = 0; j < node->links_[i]->links_.size(); ++j)
  2190. ^
  2191. supportClasses/Pathfinding.h:696:3: error: 'nodes_' was not declared in this scope
  2192. nodes_.erase(node->position_);
  2193. ^
  2194. supportClasses/Pathfinding.h: In member function 'void Pathfinding::generateNodes(const std::vector
  2195. Rect>&)':
  2196. supportClasses/Pathfinding.h:703:21: warning: comparison between signed and unsigned integer expres
  2197. ions [-Wsign-compare]
  2198. for (int i = 0; i < obstacles.size(); ++i)
  2199. ^
  2200. In file included from rts/general/Unit.h:35:0,
  2201. from rts/Init.h:38,
  2202. from rts/general/Units.h:27,
  2203. from rts/general/Units.cpp:26:
  2204. supportClasses/Pathfinding.h: In member function 'void Pathfinding::update()':
  2205. supportClasses/Pathfinding.h:718:3: error: 'nodes_' was not declared in this scope
  2206. nodes_.clear();
  2207. ^
  2208. supportClasses/Pathfinding.h: In member function 'bool Pathfinding::checkPath(std::vector<f2>)':
  2209. supportClasses/Pathfinding.h:725:21: warning: comparison between signed and unsigned integer expres
  2210. ions [-Wsign-compare]
  2211. for (int i = 1; i < path.size(); ++i)
  2212. ^
  2213. In file included from rts/general/Unit.h:37:0,
  2214. from rts/Init.h:38,
  2215. from rts/general/Units.h:27,
  2216. from rts/general/Units.cpp:26:
  2217. rts/general/Wall.h: At global scope:
  2218. rts/general/Wall.h:36:25: warning: non-static data member initializers only available with -std=c++
  2219. 1 or -std=gnu++11
  2220. bool canBeShotTrough_ = false;
  2221. ^
  2222. rts/general/Wall.h:39:26: warning: non-static data member initializers only available with -std=c++
  2223. 1 or -std=gnu++11
  2224. f2 unitIndex_ = f2(0, - 1);
  2225. ^
  2226. rts/general/Wall.h:40:17: warning: non-static data member initializers only available with -std=c++
  2227. 1 or -std=gnu++11
  2228. bool enabled_ = true;
  2229. ^
  2230. rts/general/Wall.h: In copy constructor 'Wall::Wall(const Wall&)':
  2231. rts/general/Wall.h:16:2: warning: base class 'class Rectangle' should be explicitly initialized in
  2232. he copy constructor [-Wextra]
  2233. Wall(const Wall& wall) {*this = wall;}
  2234. ^
  2235. In file included from rts/Init.h:38:0,
  2236. from rts/general/Units.h:27,
  2237. from rts/general/Units.cpp:26:
  2238. rts/general/Unit.h: At global scope:
  2239. rts/general/Unit.h:88:26: warning: type qualifiers ignored on function return type [-Wignored-quali
  2240. iers]
  2241. void removeCurrentOrder() {orders_.remove();}
  2242. ^
  2243. rts/general/Unit.h:99:18: warning: non-static data member initializers only available with -std=c++
  2244. 1 or -std=gnu++11
  2245. bool selected_ = false;
  2246. ^
  2247. rts/general/Unit.h:113:16: warning: non-static data member initializers only available with -std=c+
  2248. 11 or -std=gnu++11
  2249. bool pushed_ = false;
  2250. ^
  2251. rts/general/Unit.h:156:31: warning: non-static data member initializers only available with -std=c+
  2252. 11 or -std=gnu++11
  2253. OrderQueu orders_ = OrderQueu();
  2254. ^
  2255. rts/general/Unit.h:170:24: warning: non-static data member initializers only available with -std=c+
  2256. 11 or -std=gnu++11
  2257. int pathfindingStep_ = 0;
  2258. ^
  2259. rts/general/Unit.h:180:32: warning: non-static data member initializers only available with -std=c+
  2260. 11 or -std=gnu++11
  2261. f2 previousTarget_ = f2(- 1, -1);
  2262. ^
  2263. rts/general/Unit.h:181:17: warning: non-static data member initializers only available with -std=c+
  2264. 11 or -std=gnu++11
  2265. bool enabled_ = true;
  2266. ^
  2267. rts/general/Unit.h: In copy constructor 'Unit::Unit(const Unit&)':
  2268. rts/general/Unit.h:74:2: warning: base class 'class Object' should be explicitly initialized in the
  2269. copy constructor [-Wextra]
  2270. Unit(const Unit& unit) {*this = unit;}
  2271. ^
  2272. In file included from rts/Init.h:39:0,
  2273. from rts/general/Units.h:27,
  2274. from rts/general/Units.cpp:26:
  2275. rts/Faction.h: At global scope:
  2276. rts/Faction.h:18:21: warning: non-static data member initializers only available with -std=c++11 or
  2277. -std=gnu++11
  2278. float usedSupply_ = 0;
  2279. ^
  2280. rts/Faction.h:19:24: warning: non-static data member initializers only available with -std=c++11 or
  2281. -std=gnu++11
  2282. float currentSupply_ = 0;
  2283. ^
  2284. In file included from rts/general/Units.h:27:0,
  2285. from rts/general/Units.cpp:26:
  2286. rts/Init.h: In constructor 'Init::Init(std::string)':
  2287. rts/Init.h:49:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
  2288. (std::string&)'
  2289. ifstream ini(iniPath);
  2290. ^
  2291. rts/Init.h:49:23: note: candidates are:
  2292. In file included from rts/Init.h:29:0,
  2293. from rts/general/Units.h:27,
  2294. from rts/general/Units.cpp:26:
  2295. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  2296. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
  2297. h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
  2298. basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
  2299. ^
  2300. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  2301. ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
  2302. char*'
  2303. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  2304. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
  2305. _traits<char>]
  2306. basic_ifstream() : __istream_type(), _M_filebuf()
  2307. ^
  2308. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  2309. ote: candidate expects 0 arguments, 1 provided
  2310. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  2311. note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
  2312. class basic_ifstream : public basic_istream<_CharT, _Traits>
  2313. ^
  2314. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  2315. note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
  2316. t std::basic_ifstream<char>&'
  2317. In file included from rts/general/Units.h:27:0,
  2318. from rts/general/Units.cpp:26:
  2319. rts/Init.h:71:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  2320. for (auto const& x : valueMap)
  2321. ^
  2322. rts/Init.h:71:24: error: range-based 'for' loops are not allowed in C++98 mode
  2323. for (auto const& x : valueMap)
  2324. ^
  2325. rts/Init.h:73:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
  2326. valueMap[x.first] = evaluate(split(x.second, ' '));
  2327. ^
  2328. rts/Init.h:73:41: error: request for member 'second' in 'x', which is of non-class type 'const int'
  2329. valueMap[x.first] = evaluate(split(x.second, ' '));
  2330. ^
  2331. rts/Init.h: In member function 'void Init::loadFile(std::string)':
  2332. rts/Init.h:81:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
  2333. (std::string&)'
  2334. ifstream ini(iniPath);
  2335. ^
  2336. rts/Init.h:81:23: note: candidates are:
  2337. In file included from rts/Init.h:29:0,
  2338. from rts/general/Units.h:27,
  2339. from rts/general/Units.cpp:26:
  2340. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  2341. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
  2342. h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
  2343. basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
  2344. ^
  2345. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  2346. ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
  2347. char*'
  2348. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  2349. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
  2350. _traits<char>]
  2351. basic_ifstream() : __istream_type(), _M_filebuf()
  2352. ^
  2353. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  2354. ote: candidate expects 0 arguments, 1 provided
  2355. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  2356. note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
  2357. class basic_ifstream : public basic_istream<_CharT, _Traits>
  2358. ^
  2359. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  2360. note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
  2361. t std::basic_ifstream<char>&'
  2362. In file included from rts/general/Units.h:27:0,
  2363. from rts/general/Units.cpp:26:
  2364. rts/Init.h:103:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  2365. for (auto const& x : valueMap)
  2366. ^
  2367. rts/Init.h:103:24: error: range-based 'for' loops are not allowed in C++98 mode
  2368. for (auto const& x : valueMap)
  2369. ^
  2370. rts/Init.h:105:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
  2371. valueMap[x.first] = evaluate(split(x.second, ' '));
  2372. ^
  2373. rts/Init.h:105:41: error: request for member 'second' in 'x', which is of non-class type 'const int
  2374.  
  2375. valueMap[x.first] = evaluate(split(x.second, ' '));
  2376. ^
  2377. rts/Init.h: In member function 'std::string Init::evaluate(std::vector<std::basic_string<char> >)':
  2378. rts/Init.h:112:21: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2379. re]
  2380. for (int i = 1; i < arguments.size(); ++i)
  2381. ^
  2382. rts/Init.h: In member function 'Rect Init::getRect(const string&) const':
  2383. rts/Init.h:144:19: error: 'stof' is not a member of 'std'
  2384. float top = std::stof(arguments[1]);
  2385. ^
  2386. rts/Init.h:145:20: error: 'stof' is not a member of 'std'
  2387. float left = std::stof(arguments[2]);
  2388. ^
  2389. rts/Init.h:146:20: error: 'stof' is not a member of 'std'
  2390. float width = std::stof(arguments[3]);
  2391. ^
  2392. rts/Init.h:147:21: error: 'stof' is not a member of 'std'
  2393. float height = std::stof(arguments[4]);
  2394. ^
  2395. rts/Init.h: In member function 'sf::Color Init::getColor(const string&) const':
  2396. rts/Init.h:175:17: error: 'stof' is not a member of 'std'
  2397. float r = std::stof(arguments[1]);
  2398. ^
  2399. rts/Init.h:176:17: error: 'stof' is not a member of 'std'
  2400. float g = std::stof(arguments[2]);
  2401. ^
  2402. rts/Init.h:177:18: error: 'stof' is not a member of 'std'
  2403. float b = std::stof(arguments[3]);
  2404. ^
  2405. rts/Init.h:178:18: error: 'stof' is not a member of 'std'
  2406. float a = std::stof(arguments[4]);
  2407. ^
  2408. rts/Init.h: In member function 'Function Init::getFunction(const string&) const':
  2409. rts/Init.h:206:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2410. re]
  2411. for (int i = 1; i < args.size(); ++i)
  2412. ^
  2413. rts/Init.h:218:55: error: 'stoi' is not a member of 'std'
  2414. FunctionType type = static_cast<FunctionType>(std::stoi(get(arguments, "type")));
  2415. ^
  2416. rts/Init.h:219:26: error: 'stoi' is not a member of 'std'
  2417. bool global = std::stoi(get(arguments, "global"));
  2418. ^
  2419. rts/Init.h:220:33: error: 'stoi' is not a member of 'std'
  2420. bool ignoreMousePosition = std::stoi(get(arguments, "ignoreMousePosition"));
  2421. ^
  2422. rts/Init.h:221:29: error: 'stoi' is not a member of 'std'
  2423. bool useDoubleTap = std::stoi(get(arguments, "useDoubleTap"));
  2424. ^
  2425. rts/Init.h: In member function 'f2 Init::getf2(const string&) const':
  2426. rts/Init.h:247:11: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
  2427. 1
  2428. return {0, 0};
  2429. ^
  2430. rts/Init.h:253:14: error: 'stof' is not a member of 'std'
  2431. float x = std::stof(arguments[1]);
  2432. ^
  2433. rts/Init.h:254:14: error: 'stof' is not a member of 'std'
  2434. float y = std::stof(arguments[2]);
  2435. ^
  2436. rts/Init.h:261:10: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
  2437. 1
  2438. return {0, 0};
  2439. ^
  2440. rts/Init.h: In member function 'Animation Init::getAnimation(const string&) const':
  2441. rts/Init.h:276:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2442. re]
  2443. for (int i = 1; i < args.size(); ++i)
  2444. ^
  2445. rts/Init.h:288:26: error: 'stof' is not a member of 'std'
  2446. float rectWidth = std::stof(get(arguments, "rectWidth"));
  2447. ^
  2448. rts/Init.h:289:26: error: 'stof' is not a member of 'std'
  2449. float rectHeight = std::stof(get(arguments, "rectHeight"));
  2450. ^
  2451. rts/Init.h:290:27: error: 'stof' is not a member of 'std'
  2452. float duration = std::stof(get(arguments, "duration"));
  2453. ^
  2454. rts/Init.h:291:26: error: 'stof' is not a member of 'std'
  2455. f2 textureDimensions(std::stof(get(arguments, "columns")),
  2456. ^
  2457. rts/Init.h:292:16: error: 'stof' is not a member of 'std'
  2458. std::stof(get(arguments, "rows")));
  2459. ^
  2460. rts/Init.h:293:24: error: 'stoi' is not a member of 'std'
  2461. bool loops = std::stoi(get(arguments, "loops"));
  2462. ^
  2463. rts/Init.h: In member function 'Projectile Init::getProjectile(const string&) const':
  2464. rts/Init.h:323:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2465. re]
  2466. for (int i = 1; i < args.size(); ++i)
  2467. ^
  2468. rts/Init.h:335:21: error: 'stof' is not a member of 'std'
  2469. float width = std::stof(get(arguments, "width"));
  2470. ^
  2471. rts/Init.h:336:22: error: 'stof' is not a member of 'std'
  2472. float height = std::stof(get(arguments, "height"));
  2473. ^
  2474. rts/Init.h:337:22: error: 'stof' is not a member of 'std'
  2475. float velocity = std::stof(get(arguments, "velocity"));
  2476. ^
  2477. rts/Init.h:338:21: error: 'stof' is not a member of 'std'
  2478. float damage = std::stof(get(arguments, "damage"));
  2479. ^
  2480. rts/Init.h: In member function 'Ability Init::getAbility(const string&) const':
  2481. rts/Init.h:370:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2482. re]
  2483. for (int i = 1; i < args.size(); ++i)
  2484. ^
  2485. rts/Init.h:384:33: error: 'stoi' is not a member of 'std'
  2486. bool firstTargetIsUnit = std::stoi(get(arguments, "firstTargetIsUnit"));
  2487. ^
  2488. rts/Init.h:385:34: error: 'stoi' is not a member of 'std'
  2489. bool secondTargetIsUnit = std::stoi(get(arguments, "secondTargetIsUnit"));
  2490. ^
  2491. rts/Init.h:386:27: error: 'stof' is not a member of 'std'
  2492. float cost = std::stof(get(arguments, "cost"));
  2493. ^
  2494. rts/Init.h:387:28: error: 'stof' is not a member of 'std'
  2495. float range = std::stof(get(arguments, "range"));
  2496. ^
  2497. rts/Init.h:388:29: error: 'stof' is not a member of 'std'
  2498. float cooldown = std::stof(get(arguments, "cooldown"));
  2499. ^
  2500. rts/Init.h:389:28: error: 'stof' is not a member of 'std'
  2501. float radius = std::stof(get(arguments, "radius"));
  2502. ^
  2503. rts/Init.h:390:29: error: 'stoi' is not a member of 'std'
  2504. bool targeted = std::stoi(get(arguments, "targeted"));
  2505. ^
  2506. rts/Init.h:391:29: error: 'stof' is not a member of 'std'
  2507. float velocity = std::stof(get(arguments, "velocity"));
  2508. ^
  2509. rts/Init.h:392:28: error: 'stof' is not a member of 'std'
  2510. float damage = std::stof(get(arguments, "damage"));
  2511. ^
  2512. rts/Init.h:393:29: error: 'stof' is not a member of 'std'
  2513. float duration = std::stof(get(arguments, "duration"));
  2514. ^
  2515. rts/Init.h:395:28: error: 'stoi' is not a member of 'std'
  2516. bool hitsAir = std::stoi(get(arguments, "hitsAir"));
  2517. ^
  2518. rts/Init.h:396:30: error: 'stoi' is not a member of 'std'
  2519. bool hitsGround = std::stoi(get(arguments, "hitsGround"));
  2520. ^
  2521. rts/Init.h:397:28: error: 'stoi' is not a member of 'std'
  2522. bool active = std::stoi(get(arguments, "active"));
  2523. ^
  2524. rts/Init.h:398:28: error: 'stoi' is not a member of 'std'
  2525. bool applied = std::stoi(get(arguments, "applied"));
  2526. ^
  2527. rts/Init.h:399:30: error: 'stoi' is not a member of 'std'
  2528. bool targetEnemy = std::stoi(get(arguments, "targetEnemy"));
  2529. ^
  2530. rts/Init.h:400:32: error: 'stoi' is not a member of 'std'
  2531. bool targetFriendly = std::stoi(get(arguments, "targetFriendly"));
  2532. ^
  2533. rts/Init.h:401:29: error: 'stoi' is not a member of 'std'
  2534. bool hitEnemy = std::stoi(get(arguments, "hitEnemy"));
  2535. ^
  2536. rts/Init.h:402:30: error: 'stoi' is not a member of 'std'
  2537. bool hitFriendly = std::stoi(get(arguments, "hitFriendly"));
  2538. ^
  2539. rts/Init.h:403:29: error: 'stoi' is not a member of 'std'
  2540. bool autoCast = std::stoi(get(arguments, "autoCast"));
  2541. ^
  2542. rts/Init.h:405:29: error: 'stoi' is not a member of 'std'
  2543. bool piercing = std::stoi(get(arguments, "piercing"));
  2544. ^
  2545. rts/Init.h:406:29: error: 'stoi' is not a member of 'std'
  2546. bool collision = std::stoi(get(arguments, "collision"));
  2547. ^
  2548. rts/Init.h:407:31: error: 'stoi' is not a member of 'std'
  2549. bool makesBuilding = std::stoi(get(arguments, "makesBuilding"));
  2550. ^
  2551. rts/Init.h:408:29: error: 'stoi' is not a member of 'std'
  2552. bool makesUnit = std::stoi(get(arguments, "makesUnit"));
  2553. ^
  2554. rts/Init.h:409:31: error: 'stoi' is not a member of 'std'
  2555. bool isProjectile = std::stoi(get(arguments, "isProjectile"));
  2556. ^
  2557. rts/Init.h:410:30: error: 'stoi' is not a member of 'std'
  2558. bool isResearch = std::stoi(get(arguments, "isResearch"));
  2559. ^
  2560. rts/Init.h:411:29: error: 'stoi' is not a member of 'std'
  2561. bool useOnce = std::stoi(get(arguments, "useOnce"));
  2562. ^
  2563. rts/Init.h:412:34: error: 'stoi' is not a member of 'std'
  2564. bool useForAllUnitTypes = std::stoi(get(arguments, "useForAllUnitTypes"));
  2565. ^
  2566. rts/Init.h:413:53: error: 'stoi' is not a member of 'std'
  2567. Research research = static_cast<Research>(std::stoi(get(arguments, "research")));
  2568. ^
  2569. rts/Init.h:414:57: error: 'stoi' is not a member of 'std'
  2570. OrderType abilityEnum = static_cast<OrderType>(std::stoi(get(arguments, "abilityEnum")));
  2571. ^
  2572. rts/Init.h:420:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2573. re]
  2574. for (int i = 0; i < typesString.size(); ++i)
  2575. ^
  2576. rts/Init.h:422:51: error: 'stoi' is not a member of 'std'
  2577. effects.push_back(static_cast<AbilityEffect>(std::stoi(typesString[i])));
  2578. ^
  2579. In file included from rts/general/Units.h:27:0,
  2580. from rts/general/Units.cpp:26:
  2581. rts/Init.h: In member function 'std::vector<Ability> Init::getAbilities() const':
  2582. rts/Init.h:448:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  2583. for (auto const& x : valueMap)
  2584. ^
  2585. rts/Init.h:448:24: error: range-based 'for' loops are not allowed in C++98 mode
  2586. for (auto const& x : valueMap)
  2587. ^
  2588. rts/Init.h:450:46: error: request for member 'first' in 'x', which is of non-class type 'const int'
  2589. vector<string> args = split(valueMap.at(x.first));
  2590. ^
  2591. rts/Init.h:453:38: error: request for member 'first' in 'x', which is of non-class type 'const int'
  2592. abilities.push_back(getAbility(x.first));
  2593. ^
  2594. rts/Init.h: In member function 'Unit Init::getUnit(const string&) const':
  2595. rts/Init.h:471:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2596. re]
  2597. for (int i = 1; i < args.size(); ++i)
  2598. ^
  2599. rts/Init.h:483:26: error: 'stof' is not a member of 'std'
  2600. float RectWidth = std::stof(get(arguments, "RectWidth"));
  2601. ^
  2602. rts/Init.h:484:26: error: 'stof' is not a member of 'std'
  2603. float RectHeight = std::stof(get(arguments, "RectHeight"));
  2604. ^
  2605. rts/Init.h:489:20: error: 'stof' is not a member of 'std'
  2606. float radius = std::stof(get(arguments, "radius"));
  2607. ^
  2608. rts/Init.h:496:26: error: 'stof' is not a member of 'std'
  2609. float health = std::stof(get(arguments, "health"));
  2610. ^
  2611. rts/Init.h:497:28: error: 'stof' is not a member of 'std'
  2612. float attackPoint = std::stof(get(arguments, "attackPoint"));
  2613. ^
  2614. rts/Init.h:498:28: error: 'stof' is not a member of 'std'
  2615. float attackDelay = std::stof(get(arguments, "attackDelay"));
  2616. ^
  2617. rts/Init.h:499:25: error: 'stof' is not a member of 'std'
  2618. float armor = std::stof(get(arguments, "armor"));
  2619. ^
  2620. rts/Init.h:500:29: error: 'stof' is not a member of 'std'
  2621. float movementSpeed = std::stof(get(arguments, "movementSpeed"));
  2622. ^
  2623. rts/Init.h:501:25: error: 'stof' is not a member of 'std'
  2624. float range = std::stof(get(arguments, "range"));
  2625. ^
  2626. rts/Init.h:502:28: error: 'stof' is not a member of 'std'
  2627. float sightRange = std::stof(get(arguments, "sightRange"));
  2628. ^
  2629. rts/Init.h:503:26: error: 'stof' is not a member of 'std'
  2630. float supply = std::stof(get(arguments, "supply"));
  2631. ^
  2632. rts/Init.h:504:27: error: 'stof' is not a member of 'std'
  2633. float buildTime = std::stof(get(arguments, "buildTime"));
  2634. ^
  2635. rts/Init.h:505:28: error: 'stof' is not a member of 'std'
  2636. float barrelLength = std::stof(get(arguments, "barrelLength"));
  2637. ^
  2638. rts/Init.h:506:31: error: 'stof' is not a member of 'std'
  2639. float resourceCapacity = std::stof(get(arguments, "resourceCapacity"));
  2640. ^
  2641. rts/Init.h:507:27: error: 'stof' is not a member of 'std'
  2642. float maxEnergy = std::stof(get(arguments, "maxEnergy"));
  2643. ^
  2644. rts/Init.h:508:26: error: 'stof' is not a member of 'std'
  2645. float energy = std::stof(get(arguments, "energy"));
  2646. ^
  2647. rts/Init.h:509:27: error: 'stof' is not a member of 'std'
  2648. float maxShield = std::stof(get(arguments, "maxShield"));
  2649. ^
  2650. rts/Init.h:510:30: error: 'stof' is not a member of 'std'
  2651. float gatherDuration = std::stof(get(arguments, "gatherDuration"));
  2652. ^
  2653. rts/Init.h:511:28: error: 'stof' is not a member of 'std'
  2654. float vertOffset = std::stof(get(arguments, "vertOffset"));
  2655. ^
  2656. rts/Init.h:512:27: error: 'stof' is not a member of 'std'
  2657. float horOffset = std::stof(get(arguments, "horOffset"));
  2658. ^
  2659. rts/Init.h:514:26: error: 'stoi' is not a member of 'std'
  2660. bool canAttack = std::stoi(get(arguments, "canAttack"));
  2661. ^
  2662. rts/Init.h:515:27: error: 'stoi' is not a member of 'std'
  2663. bool canBeMoved = std::stoi(get(arguments, "canBeMoved"));
  2664. ^
  2665. rts/Init.h:516:26: error: 'stoi' is not a member of 'std'
  2666. bool canRotate = std::stoi(get(arguments, "canRotate"));
  2667. ^
  2668. rts/Init.h:517:25: error: 'stoi' is not a member of 'std'
  2669. bool flying = std::stoi(get(arguments, "flying"));
  2670. ^
  2671. rts/Init.h:518:25: error: 'stoi' is not a member of 'std'
  2672. bool hasHead = std::stoi(get(arguments, "hasHead"));
  2673. ^
  2674. rts/Init.h:519:30: error: 'stoi' is not a member of 'std'
  2675. bool returnsResources = std::stoi(get(arguments, "returnsResources"));
  2676. ^
  2677. rts/Init.h:520:26: error: 'stoi' is not a member of 'std'
  2678. bool animated = std::stoi(get(arguments, "animated"));
  2679. ^
  2680. rts/Init.h:521:27: error: 'stoi' is not a member of 'std'
  2681. bool isBuilding = std::stoi(get(arguments, "isBuilding"));
  2682. ^
  2683. rts/Init.h:522:27: error: 'stoi' is not a member of 'std'
  2684. bool noCollision = std::stoi(get(arguments, "noCollision"));
  2685. ^
  2686. rts/Init.h:523:29: error: 'stoi' is not a member of 'std'
  2687. int workersRequired = std::stoi(get(arguments, "workersRequired"));
  2688. ^
  2689. rts/Init.h:524:46: error: in C++98 'offset' must be initialized by constructor, not by '{...}'
  2690. f2 offset = {horOffset, vertOffset};
  2691. ^
  2692. rts/Init.h:530:51: error: 'stoi' is not a member of 'std'
  2693. OrderType projectile = static_cast<OrderType>(std::stoi(get(arguments, "projectile")));
  2694. ^
  2695. rts/Init.h:538:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2696. re]
  2697. for (int i = 0; i < costsstring.size(); ++i)
  2698. ^
  2699. rts/Init.h:540:22: error: 'stof' is not a member of 'std'
  2700. costs.push_back(std::stof(costsstring[i]));
  2701. ^
  2702. rts/Init.h:545:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2703. re]
  2704. for (int i = 0; i < typesString.size(); ++i)
  2705. ^
  2706. rts/Init.h:547:44: error: 'stoi' is not a member of 'std'
  2707. types.push_back(static_cast<unitType>(std::stoi(typesString[i])));
  2708. ^
  2709. rts/Init.h:553:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2710. re]
  2711. for (int i = 0; i < abl.size(); ++i)
  2712. ^
  2713. rts/Init.h:555:49: error: 'stoi' is not a member of 'std'
  2714. abilities.push_back(static_cast<OrderType>(std::stoi(abl[i])));
  2715. ^
  2716. rts/Init.h:561:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2717. re]
  2718. for (int i = 0; i < pass.size(); ++i)
  2719. ^
  2720. rts/Init.h:565:49: error: 'stoi' is not a member of 'std'
  2721. passives.push_back(static_cast<OrderType>(std::stoi(pass[i])));
  2722. ^
  2723. rts/Init.h:577:24: error: 'stof' is not a member of 'std'
  2724. unit.aggroRange_ = std::stof(get(arguments, "aggroRange"));
  2725. ^
  2726. rts/Init.h: In member function 'float Init::getfloat(const string&) const':
  2727. rts/Init.h:603:10: error: 'stof' is not a member of 'std'
  2728. return std::stof(get(valueMap, key));
  2729. ^
  2730. rts/Init.h: In member function 'Hotkey Init::getHotkey(const string&) const':
  2731. rts/Init.h:618:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2732. re]
  2733. for (int i = 1; i < args.size(); ++i)
  2734. ^
  2735. rts/Init.h:631:21: error: 'stoi' is not a member of 'std'
  2736. bool realtime = std::stoi(get(arguments, "realtime"));
  2737. ^
  2738. rts/Init.h:635:25: error: 'stoi' is not a member of 'std'
  2739. bool control = std::stoi(get(arguments, "control"));
  2740. ^
  2741. rts/Init.h:636:25: error: 'stoi' is not a member of 'std'
  2742. bool shift = std::stoi(get(arguments, "shift"));
  2743. ^
  2744. rts/Init.h:637:24: error: 'stoi' is not a member of 'std'
  2745. bool alt = std::stoi(get(arguments, "alt"));
  2746. ^
  2747. rts/Init.h:638:25: error: 'stoi' is not a member of 'std'
  2748. bool super = std::stoi(get(arguments, "super"));
  2749. ^
  2750. rts/Init.h:639:26: error: 'stoi' is not a member of 'std'
  2751. bool isButton = std::stoi(get(arguments, "isButton"));
  2752. ^
  2753. rts/Init.h:640:29: error: 'stoi' is not a member of 'std'
  2754. bool unitCardControl = std::stoi(get(arguments, "unitCardControl"));
  2755. ^
  2756. rts/Init.h:641:29: error: 'stoi' is not a member of 'std'
  2757. bool miniMapControl = std::stoi(get(arguments, "miniMapControl"));
  2758. ^
  2759. rts/Init.h:642:27: error: 'stoi' is not a member of 'std'
  2760. bool doubleTap = std::stoi(get(arguments, "doubleTap"));
  2761. ^
  2762. rts/Init.h:643:32: error: 'stoi' is not a member of 'std'
  2763. bool commandCardControl = std::stoi(get(arguments, "commandCardControl"));
  2764. ^
  2765. rts/Init.h:645:16: error: 'stoi' is not a member of 'std'
  2766. int key = std::stoi(get(arguments, "key"));
  2767. ^
  2768. rts/Init.h:646:19: error: 'stoi' is not a member of 'std'
  2769. int button = std::stoi(get(arguments, "button"));
  2770. ^
  2771. rts/Init.h:655:26: error: 'stoi' is not a member of 'std'
  2772. hotkey.eventType_ = std::stoi(get(arguments, "eventType"));
  2773. ^
  2774. rts/Init.h:679:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2775. re]
  2776. for (int i = 0; i < stringKeys.size(); ++i)
  2777. ^
  2778. rts/Init.h:681:31: error: 'stoi' is not a member of 'std'
  2779. hotkey.keys_.push_back(std::stoi(stringKeys[i]));
  2780. ^
  2781. rts/Init.h:689:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2782. re]
  2783. for (int i = 0; i < stringButtons.size(); ++i)
  2784. ^
  2785. rts/Init.h:691:34: error: 'stoi' is not a member of 'std'
  2786. hotkey.buttons_.push_back(std::stoi(stringButtons[i]));
  2787. ^
  2788. rts/Init.h: In member function 'sf::Mouse::Button Init::getButton(const string&) const':
  2789. rts/Init.h:715:41: error: 'stoi' is not a member of 'std'
  2790. return static_cast<sf::Mouse::Button>(std::stoi(get(valueMap, key)));
  2791. ^
  2792. rts/Init.h: In member function 'sf::Keyboard::Key Init::getKey(const string&) const':
  2793. rts/Init.h:720:41: error: 'stoi' is not a member of 'std'
  2794. return static_cast<sf::Keyboard::Key>(std::stoi(get(valueMap, key)));
  2795. ^
  2796. rts/Init.h: In member function 'Tile Init::getTile(const string&) const':
  2797. rts/Init.h:735:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2798. re]
  2799. for (int i = 1; i < args.size(); ++i)
  2800. ^
  2801. rts/Init.h:747:22: error: 'stof' is not a member of 'std'
  2802. float width = std::stof(get(arguments, "width"));
  2803. ^
  2804. rts/Init.h:748:22: error: 'stof' is not a member of 'std'
  2805. float height = std::stof(get(arguments, "height"));
  2806. ^
  2807. rts/Init.h:753:25: error: 'stof' is not a member of 'std'
  2808. float resources = std::stof(get(arguments, "resources"));
  2809. ^
  2810. rts/Init.h:755:25: error: 'stoi' is not a member of 'std'
  2811. bool passable = std::stoi(get(arguments, "passable"));
  2812. ^
  2813. rts/Init.h:756:46: error: 'stoi' is not a member of 'std'
  2814. TileType type = static_cast<TileType>(std::stoi(get(arguments, "type")));
  2815. ^
  2816. rts/Init.h:753:11: warning: unused variable 'resources' [-Wunused-variable]
  2817. float resources = std::stof(get(arguments, "resources"));
  2818. ^
  2819. rts/Init.h: In member function 'Wall Init::getWall(const string&) const':
  2820. rts/Init.h:788:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2821. re]
  2822. for (int i = 1; i < args.size(); ++i)
  2823. ^
  2824. rts/Init.h:801:27: error: 'stof' is not a member of 'std'
  2825. float width = std::stof(get(arguments, "width"));
  2826. ^
  2827. rts/Init.h:802:27: error: 'stof' is not a member of 'std'
  2828. float height = std::stof(get(arguments, "height"));
  2829. ^
  2830. rts/Init.h:807:50: error: 'stoi' is not a member of 'std'
  2831. WallType type = static_cast<WallType>(std::stoi(get(arguments, "type")));
  2832. ^
  2833. rts/Init.h:813:30: error: 'stoi' is not a member of 'std'
  2834. wall.canBeSeenThrough_ = std::stoi(get(arguments, "canBeSeenThrough"));
  2835. ^
  2836. rts/Init.h:814:31: error: 'stoi' is not a member of 'std'
  2837. wall.canBeMovedThrough_ = std::stoi(get(arguments, "canBeMovedThrough"));
  2838. ^
  2839. rts/Init.h:815:28: error: 'stoi' is not a member of 'std'
  2840. wall.canBeDestroyed_ = std::stoi(get(arguments, "canBeDestroyed"));
  2841. ^
  2842. rts/Init.h:816:37: error: 'stoi' is not a member of 'std'
  2843. wall.canBePartiallyDestroyed_ = std::stoi(get(arguments, "canBePartiallyDestroyed"));
  2844. ^
  2845. rts/Init.h:817:23: error: 'stof' is not a member of 'std'
  2846. wall.hitPoints_ = std::stof(get(arguments, "hitPoints"));
  2847. ^
  2848. rts/Init.h: In member function 'std::vector<Wall*> Init::getWalls(const string&) const':
  2849. rts/Init.h:848:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2850. re]
  2851. for (int i = 1; i < args.size(); ++i)
  2852. ^
  2853. rts/Init.h:852:24: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2854. re]
  2855. for (int j = 0; j < dataSet.size(); ++j)
  2856. ^
  2857. rts/Init.h:859:13: error: 'stof' is not a member of 'std'
  2858. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  2859. texture_));
  2860. ^
  2861. rts/Init.h:859:33: error: 'stof' is not a member of 'std'
  2862. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  2863. texture_));
  2864. ^
  2865. rts/Init.h:859:53: error: 'stof' is not a member of 'std'
  2866. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  2867. texture_));
  2868. ^
  2869. rts/Init.h:859:73: error: 'stof' is not a member of 'std'
  2870. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  2871. texture_));
  2872. ^
  2873. rts/Init.h: In member function 'Faction Init::getFaction(const string&) const':
  2874. rts/Init.h:888:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2875. re]
  2876. for (int i = 1; i < args.size(); ++i)
  2877. ^
  2878. rts/Init.h:900:35: error: 'stoi' is not a member of 'std'
  2879. int numberOfResourceTypes = std::stoi(get(arguments, "numberOfResourceTypes"));
  2880. ^
  2881. rts/Init.h:901:30: error: 'stof' is not a member of 'std'
  2882. float maxSupply = std::stof(get(arguments, "maxSupply"));
  2883. ^
  2884. rts/Init.h:902:32: error: 'stof' is not a member of 'std'
  2885. float civilianFavor = std::stof(get(arguments, "civilianFavor"));
  2886. ^
  2887. rts/Init.h:903:55: error: 'stoi' is not a member of 'std'
  2888. FactionType type = static_cast<FactionType>(std::stoi(get(arguments, "type")));
  2889. ^
  2890. rts/Init.h:912:40: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  2891. re]
  2892. if (currentResourcesstring.size() > i)
  2893. ^
  2894. rts/Init.h:914:34: error: 'stof' is not a member of 'std'
  2895. currentResources.push_back(std::stof(currentResourcesstring[i]));
  2896. ^
  2897. rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allUnits() const':
  2898. rts/Init.h:947:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  2899. for (auto const& element : valueMap)
  2900. ^
  2901. rts/Init.h:947:30: error: range-based 'for' loops are not allowed in C++98 mode
  2902. for (auto const& element : valueMap)
  2903. ^
  2904. rts/Init.h:949:16: error: request for member 'second' in 'element', which is of non-class type 'con
  2905. t int'
  2906. if (element.second.compare(0, 4, "Unit") == 0)
  2907. ^
  2908. rts/Init.h:951:30: error: request for member 'first' in 'element', which is of non-class type 'cons
  2909. int'
  2910. result.push_back(element.first);
  2911. ^
  2912. rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allWalls() const':
  2913. rts/Init.h:961:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  2914. for (auto const& element : valueMap)
  2915. ^
  2916. rts/Init.h:961:30: error: range-based 'for' loops are not allowed in C++98 mode
  2917. for (auto const& element : valueMap)
  2918. ^
  2919. rts/Init.h:963:16: error: request for member 'second' in 'element', which is of non-class type 'con
  2920. t int'
  2921. if (element.second.compare(0, 4, "Wall") == 0)
  2922. ^
  2923. rts/Init.h:965:30: error: request for member 'first' in 'element', which is of non-class type 'cons
  2924. int'
  2925. result.push_back(element.first);
  2926. ^
  2927. In file included from rts/general/Units.h:29:0,
  2928. from rts/general/Units.cpp:26:
  2929. rts/Hotkeys.h: At global scope:
  2930. rts/Hotkeys.h:133:6: error: 'unordered_map' in namespace 'std' does not name a template type
  2931. std::unordered_map<Hotkey, vector<Function>> hotkeys_;
  2932. ^
  2933. rts/Hotkeys.h: In constructor 'Hotkeys::Hotkeys(std::string)':
  2934. rts/Hotkeys.h:16:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  2935. for (auto const& p : config.valueMap)
  2936. ^
  2937. rts/Hotkeys.h:16:24: error: range-based 'for' loops are not allowed in C++98 mode
  2938. for (auto const& p : config.valueMap)
  2939. ^
  2940. rts/Hotkeys.h:18:46: error: request for member 'second' in 'p', which is of non-class type 'const i
  2941. t'
  2942. vector<string> arguments = config.split(p.second, ' ');
  2943. ^
  2944. rts/Hotkeys.h:22:46: error: request for member 'first' in 'p', which is of non-class type 'const in
  2945. '
  2946. Function function = config.getFunction(p.first);
  2947. ^
  2948. rts/Hotkeys.h:23:23: warning: comparison between signed and unsigned integer expressions [-Wsign-co
  2949. pare]
  2950. for (int i = 1; i < arguments.size(); ++i)
  2951. ^
  2952. rts/Hotkeys.h:32:25: warning: comparison between signed and unsigned integer expressions [-Wsign-co
  2953. pare]
  2954. for (int i = 0; i < hotkeysstring.size(); ++i)
  2955. ^
  2956. rts/Hotkeys.h:114:24: warning: comparison between signed and unsigned integer expressions [-Wsign-c
  2957. mpare]
  2958. for (int i = 0; i < hotkeys.size(); ++i)
  2959. ^
  2960. rts/Hotkeys.h:117:11: error: 'hotkeys_' was not declared in this scope
  2961. if (hotkeys_.count(hotkey) == 0)
  2962. ^
  2963. rts/Hotkeys.h:126:7: error: 'hotkeys_' was not declared in this scope
  2964. hotkeys_[hotkey].push_back(function);
  2965. ^
  2966. In file included from rts/general/Units.h:31:0,
  2967. from rts/general/Units.cpp:26:
  2968. rts/general/Terrain.h: In member function 'int Terrain::findTile(f2)':
  2969. rts/general/Terrain.h:17:21: warning: comparison between signed and unsigned integer expressions [-
  2970. sign-compare]
  2971. for (int i = 0; i < objects_.size(); ++i)
  2972. ^
  2973. In file included from rts/general/Units.h:33:0,
  2974. from rts/general/Units.cpp:26:
  2975. rts/general/UI.h: In member function 'int UI::hovered(f2)':
  2976. rts/general/UI.h:15:21: warning: comparison between signed and unsigned integer expressions [-Wsign
  2977. compare]
  2978. for (int i = 0; i < UIElements_.size(); ++i)
  2979. ^
  2980. rts/general/UI.h: In member function 'void UI::setQuad(sf::VertexArray*)':
  2981. rts/general/UI.h:27:21: warning: comparison between signed and unsigned integer expressions [-Wsign
  2982. compare]
  2983. for (int i = 0; i < UIElements_.size(); ++i)
  2984. ^
  2985. rts/general/UI.h: In member function 'void UI::drawText()':
  2986. rts/general/UI.h:35:21: warning: comparison between signed and unsigned integer expressions [-Wsign
  2987. compare]
  2988. for (int i = 0; i < UITextElements_.size(); ++i)
  2989. ^
  2990. In file included from rts/general/Units.h:39:0,
  2991. from rts/general/Units.cpp:26:
  2992. rts/general/EditorAction.h: At global scope:
  2993. rts/general/EditorAction.h:40:41: warning: non-static data member initializers only available with
  2994. std=c++11 or -std=gnu++11
  2995. vector<f2> unitsDisabled_ = vector<f2>(0);
  2996. ^
  2997. rts/general/EditorAction.h:41:43: warning: non-static data member initializers only available with
  2998. std=c++11 or -std=gnu++11
  2999. vector<int> wallsDisabled_ = vector<int>(0);
  3000. ^
  3001. rts/general/EditorAction.h:42:40: warning: non-static data member initializers only available with
  3002. std=c++11 or -std=gnu++11
  3003. vector<f2> unitsEnabled_ = vector<f2>(0);
  3004. ^
  3005. rts/general/EditorAction.h:43:42: warning: non-static data member initializers only available with
  3006. std=c++11 or -std=gnu++11
  3007. vector<int> wallsEnabled_ = vector<int>(0);
  3008. ^
  3009. In file included from rts/general/Units.cpp:26:0:
  3010. rts/general/Units.h:85:204: error: 'function' in namespace 'std' does not name a template type
  3011. f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
  3012. 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
  3013. td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
  3014.  
  3015.  
  3016. ^
  3017. rts/general/Units.h:85:212: error: expected ',' or '...' before '<' token
  3018. f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
  3019. 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
  3020. td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
  3021.  
  3022.  
  3023. ^
  3024. rts/general/Units.h:147:7: error: 'unordered_map' in namespace 'std' does not name a template type
  3025. std::unordered_map<int, Unit*>::iterator kill(f2 unit, bool deleteWalls = false);
  3026. ^
  3027. rts/general/Units.h:218:70: error: '>>' should be '> >' within a nested template argument list
  3028. void setFogTries(const f2& center, float radius, vector<vector<float>> lines, sf::VertexArray* ve
  3029. tices);
  3030. ^
  3031. rts/general/Units.h:257:8: error: 'unordered_map' is not a member of 'std'
  3032. vector<std::unordered_map<int, Unit*>> units_;
  3033. ^
  3034. rts/general/Units.h:257:8: error: 'unordered_map' is not a member of 'std'
  3035. rts/general/Units.h:257:40: error: template argument 1 is invalid
  3036. vector<std::unordered_map<int, Unit*>> units_;
  3037. ^
  3038. rts/general/Units.h:257:40: error: template argument 2 is invalid
  3039. rts/general/Units.h:258:15: error: 'unordered_map' is not a member of 'std'
  3040. vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
  3041. ^
  3042. rts/general/Units.h:258:15: error: 'unordered_map' is not a member of 'std'
  3043. rts/general/Units.h:258:46: error: template argument 1 is invalid
  3044. vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
  3045. ^
  3046. rts/general/Units.h:258:46: error: template argument 2 is invalid
  3047. rts/general/Units.h:258:48: error: template argument 1 is invalid
  3048. vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
  3049. ^
  3050. rts/general/Units.h:258:48: error: template argument 2 is invalid
  3051. rts/general/Units.h:264:34: error: '>>' should be '> >' within a nested template argument list
  3052. vector<vector<vector<vector<Unit*>>>> unitsGrid_;
  3053. ^
  3054. rts/general/Units.h:264:36: error: '>>' should be '> >' within a nested template argument list
  3055. vector<vector<vector<vector<Unit*>>>> unitsGrid_;
  3056. ^
  3057. rts/general/Units.h:268:23: error: '>>' should be '> >' within a nested template argument list
  3058. vector<vector<relation>> relationTable_;
  3059. ^
  3060. rts/general/Units.h:284:20: error: '>>' should be '> >' within a nested template argument list
  3061. vector<vector<Unit*>> controlGroups_;
  3062. ^
  3063. rts/general/Units.h:286:19: warning: non-static data member initializers only available with -std=c
  3064. +11 or -std=gnu++11
  3065. long IDCounter_ = 0;
  3066. ^
  3067. rts/general/Units.h:290:38: warning: non-static data member initializers only available with -std=c
  3068. +11 or -std=gnu++11
  3069. string selectedSubGroupType_ = "none";
  3070. ^
  3071. rts/general/Units.h:299:30: warning: non-static data member initializers only available with -std=c
  3072. +11 or -std=gnu++11
  3073. bool creatingSelectionBox_ = false;
  3074. ^
  3075. rts/general/Units.h:310:27: warning: non-static data member initializers only available with -std=c
  3076. +11 or -std=gnu++11
  3077. bool updatePathfinding_ = false;
  3078. ^
  3079. rts/general/Units.h:339:6: error: 'unordered_map' in namespace 'std' does not name a template type
  3080. std::unordered_map<int, Wall*> walls_;
  3081. ^
  3082. rts/general/Units.h:340:23: warning: non-static data member initializers only available with -std=c
  3083. +11 or -std=gnu++11
  3084. long wallIDCounter_ = 0;
  3085. ^
  3086. rts/general/Units.h:342:20: error: '>>' should be '> >' within a nested template argument list
  3087. vector<vector<float>> anglesSet_;
  3088. ^
  3089. rts/general/Units.h:343:20: error: '>>' should be '> >' within a nested template argument list
  3090. vector<vector<float>> anglesSetOriginal_;
  3091. ^
  3092. rts/general/Units.h:348:24: warning: non-static data member initializers only available with -std=c
  3093. +11 or -std=gnu++11
  3094. GameState gameState_ = DEFAULT;
  3095. ^
  3096. rts/general/Units.h:354:19: warning: non-static data member initializers only available with -std=c
  3097. +11 or -std=gnu++11
  3098. int editorTeam_ = 0;
  3099. ^
  3100. rts/general/Units.h:359:27: warning: non-static data member initializers only available with -std=c
  3101. +11 or -std=gnu++11
  3102. int editorActionsIndex_ = 0;
  3103. ^
  3104. rts/general/Units.h:361:23: warning: non-static data member initializers only available with -std=c
  3105. +11 or -std=gnu++11
  3106. bool abilityCursor_ = false;
  3107. ^
  3108. In file included from rts/general/Units.cpp:26:0:
  3109. rts/general/Units.h:85:5: error: default argument missing for parameter 9 of 'f2 Units::closestUnit
  3110. f2, float, std::vector<int>, int, f2, std::string, bool, relation, int)'
  3111. f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
  3112. 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
  3113. td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
  3114. ^
  3115. In file included from rts/general/Units.cpp:26:0:
  3116. rts/general/Units.h: In member function 'Unit* Units::getUnit(f2)':
  3117. rts/general/Units.h:91:38: error: 'units_' was not declared in this scope
  3118. Unit* getUnit(f2 unitIndex) {return units_[unitIndex.x].at(unitIndex.y);}
  3119. ^
  3120. rts/general/Units.cpp: In constructor 'Units::Units(sf::RenderTexture*, sf::Texture*, GameState, sf
  3121. :RenderWindow*, sf::View*)':
  3122. rts/general/Units.cpp:48:41: error: '>>' should be '> >' within a nested template argument list
  3123. relationTable_ = vector<vector<relation>>(amountOfTeams);
  3124. ^
  3125. rts/general/Units.cpp:49:2: error: 'units_' was not declared in this scope
  3126. units_ = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
  3127. ^
  3128. rts/general/Units.cpp:49:18: error: 'unordered_map' is not a member of 'std'
  3129. units_ = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
  3130. ^
  3131. rts/general/Units.cpp:49:18: error: 'unordered_map' is not a member of 'std'
  3132. rts/general/Units.cpp:49:63: error: template argument 1 is invalid
  3133. units_ = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
  3134. ^
  3135. rts/general/Units.cpp:49:63: error: template argument 2 is invalid
  3136. rts/general/Units.cpp:51:48: error: '>>' should be '> >' within a nested template argument list
  3137. unitsGrid_ = vector<vector<vector<vector<Unit*>>>>(amountOfTeams);
  3138. ^
  3139. rts/general/Units.cpp:51:50: error: '>>' should be '> >' within a nested template argument list
  3140. unitsGrid_ = vector<vector<vector<vector<Unit*>>>>(amountOfTeams);
  3141. ^
  3142. rts/general/Units.cpp:52:20: warning: comparison between signed and unsigned integer expressions [-
  3143. sign-compare]
  3144. for (int i = 0; i < unitsGrid_.size(); ++i)
  3145. ^
  3146. rts/general/Units.cpp:54:45: error: '>>' should be '> >' within a nested template argument list
  3147. unitsGrid_[i] = vector<vector<vector<Unit*>>>(int(Init(VALUES.getstring("mapFile")).getRect("gro
  3148. ndTextureNormal").getSize().x) / int(VALUES.getf2("gridSquareSize").x));
  3149. ^
  3150. rts/general/Units.cpp:55:21: warning: comparison between signed and unsigned integer expressions [-
  3151. sign-compare]
  3152. for (int x = 0; x < unitsGrid_[i].size(); ++x)
  3153. ^
  3154. rts/general/Units.cpp:57:42: error: '>>' should be '> >' within a nested template argument list
  3155. unitsGrid_[i][x] = vector<vector<Unit*>>(int(Init(VALUES.getstring("mapFile")).getRect("groundT
  3156. xtureNormal").getSize().y) / int(VALUES.getf2("gridSquareSize").y));
  3157. ^
  3158. rts/general/Units.cpp:60:2: error: 'visibleUnits_' was not declared in this scope
  3159. visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
  3160. ^
  3161. rts/general/Units.cpp:60:32: error: 'unordered_map' is not a member of 'std'
  3162. visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
  3163. ^
  3164. rts/general/Units.cpp:60:32: error: 'unordered_map' is not a member of 'std'
  3165. rts/general/Units.cpp:60:63: error: template argument 1 is invalid
  3166. visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
  3167. ^
  3168. rts/general/Units.cpp:60:63: error: template argument 2 is invalid
  3169. rts/general/Units.cpp:60:65: error: 'amountOfTeams' cannot appear in a constant-expression
  3170. visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
  3171. ^
  3172. rts/general/Units.cpp:60:78: error: template argument 1 is invalid
  3173. visibleUnits_ = vector<vector<std::unordered_map<int, Unit*>>>(amountOfTeams);
  3174. ^
  3175. rts/general/Units.cpp:60:78: error: template argument 2 is invalid
  3176. rts/general/Units.cpp:64:29: error: 'unordered_map' is not a member of 'std'
  3177. visibleUnits_[i] = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
  3178. ^
  3179. rts/general/Units.cpp:64:29: error: 'unordered_map' is not a member of 'std'
  3180. rts/general/Units.cpp:64:74: error: template argument 1 is invalid
  3181. visibleUnits_[i] = vector<std::unordered_map<int, Unit*>>(amountOfTeams);
  3182. ^
  3183. rts/general/Units.cpp:64:74: error: template argument 2 is invalid
  3184. rts/general/Units.cpp:69:38: error: '>>' should be '> >' within a nested template argument list
  3185. controlGroups_ = vector<vector<Unit*>>(15);
  3186. ^
  3187. rts/general/Units.cpp:103:64: warning: extended initializer lists only available with -std=c++11 or
  3188. -std=gnu++11
  3189. smallPathfinding_ = Pathfinding(currentMapTexture_.getSize(), {50.f, 50.f});
  3190. ^
  3191. rts/general/Units.cpp:103:76: warning: extended initializer lists only available with -std=c++11 or
  3192. -std=gnu++11
  3193. smallPathfinding_ = Pathfinding(currentMapTexture_.getSize(), {50.f, 50.f});
  3194. ^
  3195. rts/general/Units.cpp:104:65: warning: extended initializer lists only available with -std=c++11 or
  3196. -std=gnu++11
  3197. mediumPathfinding_ = Pathfinding(currentMapTexture_.getSize(), {100.f, 100.f});
  3198. ^
  3199. rts/general/Units.cpp:104:79: warning: extended initializer lists only available with -std=c++11 or
  3200. -std=gnu++11
  3201. mediumPathfinding_ = Pathfinding(currentMapTexture_.getSize(), {100.f, 100.f});
  3202. ^
  3203. rts/general/Units.cpp:105:64: warning: extended initializer lists only available with -std=c++11 or
  3204. -std=gnu++11
  3205. largePathfinding_ = Pathfinding(currentMapTexture_.getSize(), {200.f, 200.f});
  3206. ^
  3207. rts/general/Units.cpp:105:78: warning: extended initializer lists only available with -std=c++11 or
  3208. -std=gnu++11
  3209. largePathfinding_ = Pathfinding(currentMapTexture_.getSize(), {200.f, 200.f});
  3210. ^
  3211. rts/general/Units.cpp:107:20: warning: comparison between signed and unsigned integer expressions [
  3212. Wsign-compare]
  3213. for (int i = 0; i < unpassableTiles_.size(); ++i)
  3214. ^
  3215. rts/general/Units.cpp:121:33: error: expected primary-expression before '(' token
  3216. unitVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
  3217. ^
  3218. rts/general/Units.cpp:121:38: error: 'sf::PrimitiveType' is not a class or namespace
  3219. unitVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
  3220. ^
  3221. rts/general/Units.cpp:122:29: error: expected primary-expression before '(' token
  3222. fogOfWar_ = sf::VertexArray(sf::PrimitiveType::Triangles);
  3223. ^
  3224. rts/general/Units.cpp:122:34: error: 'sf::PrimitiveType' is not a class or namespace
  3225. fogOfWar_ = sf::VertexArray(sf::PrimitiveType::Triangles);
  3226. ^
  3227. rts/general/Units.cpp:124:20: error: 'GameState' is not a class or namespace
  3228. if (gameState_ == GameState::BUILDING_EDITOR)
  3229. ^
  3230. rts/general/Units.cpp:131:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3231. pat]
  3232. for (auto const& element : hotkeys_.hotkeys_)
  3233. ^
  3234. rts/general/Units.cpp:131:29: error: range-based 'for' loops are not allowed in C++98 mode
  3235. for (auto const& element : hotkeys_.hotkeys_)
  3236. ^
  3237. rts/general/Units.cpp:131:38: error: 'class Hotkeys' has no member named 'hotkeys_'
  3238. for (auto const& element : hotkeys_.hotkeys_)
  3239. ^
  3240. rts/general/Units.cpp:133:40: error: request for member 'second' in 'element', which is of non-clas
  3241. type 'const int'
  3242. vector<Function> functions = element.second;
  3243. ^
  3244. rts/general/Units.cpp:134:21: warning: comparison between signed and unsigned integer expressions [
  3245. Wsign-compare]
  3246. for (int i = 0; i < functions.size(); ++i)
  3247. ^
  3248. rts/general/Units.cpp:139:57: error: request for member 'first' in 'element', which is of non-class
  3249. type 'const int'
  3250. UIHotkeysNames_[type - 4] = string() + char(element.first.key_ + 65);
  3251. ^
  3252. rts/general/Units.cpp: In member function 'void Units::createBuildingEditorUI()':
  3253. rts/general/Units.cpp:155:20: warning: comparison between signed and unsigned integer expressions [
  3254. Wsign-compare]
  3255. for (int i = 0; i < walls.size(); ++i)
  3256. ^
  3257. rts/general/Units.cpp:160:20: warning: comparison between signed and unsigned integer expressions [
  3258. Wsign-compare]
  3259. for (int i = 0; i < units.size(); ++i)
  3260. ^
  3261. rts/general/Units.cpp:169:20: warning: comparison between signed and unsigned integer expressions [
  3262. Wsign-compare]
  3263. for (int i = 0; i < buildingEditorUIWalls_.UIElements_.size(); ++i)
  3264. ^
  3265. rts/general/Units.cpp:178:20: warning: comparison between signed and unsigned integer expressions [
  3266. Wsign-compare]
  3267. for (int i = 0; i < buildingEditorUIUnits_.UIElements_.size(); ++i)
  3268. ^
  3269. rts/general/Units.cpp: In member function 'void Units::createMap()':
  3270. rts/general/Units.cpp:203:21: warning: comparison between signed and unsigned integer expressions [
  3271. Wsign-compare]
  3272. for (int i = 0; i < teams.size(); ++i)
  3273. ^
  3274. rts/general/Units.cpp:217:21: warning: comparison between signed and unsigned integer expressions [
  3275. Wsign-compare]
  3276. for (int i = 0; i < args.size(); ++i)
  3277. ^
  3278. rts/general/Units.cpp:228:23: warning: comparison between signed and unsigned integer expressions [
  3279. Wsign-compare]
  3280. for (int i = 0; i < values.size(); ++i)
  3281. ^
  3282. rts/general/Units.cpp:233:17: error: 'stof' is not a member of 'std'
  3283. float x = std::stof(positions[1]);
  3284. ^
  3285. rts/general/Units.cpp:234:17: error: 'stof' is not a member of 'std'
  3286. float y = std::stof(positions[2]);
  3287. ^
  3288. rts/general/Units.cpp:236:26: error: in C++98 'position' must be initialized by constructor, not by
  3289. '{...}'
  3290. f2 position = {x, y};
  3291. ^
  3292. rts/general/Units.cpp:253:20: error: 'GameState' is not a class or namespace
  3293. if (gameState_ == GameState::DEFAULT)
  3294. ^
  3295. rts/general/Units.cpp:257:25: error: 'GameState' is not a class or namespace
  3296. else if (gameState_ == GameState::BUILDING_EDITOR)
  3297. ^
  3298. rts/general/Units.cpp:265:21: error: range-based 'for' loops are not allowed in C++98 mode
  3299. for (Wall* wall : walls)
  3300. ^
  3301. rts/general/Units.cpp:284:21: warning: comparison between signed and unsigned integer expressions [
  3302. Wsign-compare]
  3303. for (int i = 0; i < args.size(); ++i)
  3304. ^
  3305. rts/general/Units.cpp:289:15: error: 'stoi' is not a member of 'std'
  3306. int team = std::stoi(unitAndTeam[1]);
  3307. ^
  3308. rts/general/Units.cpp:296:23: warning: comparison between signed and unsigned integer expressions [
  3309. Wsign-compare]
  3310. for (int i = 0; i < values.size(); ++i)
  3311. ^
  3312. rts/general/Units.cpp:301:17: error: 'stof' is not a member of 'std'
  3313. float x = std::stof(positions[1]);
  3314. ^
  3315. rts/general/Units.cpp:302:17: error: 'stof' is not a member of 'std'
  3316. float y = std::stof(positions[2]);
  3317. ^
  3318. rts/general/Units.cpp:304:26: error: in C++98 'position' must be initialized by constructor, not by
  3319. '{...}'
  3320. f2 position = {x, y};
  3321. ^
  3322. rts/general/Units.cpp:322:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3323. pat]
  3324. for (auto const& element: walls_)
  3325. ^
  3326. rts/general/Units.cpp:322:29: error: range-based 'for' loops are not allowed in C++98 mode
  3327. for (auto const& element: walls_)
  3328. ^
  3329. rts/general/Units.cpp:322:29: error: 'walls_' was not declared in this scope
  3330. rts/general/Units.cpp:324:50: error: request for member 'second' in 'element', which is of non-clas
  3331. type 'const int'
  3332. image.copy(image, texturePosition.x + element.second->getLeft(), texturePosition.y + element.se
  3333. ond->getTop(),
  3334. ^
  3335. rts/general/Units.cpp:324:97: error: request for member 'second' in 'element', which is of non-clas
  3336. type 'const int'
  3337. image.copy(image, texturePosition.x + element.second->getLeft(), texturePosition.y + element.se
  3338. ond->getTop(),
  3339. ^
  3340. rts/general/Units.cpp:325:18: error: request for member 'second' in 'element', which is of non-clas
  3341. type 'const int'
  3342. Rect(element.second->texture_.topLeft(), element.second->getSize()), true);
  3343. ^
  3344. rts/general/Units.cpp:325:54: error: request for member 'second' in 'element', which is of non-clas
  3345. type 'const int'
  3346. Rect(element.second->texture_.topLeft(), element.second->getSize()), true);
  3347. ^
  3348. rts/general/Units.cpp: In member function 'Ability* Units::getAbility(OrderType)':
  3349. rts/general/Units.cpp:334:20: warning: comparison between signed and unsigned integer expressions [
  3350. Wsign-compare]
  3351. for (int i = 0; i < usableAbilities_.size(); ++i)
  3352. ^
  3353. rts/general/Units.cpp: In member function 'bool Units::selectUnitsInBox(const f2&, const f2&, const
  3354. int&)':
  3355. rts/general/Units.cpp:346:20: error: 'GameState' is not a class or namespace
  3356. if (gameState_ == GameState::DEFAULT)
  3357. ^
  3358. rts/general/Units.cpp:350:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3359. pat]
  3360. for (auto const& element : units_[team])
  3361. ^
  3362. rts/general/Units.cpp:350:30: error: range-based 'for' loops are not allowed in C++98 mode
  3363. for (auto const& element : units_[team])
  3364. ^
  3365. rts/general/Units.cpp:350:30: error: 'units_' was not declared in this scope
  3366. rts/general/Units.cpp:352:39: error: request for member 'second' in 'element', which is of non-clas
  3367. type 'const int'
  3368. if (selectionRect.contains(element.second->center()) or element.second->contains(boxStart) or
  3369. ^
  3370. rts/general/Units.cpp:352:68: error: request for member 'second' in 'element', which is of non-clas
  3371. type 'const int'
  3372. if (selectionRect.contains(element.second->center()) or element.second->contains(boxStart) or
  3373. ^
  3374. rts/general/Units.cpp:353:14: error: request for member 'second' in 'element', which is of non-clas
  3375. type 'const int'
  3376. element.second->contains(boxEnd))
  3377. ^
  3378. rts/general/Units.cpp:356:13: error: request for member 'second' in 'element', which is of non-clas
  3379. type 'const int'
  3380. element.second->selected_ = true;
  3381. ^
  3382. rts/general/Units.cpp:361:25: error: 'GameState' is not a class or namespace
  3383. else if (gameState_ == GameState::BUILDING_EDITOR)
  3384. ^
  3385. rts/general/Units.cpp:381:29: warning: extended initializer lists only available with -std=c++11 or
  3386. -std=gnu++11
  3387. action.wallsEnabled_ = {id};
  3388. ^
  3389. rts/general/Units.cpp:381:24: warning: extended initializer lists only available with -std=c++11 or
  3390. -std=gnu++11
  3391. action.wallsEnabled_ = {id};
  3392. ^
  3393. rts/general/Units.cpp:381:24: error: converting to 'const std::vector<int>' from initializer list w
  3394. uld use explicit constructor 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type,
  3395. const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vecto
  3396. <_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_T
  3397. , _Alloc>::allocator_type = std::allocator<int>]'
  3398. rts/general/Units.cpp:381:24: warning: narrowing conversion of 'id' from 'int' to 'std::vector<int>
  3399. :size_type {aka unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
  3400. rts/general/Units.cpp: In member function 'void Units::deselectAll()':
  3401. rts/general/Units.cpp:388:28: error: 'units_' was not declared in this scope
  3402. for (int team = 0; team < units_.size(); ++team)
  3403. ^
  3404. rts/general/Units.cpp:390:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3405. pat]
  3406. for (auto const& element : units_[team])
  3407. ^
  3408. rts/general/Units.cpp:390:30: error: range-based 'for' loops are not allowed in C++98 mode
  3409. for (auto const& element : units_[team])
  3410. ^
  3411. rts/general/Units.cpp:392:12: error: request for member 'second' in 'element', which is of non-clas
  3412. type 'const int'
  3413. element.second->selected_ = false;
  3414. ^
  3415. rts/general/Units.cpp: In member function 'void Units::attack(const f2&, const f2&)':
  3416. rts/general/Units.cpp:435:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3417. pat]
  3418. for (auto const& element : walls_)
  3419. ^
  3420. rts/general/Units.cpp:435:30: error: range-based 'for' loops are not allowed in C++98 mode
  3421. for (auto const& element : walls_)
  3422. ^
  3423. rts/general/Units.cpp:435:30: error: 'walls_' was not declared in this scope
  3424. rts/general/Units.cpp:437:25: error: request for member 'second' in 'element', which is of non-clas
  3425. type 'const int'
  3426. Wall* wall = element.second;
  3427. ^
  3428. rts/general/Units.cpp: At global scope:
  3429. rts/general/Units.cpp:456:6: error: 'unordered_map' in namespace 'std' does not name a template typ
  3430.  
  3431. std::unordered_map<int, Unit*>::iterator Units::kill(f2 unitIndex, bool deleteWalls)
  3432. ^
  3433. rts/general/Units.cpp: In member function 'void Units::orderSelected(Order, bool)':
  3434. rts/general/Units.cpp:513:20: warning: comparison between signed and unsigned integer expressions [
  3435. Wsign-compare]
  3436. for (int i = 0; i < selectedUnits_.size(); ++i)
  3437. ^
  3438. rts/general/Units.cpp: In member function 'void Units::orderSelectedSubGroup(Order, bool)':
  3439. rts/general/Units.cpp:521:20: warning: comparison between signed and unsigned integer expressions [
  3440. Wsign-compare]
  3441. for (int i = 0; i < selectedUnitsSubGroup_.size(); ++i)
  3442. ^
  3443. rts/general/Units.cpp: In member function 'f2 Units::findUnitIndex(f2)':
  3444. rts/general/Units.cpp:529:28: error: 'units_' was not declared in this scope
  3445. for (int team = 0; team < units_.size(); ++team)
  3446. ^
  3447. rts/general/Units.cpp:531:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3448. pat]
  3449. for (auto const& element : units_[team])
  3450. ^
  3451. rts/general/Units.cpp:531:30: error: range-based 'for' loops are not allowed in C++98 mode
  3452. for (auto const& element : units_[team])
  3453. ^
  3454. rts/general/Units.cpp:533:16: error: request for member 'second' in 'element', which is of non-clas
  3455. type 'const int'
  3456. if (element.second->axisAlignedContains(position))
  3457. ^
  3458. rts/general/Units.cpp:535:29: error: request for member 'first' in 'element', which is of non-class
  3459. type 'const int'
  3460. return f2(team, element.first);
  3461. ^
  3462. rts/general/Units.cpp: In member function 'int Units::findWallIndex(f2)':
  3463. rts/general/Units.cpp:544:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3464. pat]
  3465. for (auto const& element : walls_)
  3466. ^
  3467. rts/general/Units.cpp:544:29: error: range-based 'for' loops are not allowed in C++98 mode
  3468. for (auto const& element : walls_)
  3469. ^
  3470. rts/general/Units.cpp:544:29: error: 'walls_' was not declared in this scope
  3471. rts/general/Units.cpp:546:15: error: request for member 'second' in 'element', which is of non-clas
  3472. type 'const int'
  3473. if (element.second->axisAlignedContains(position))
  3474. ^
  3475. rts/general/Units.cpp:548:19: error: request for member 'first' in 'element', which is of non-class
  3476. type 'const int'
  3477. return element.first;
  3478. ^
  3479. rts/general/Units.cpp: In member function 'f2 Units::findUnitIndex(int)':
  3480. rts/general/Units.cpp:556:28: error: 'units_' was not declared in this scope
  3481. for (int team = 0; team < units_.size(); ++team)
  3482. ^
  3483. rts/general/Units.cpp: In member function 'void Units::dynamicAbility(f2, bool)':
  3484. rts/general/Units.cpp:582:20: warning: comparison between signed and unsigned integer expressions [
  3485. Wsign-compare]
  3486. for (int i = 0; i < unpassableTiles_.size(); ++i)
  3487. ^
  3488. rts/general/Units.cpp:590:28: error: 'visibleUnits_' was not declared in this scope
  3489. for (int team = 0; team < visibleUnits_[currentTeam_].size(); ++team)
  3490. ^
  3491. rts/general/Units.cpp:592:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3492. pat]
  3493. for (auto const& element : visibleUnits_[currentTeam_][team])
  3494. ^
  3495. rts/general/Units.cpp:592:30: error: range-based 'for' loops are not allowed in C++98 mode
  3496. for (auto const& element : visibleUnits_[currentTeam_][team])
  3497. ^
  3498. rts/general/Units.cpp:594:25: error: request for member 'second' in 'element', which is of non-clas
  3499. type 'const int'
  3500. Unit* unit = element.second;
  3501. ^
  3502. rts/general/Units.cpp: In member function 'Wall* Units::getNearestWall(const f2&)':
  3503. rts/general/Units.cpp:630:19: error: 'numeric_limits' is not a member of 'std'
  3504. float distance = std::numeric_limits<float>::infinity();
  3505. ^
  3506. rts/general/Units.cpp:630:39: error: expected primary-expression before 'float'
  3507. float distance = std::numeric_limits<float>::infinity();
  3508. ^
  3509. rts/general/Units.cpp:632:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3510. pat]
  3511. for (auto const& element : walls_)
  3512. ^
  3513. rts/general/Units.cpp:632:29: error: range-based 'for' loops are not allowed in C++98 mode
  3514. for (auto const& element : walls_)
  3515. ^
  3516. rts/general/Units.cpp:632:29: error: 'walls_' was not declared in this scope
  3517. rts/general/Units.cpp:634:27: error: request for member 'second' in 'element', which is of non-clas
  3518. type 'const int'
  3519. float distNew = element.second->distanceFromNearestLine(position);
  3520. ^
  3521. rts/general/Units.cpp:638:21: error: request for member 'second' in 'element', which is of non-clas
  3522. type 'const int'
  3523. result = element.second;
  3524. ^
  3525. rts/general/Units.cpp:641:18: error: 'numeric_limits' is not a member of 'std'
  3526. if (distance != std::numeric_limits<float>::infinity())
  3527. ^
  3528. rts/general/Units.cpp:641:38: error: expected primary-expression before 'float'
  3529. if (distance != std::numeric_limits<float>::infinity())
  3530. ^
  3531. rts/general/Units.cpp:641:38: error: expected ')' before 'float'
  3532. rts/general/Units.cpp: In member function 'void Units::executeFunction(FunctionType)':
  3533. rts/general/Units.cpp:682:21: error: in C++98 'position' must be initialized by constructor, not by
  3534. '{...}'
  3535. f2 position = {0, 0};
  3536. ^
  3537. rts/general/Units.cpp:685:8: error: 'FunctionType' is not a class or namespace
  3538. case FunctionType::DESELECT_UNITCARD:
  3539. ^
  3540. rts/general/Units.cpp:691:18: error: 'units_' was not declared in this scope
  3541. Unit* unit = units_[unitIndex.x][unitIndex.y];
  3542. ^
  3543. rts/general/Units.cpp:696:8: error: 'FunctionType' is not a class or namespace
  3544. case FunctionType::SELECT_UNITCARD:
  3545. ^
  3546. rts/general/Units.cpp:703:18: error: 'units_' was not declared in this scope
  3547. Unit* unit = units_[unitIndex.x][unitIndex.y];
  3548. ^
  3549. rts/general/Units.cpp:708:8: error: 'FunctionType' is not a class or namespace
  3550. case FunctionType::SELECTGROUP_UNITCARD:
  3551. ^
  3552. rts/general/Units.cpp:715:18: error: 'units_' was not declared in this scope
  3553. Unit* unit = units_[unitIndex.x][unitIndex.y];
  3554. ^
  3555. rts/general/Units.cpp:720:8: error: 'FunctionType' is not a class or namespace
  3556. case FunctionType::DESELECTGROUP_UNITCARD:
  3557. ^
  3558. rts/general/Units.cpp:726:18: error: 'units_' was not declared in this scope
  3559. Unit* unit = units_[unitIndex.x][unitIndex.y];
  3560. ^
  3561. rts/general/Units.cpp:727:23: warning: comparison between signed and unsigned integer expressions [
  3562. Wsign-compare]
  3563. for (int i = 0; i < selectedUnits_.size(); ++i)
  3564. ^
  3565. rts/general/Units.cpp:737:8: error: 'FunctionType' is not a class or namespace
  3566. case FunctionType::CONTROL_ALL:
  3567. ^
  3568. rts/general/Units.cpp:739:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-co
  3569. pat]
  3570. for (auto const& element : units_[currentTeam_])
  3571. ^
  3572. rts/general/Units.cpp:739:31: error: range-based 'for' loops are not allowed in C++98 mode
  3573. for (auto const& element : units_[currentTeam_])
  3574. ^
  3575. rts/general/Units.cpp:739:31: error: 'units_' was not declared in this scope
  3576. rts/general/Units.cpp:741:13: error: request for member 'second' in 'element', which is of non-clas
  3577. type 'const int'
  3578. element.second->selected_ = true;
  3579. ^
  3580. rts/general/Units.cpp:745:8: error: 'FunctionType' is not a class or namespace
  3581. case FunctionType::SELECT_TYPE:
  3582. ^
  3583. rts/general/Units.cpp:750:18: error: 'units_' was not declared in this scope
  3584. Unit* unit = units_[unitIndex.x][unitIndex.y];
  3585. ^
  3586. rts/general/Units.cpp:755:8: error: 'FunctionType' is not a class or namespace
  3587. case FunctionType::CREATE_CONTROL_GROUP1:
  3588. ^
  3589. rts/general/Units.cpp:756:8: error: 'FunctionType' is not a class or namespace
  3590. case FunctionType::CREATE_CONTROL_GROUP2:
  3591. ^
  3592. rts/general/Units.cpp:757:8: error: 'FunctionType' is not a class or namespace
  3593. case FunctionType::CREATE_CONTROL_GROUP3:
  3594. ^
  3595. rts/general/Units.cpp:758:8: error: 'FunctionType' is not a class or namespace
  3596. case FunctionType::CREATE_CONTROL_GROUP4:
  3597. ^
  3598. rts/general/Units.cpp:759:8: error: 'FunctionType' is not a class or namespace
  3599. case FunctionType::CREATE_CONTROL_GROUP5:
  3600. ^
  3601. rts/general/Units.cpp:760:8: error: 'FunctionType' is not a class or namespace
  3602. case FunctionType::CREATE_CONTROL_GROUP6:
  3603. ^
  3604. rts/general/Units.cpp:761:8: error: 'FunctionType' is not a class or namespace
  3605. case FunctionType::CREATE_CONTROL_GROUP7:
  3606. ^
  3607. rts/general/Units.cpp:762:8: error: 'FunctionType' is not a class or namespace
  3608. case FunctionType::CREATE_CONTROL_GROUP8:
  3609. ^
  3610. rts/general/Units.cpp:763:8: error: 'FunctionType' is not a class or namespace
  3611. case FunctionType::CREATE_CONTROL_GROUP9:
  3612. ^
  3613. rts/general/Units.cpp:764:8: error: 'FunctionType' is not a class or namespace
  3614. case FunctionType::CREATE_CONTROL_GROUP10:
  3615. ^
  3616. rts/general/Units.cpp:765:8: error: 'FunctionType' is not a class or namespace
  3617. case FunctionType::CREATE_CONTROL_GROUP11:
  3618. ^
  3619. rts/general/Units.cpp:766:8: error: 'FunctionType' is not a class or namespace
  3620. case FunctionType::CREATE_CONTROL_GROUP12:
  3621. ^
  3622. rts/general/Units.cpp:767:8: error: 'FunctionType' is not a class or namespace
  3623. case FunctionType::CREATE_CONTROL_GROUP13:
  3624. ^
  3625. rts/general/Units.cpp:768:8: error: 'FunctionType' is not a class or namespace
  3626. case FunctionType::CREATE_CONTROL_GROUP14:
  3627. ^
  3628. rts/general/Units.cpp:769:8: error: 'FunctionType' is not a class or namespace
  3629. case FunctionType::CREATE_CONTROL_GROUP15:
  3630. ^
  3631. rts/general/Units.cpp:772:8: error: 'FunctionType' is not a class or namespace
  3632. case FunctionType::RECALL_CONTROL_GROUP1:
  3633. ^
  3634. rts/general/Units.cpp:773:22: error: 'GameState' is not a class or namespace
  3635. if (gameState_ == GameState::BUILDING_EDITOR)
  3636. ^
  3637. rts/general/Units.cpp:778:8: error: 'FunctionType' is not a class or namespace
  3638. case FunctionType::RECALL_CONTROL_GROUP2:
  3639. ^
  3640. rts/general/Units.cpp:779:22: error: 'GameState' is not a class or namespace
  3641. if (gameState_ == GameState::BUILDING_EDITOR)
  3642. ^
  3643. rts/general/Units.cpp:784:8: error: 'FunctionType' is not a class or namespace
  3644. case FunctionType::RECALL_CONTROL_GROUP3:
  3645. ^
  3646. rts/general/Units.cpp:785:22: error: 'GameState' is not a class or namespace
  3647. if (gameState_ == GameState::BUILDING_EDITOR)
  3648. ^
  3649. rts/general/Units.cpp:790:8: error: 'FunctionType' is not a class or namespace
  3650. case FunctionType::RECALL_CONTROL_GROUP4:
  3651. ^
  3652. rts/general/Units.cpp:791:8: error: 'FunctionType' is not a class or namespace
  3653. case FunctionType::RECALL_CONTROL_GROUP5:
  3654. ^
  3655. rts/general/Units.cpp:792:8: error: 'FunctionType' is not a class or namespace
  3656. case FunctionType::RECALL_CONTROL_GROUP6:
  3657. ^
  3658. rts/general/Units.cpp:793:8: error: 'FunctionType' is not a class or namespace
  3659. case FunctionType::RECALL_CONTROL_GROUP7:
  3660. ^
  3661. rts/general/Units.cpp:794:8: error: 'FunctionType' is not a class or namespace
  3662. case FunctionType::RECALL_CONTROL_GROUP8:
  3663. ^
  3664. rts/general/Units.cpp:795:8: error: 'FunctionType' is not a class or namespace
  3665. case FunctionType::RECALL_CONTROL_GROUP9:
  3666. ^
  3667. rts/general/Units.cpp:796:8: error: 'FunctionType' is not a class or namespace
  3668. case FunctionType::RECALL_CONTROL_GROUP10:
  3669. ^
  3670. rts/general/Units.cpp:797:8: error: 'FunctionType' is not a class or namespace
  3671. case FunctionType::RECALL_CONTROL_GROUP11:
  3672. ^
  3673. rts/general/Units.cpp:798:8: error: 'FunctionType' is not a class or namespace
  3674. case FunctionType::RECALL_CONTROL_GROUP12:
  3675. ^
  3676. rts/general/Units.cpp:799:8: error: 'FunctionType' is not a class or namespace
  3677. case FunctionType::RECALL_CONTROL_GROUP13:
  3678. ^
  3679. rts/general/Units.cpp:800:8: error: 'FunctionType' is not a class or namespace
  3680. case FunctionType::RECALL_CONTROL_GROUP14:
  3681. ^
  3682. rts/general/Units.cpp:801:8: error: 'FunctionType' is not a class or namespace
  3683. case FunctionType::RECALL_CONTROL_GROUP15:
  3684. ^
  3685. rts/general/Units.cpp:803:22: warning: comparison between signed and unsigned integer expressions [
  3686. Wsign-compare]
  3687. for (int i = 0; i < controlGroups_[static_cast<int>(type) - 55].size(); ++i)
  3688. ^
  3689. rts/general/Units.cpp:809:8: error: 'FunctionType' is not a class or namespace
  3690. case FunctionType::CENTER_ON_CONTROL_GROUP1:
  3691. ^
  3692. rts/general/Units.cpp:810:8: error: 'FunctionType' is not a class or namespace
  3693. case FunctionType::CENTER_ON_CONTROL_GROUP2:
  3694. ^
  3695. rts/general/Units.cpp:811:8: error: 'FunctionType' is not a class or namespace
  3696. case FunctionType::CENTER_ON_CONTROL_GROUP3:
  3697. ^
  3698. rts/general/Units.cpp:812:8: error: 'FunctionType' is not a class or namespace
  3699. case FunctionType::CENTER_ON_CONTROL_GROUP4:
  3700. ^
  3701. rts/general/Units.cpp:813:8: error: 'FunctionType' is not a class or namespace
  3702. case FunctionType::CENTER_ON_CONTROL_GROUP5:
  3703. ^
  3704. rts/general/Units.cpp:814:8: error: 'FunctionType' is not a class or namespace
  3705. case FunctionType::CENTER_ON_CONTROL_GROUP6:
  3706. ^
  3707. rts/general/Units.cpp:815:8: error: 'FunctionType' is not a class or namespace
  3708. case FunctionType::CENTER_ON_CONTROL_GROUP7:
  3709. ^
  3710. rts/general/Units.cpp:816:8: error: 'FunctionType' is not a class or namespace
  3711. case FunctionType::CENTER_ON_CONTROL_GROUP8:
  3712. ^
  3713. rts/general/Units.cpp:817:8: error: 'FunctionType' is not a class or namespace
  3714. case FunctionType::CENTER_ON_CONTROL_GROUP9:
  3715. ^
  3716. rts/general/Units.cpp:818:8: error: 'FunctionType' is not a class or namespace
  3717. case FunctionType::CENTER_ON_CONTROL_GROUP10:
  3718. ^
  3719. rts/general/Units.cpp:819:8: error: 'FunctionType' is not a class or namespace
  3720. case FunctionType::CENTER_ON_CONTROL_GROUP11:
  3721. ^
  3722. rts/general/Units.cpp:820:8: error: 'FunctionType' is not a class or namespace
  3723. case FunctionType::CENTER_ON_CONTROL_GROUP12:
  3724. ^
  3725. rts/general/Units.cpp:821:8: error: 'FunctionType' is not a class or namespace
  3726. case FunctionType::CENTER_ON_CONTROL_GROUP13:
  3727. ^
  3728. rts/general/Units.cpp:822:8: error: 'FunctionType' is not a class or namespace
  3729. case FunctionType::CENTER_ON_CONTROL_GROUP14:
  3730. ^
  3731. rts/general/Units.cpp:823:8: error: 'FunctionType' is not a class or namespace
  3732. case FunctionType::CENTER_ON_CONTROL_GROUP15:
  3733. ^
  3734. rts/general/Units.cpp:824:22: warning: comparison between signed and unsigned integer expressions [
  3735. Wsign-compare]
  3736. for (int i = 0; i < controlGroups_[static_cast<int>(type) - 70].size(); ++i)
  3737. ^
  3738. rts/general/Units.cpp:835:8: error: 'FunctionType' is not a class or namespace
  3739. case FunctionType::ADD_TO_CONTROL_GROUP1:
  3740. ^
  3741. rts/general/Units.cpp:836:8: error: 'FunctionType' is not a class or namespace
  3742. case FunctionType::ADD_TO_CONTROL_GROUP2:
  3743. ^
  3744. rts/general/Units.cpp:837:8: error: 'FunctionType' is not a class or namespace
  3745. case FunctionType::ADD_TO_CONTROL_GROUP3:
  3746. ^
  3747. rts/general/Units.cpp:838:8: error: 'FunctionType' is not a class or namespace
  3748. case FunctionType::ADD_TO_CONTROL_GROUP4:
  3749. ^
  3750. rts/general/Units.cpp:839:8: error: 'FunctionType' is not a class or namespace
  3751. case FunctionType::ADD_TO_CONTROL_GROUP5:
  3752. ^
  3753. rts/general/Units.cpp:840:8: error: 'FunctionType' is not a class or namespace
  3754. case FunctionType::ADD_TO_CONTROL_GROUP6:
  3755. ^
  3756. rts/general/Units.cpp:841:8: error: 'FunctionType' is not a class or namespace
  3757. case FunctionType::ADD_TO_CONTROL_GROUP7:
  3758. ^
  3759. rts/general/Units.cpp:842:8: error: 'FunctionType' is not a class or namespace
  3760. case FunctionType::ADD_TO_CONTROL_GROUP8:
  3761. ^
  3762. rts/general/Units.cpp:843:8: error: 'FunctionType' is not a class or namespace
  3763. case FunctionType::ADD_TO_CONTROL_GROUP9:
  3764. ^
  3765. rts/general/Units.cpp:844:8: error: 'FunctionType' is not a class or namespace
  3766. case FunctionType::ADD_TO_CONTROL_GROUP10:
  3767. ^
  3768. rts/general/Units.cpp:845:8: error: 'FunctionType' is not a class or namespace
  3769. case FunctionType::ADD_TO_CONTROL_GROUP11:
  3770. ^
  3771. rts/general/Units.cpp:846:8: error: 'FunctionType' is not a class or namespace
  3772. case FunctionType::ADD_TO_CONTROL_GROUP12:
  3773. ^
  3774. rts/general/Units.cpp:847:8: error: 'FunctionType' is not a class or namespace
  3775. case FunctionType::ADD_TO_CONTROL_GROUP13:
  3776. ^
  3777. rts/general/Units.cpp:848:8: error: 'FunctionType' is not a class or namespace
  3778. case FunctionType::ADD_TO_CONTROL_GROUP14:
  3779. ^
  3780. rts/general/Units.cpp:849:8: error: 'FunctionType' is not a class or namespace
  3781. case FunctionType::ADD_TO_CONTROL_GROUP15:
  3782. ^
  3783. rts/general/Units.cpp:850:22: warning: comparison between signed and unsigned integer expressions [
  3784. Wsign-compare]
  3785. for (int i = 0; i < selectedUnits_.size(); ++i)
  3786. ^
  3787. rts/general/Units.cpp:855:8: error: 'FunctionType' is not a class or namespace
  3788. case FunctionType::FUNCTION1:
  3789. ^
  3790. rts/general/Units.cpp:856:22: error: 'GameState' is not a class or namespace
  3791. if (gameState_ == GameState::BUILDING_EDITOR)
  3792. ^
  3793. rts/general/Units.cpp:861:8: error: 'FunctionType' is not a class or namespace
  3794. case FunctionType::FUNCTION2:
  3795. ^
  3796. rts/general/Units.cpp:862:22: error: 'GameState' is not a class or namespace
  3797. if (gameState_ == GameState::BUILDING_EDITOR)
  3798. ^
  3799. rts/general/Units.cpp:867:8: error: 'FunctionType' is not a class or namespace
  3800. case FunctionType::FUNCTION3:
  3801. ^
  3802. rts/general/Units.cpp:868:22: error: 'GameState' is not a class or namespace
  3803. if (gameState_ == GameState::BUILDING_EDITOR)
  3804. ^
  3805. rts/general/Units.cpp:873:8: error: 'FunctionType' is not a class or namespace
  3806. case FunctionType::FUNCTION4:
  3807. ^
  3808. rts/general/Units.cpp:874:8: error: 'FunctionType' is not a class or namespace
  3809. case FunctionType::FUNCTION5:
  3810. ^
  3811. rts/general/Units.cpp:875:8: error: 'FunctionType' is not a class or namespace
  3812. case FunctionType::FUNCTION6:
  3813. ^
  3814. rts/general/Units.cpp:876:8: error: 'FunctionType' is not a class or namespace
  3815. case FunctionType::FUNCTION7:
  3816. ^
  3817. rts/general/Units.cpp:877:8: error: 'FunctionType' is not a class or namespace
  3818. case FunctionType::FUNCTION8:
  3819. ^
  3820. rts/general/Units.cpp:878:8: error: 'FunctionType' is not a class or namespace
  3821. case FunctionType::FUNCTION9:
  3822. ^
  3823. rts/general/Units.cpp:879:8: error: 'FunctionType' is not a class or namespace
  3824. case FunctionType::FUNCTION10:
  3825. ^
  3826. rts/general/Units.cpp:880:8: error: 'FunctionType' is not a class or namespace
  3827. case FunctionType::FUNCTION11:
  3828. ^
  3829. rts/general/Units.cpp:881:8: error: 'FunctionType' is not a class or namespace
  3830. case FunctionType::FUNCTION12:
  3831. ^
  3832. rts/general/Units.cpp:882:8: error: 'FunctionType' is not a class or namespace
  3833. case FunctionType::FUNCTION13:
  3834. ^
  3835. rts/general/Units.cpp:883:8: error: 'FunctionType' is not a class or namespace
  3836. case FunctionType::FUNCTION14:
  3837. ^
  3838. rts/general/Units.cpp:884:8: error: 'FunctionType' is not a class or namespace
  3839. case FunctionType::FUNCTION15:
  3840. ^
  3841. rts/general/Units.cpp:885:8: error: 'FunctionType' is not a class or namespace
  3842. case FunctionType::FUNCTION16:
  3843. ^
  3844. rts/general/Units.cpp:888:8: error: 'FunctionType' is not a class or namespace
  3845. case FunctionType::QUEU_FUNCTION1:
  3846. ^
  3847. rts/general/Units.cpp:889:8: error: 'FunctionType' is not a class or namespace
  3848. case FunctionType::QUEU_FUNCTION2:
  3849. ^
  3850. rts/general/Units.cpp:890:8: error: 'FunctionType' is not a class or namespace
  3851. case FunctionType::QUEU_FUNCTION3:
  3852. ^
  3853. rts/general/Units.cpp:891:8: error: 'FunctionType' is not a class or namespace
  3854. case FunctionType::QUEU_FUNCTION4:
  3855. ^
  3856. rts/general/Units.cpp:892:8: error: 'FunctionType' is not a class or namespace
  3857. case FunctionType::QUEU_FUNCTION5:
  3858. ^
  3859. rts/general/Units.cpp:893:8: error: 'FunctionType' is not a class or namespace
  3860. case FunctionType::QUEU_FUNCTION6:
  3861. ^
  3862. rts/general/Units.cpp:894:8: error: 'FunctionType' is not a class or namespace
  3863. case FunctionType::QUEU_FUNCTION7:
  3864. ^
  3865. rts/general/Units.cpp:895:8: error: 'FunctionType' is not a class or namespace
  3866. case FunctionType::QUEU_FUNCTION8:
  3867. ^
  3868. rts/general/Units.cpp:896:8: error: 'FunctionType' is not a class or namespace
  3869. case FunctionType::QUEU_FUNCTION9:
  3870. ^
  3871. rts/general/Units.cpp:897:8: error: 'FunctionType' is not a class or namespace
  3872. case FunctionType::QUEU_FUNCTION10:
  3873. ^
  3874. rts/general/Units.cpp:898:8: error: 'FunctionType' is not a class or namespace
  3875. case FunctionType::QUEU_FUNCTION11:
  3876. ^
  3877. rts/general/Units.cpp:899:8: error: 'FunctionType' is not a class or namespace
  3878. case FunctionType::QUEU_FUNCTION12:
  3879. ^
  3880. rts/general/Units.cpp:900:8: error: 'FunctionType' is not a class or namespace
  3881. case FunctionType::QUEU_FUNCTION13:
  3882. ^
  3883. rts/general/Units.cpp:901:8: error: 'FunctionType' is not a class or namespace
  3884. case FunctionType::QUEU_FUNCTION14:
  3885. ^
  3886. rts/general/Units.cpp:902:8: error: 'FunctionType' is not a class or namespace
  3887. case FunctionType::QUEU_FUNCTION15:
  3888. ^
  3889. rts/general/Units.cpp:903:8: error: 'FunctionType' is not a class or namespace
  3890. case FunctionType::QUEU_FUNCTION16:
  3891. ^
  3892. rts/general/Units.cpp:906:8: error: 'FunctionType' is not a class or namespace
  3893. case FunctionType::SLOW_FUNCTION1:
  3894. ^
  3895. rts/general/Units.cpp:907:8: error: 'FunctionType' is not a class or namespace
  3896. case FunctionType::SLOW_FUNCTION2:
  3897. ^
  3898. rts/general/Units.cpp:908:8: error: 'FunctionType' is not a class or namespace
  3899. case FunctionType::SLOW_FUNCTION3:
  3900. ^
  3901. rts/general/Units.cpp:909:8: error: 'FunctionType' is not a class or namespace
  3902. case FunctionType::SLOW_FUNCTION4:
  3903. ^
  3904. rts/general/Units.cpp:910:8: error: 'FunctionType' is not a class or namespace
  3905. case FunctionType::SLOW_FUNCTION5:
  3906. ^
  3907. rts/general/Units.cpp:911:8: error: 'FunctionType' is not a class or namespace
  3908. case FunctionType::SLOW_FUNCTION6:
  3909. ^
  3910. rts/general/Units.cpp:912:8: error: 'FunctionType' is not a class or namespace
  3911. case FunctionType::SLOW_FUNCTION7:
  3912. ^
  3913. rts/general/Units.cpp:913:8: error: 'FunctionType' is not a class or namespace
  3914. case FunctionType::SLOW_FUNCTION8:
  3915. ^
  3916. rts/general/Units.cpp:914:8: error: 'FunctionType' is not a class or namespace
  3917. case FunctionType::SLOW_FUNCTION9:
  3918. ^
  3919. rts/general/Units.cpp:915:8: error: 'FunctionType' is not a class or namespace
  3920. case FunctionType::SLOW_FUNCTION10:
  3921. ^
  3922. rts/general/Units.cpp:916:8: error: 'FunctionType' is not a class or namespace
  3923. case FunctionType::SLOW_FUNCTION11:
  3924. ^
  3925. rts/general/Units.cpp:917:8: error: 'FunctionType' is not a class or namespace
  3926. case FunctionType::SLOW_FUNCTION12:
  3927. ^
  3928. rts/general/Units.cpp:918:8: error: 'FunctionType' is not a class or namespace
  3929. case FunctionType::SLOW_FUNCTION13:
  3930. ^
  3931. rts/general/Units.cpp:919:8: error: 'FunctionType' is not a class or namespace
  3932. case FunctionType::SLOW_FUNCTION14:
  3933. ^
  3934. rts/general/Units.cpp:920:8: error: 'FunctionType' is not a class or namespace
  3935. case FunctionType::SLOW_FUNCTION15:
  3936. ^
  3937. rts/general/Units.cpp:921:8: error: 'FunctionType' is not a class or namespace
  3938. case FunctionType::SLOW_FUNCTION16:
  3939. ^
  3940. rts/general/Units.cpp:924:8: error: 'FunctionType' is not a class or namespace
  3941. case FunctionType::SLOW_QUEU_FUNCTION1:
  3942. ^
  3943. rts/general/Units.cpp:925:8: error: 'FunctionType' is not a class or namespace
  3944. case FunctionType::SLOW_QUEU_FUNCTION2:
  3945. ^
  3946. rts/general/Units.cpp:926:8: error: 'FunctionType' is not a class or namespace
  3947. case FunctionType::SLOW_QUEU_FUNCTION3:
  3948. ^
  3949. rts/general/Units.cpp:927:8: error: 'FunctionType' is not a class or namespace
  3950. case FunctionType::SLOW_QUEU_FUNCTION4:
  3951. ^
  3952. rts/general/Units.cpp:928:8: error: 'FunctionType' is not a class or namespace
  3953. case FunctionType::SLOW_QUEU_FUNCTION5:
  3954. ^
  3955. rts/general/Units.cpp:929:8: error: 'FunctionType' is not a class or namespace
  3956. case FunctionType::SLOW_QUEU_FUNCTION6:
  3957. ^
  3958. rts/general/Units.cpp:930:8: error: 'FunctionType' is not a class or namespace
  3959. case FunctionType::SLOW_QUEU_FUNCTION7:
  3960. ^
  3961. rts/general/Units.cpp:931:8: error: 'FunctionType' is not a class or namespace
  3962. case FunctionType::SLOW_QUEU_FUNCTION8:
  3963. ^
  3964. rts/general/Units.cpp:932:8: error: 'FunctionType' is not a class or namespace
  3965. case FunctionType::SLOW_QUEU_FUNCTION9:
  3966. ^
  3967. rts/general/Units.cpp:933:8: error: 'FunctionType' is not a class or namespace
  3968. case FunctionType::SLOW_QUEU_FUNCTION10:
  3969. ^
  3970. rts/general/Units.cpp:934:8: error: 'FunctionType' is not a class or namespace
  3971. case FunctionType::SLOW_QUEU_FUNCTION11:
  3972. ^
  3973. rts/general/Units.cpp:935:8: error: 'FunctionType' is not a class or namespace
  3974. case FunctionType::SLOW_QUEU_FUNCTION12:
  3975. ^
  3976. rts/general/Units.cpp:936:8: error: 'FunctionType' is not a class or namespace
  3977. case FunctionType::SLOW_QUEU_FUNCTION13:
  3978. ^
  3979. rts/general/Units.cpp:937:8: error: 'FunctionType' is not a class or namespace
  3980. case FunctionType::SLOW_QUEU_FUNCTION14:
  3981. ^
  3982. rts/general/Units.cpp:938:8: error: 'FunctionType' is not a class or namespace
  3983. case FunctionType::SLOW_QUEU_FUNCTION15:
  3984. ^
  3985. rts/general/Units.cpp:939:8: error: 'FunctionType' is not a class or namespace
  3986. case FunctionType::SLOW_QUEU_FUNCTION16:
  3987. ^
  3988. rts/general/Units.cpp:942:8: error: 'FunctionType' is not a class or namespace
  3989. case FunctionType::ORDER_FUNCTION:
  3990. ^
  3991. rts/general/Units.cpp:947:8: error: 'FunctionType' is not a class or namespace
  3992. case FunctionType::QUEU_ORDER:
  3993. ^
  3994. rts/general/Units.cpp:952:8: error: 'FunctionType' is not a class or namespace
  3995. case FunctionType::CHANGE_SUBSELECTION:
  3996. ^
  3997. rts/general/Units.cpp:954:22: warning: comparison between signed and unsigned integer expressions [
  3998. Wsign-compare]
  3999. for (int i = 0; i < currentSelectionTypes_.size(); ++i)
  4000. ^
  4001. rts/general/Units.cpp:958:16: warning: comparison between signed and unsigned integer expressions [
  4002. Wsign-compare]
  4003. if (i + 1 < currentSelectionTypes_.size())
  4004. ^
  4005. rts/general/Units.cpp:971:8: error: 'FunctionType' is not a class or namespace
  4006. case FunctionType::DELETE:
  4007. ^
  4008. rts/general/Units.cpp:973:22: error: 'GameState' is not a class or namespace
  4009. if (gameState_ == GameState::BUILDING_EDITOR)
  4010. ^
  4011. rts/general/Units.cpp:979:8: error: 'FunctionType' is not a class or namespace
  4012. case FunctionType::SAVE:
  4013. ^
  4014. rts/general/Units.cpp:981:22: error: 'GameState' is not a class or namespace
  4015. if (gameState_ == GameState::BUILDING_EDITOR)
  4016. ^
  4017. rts/general/Units.cpp:987:8: error: 'FunctionType' is not a class or namespace
  4018. case FunctionType::UNDO:
  4019. ^
  4020. rts/general/Units.cpp:989:22: error: 'GameState' is not a class or namespace
  4021. if (gameState_ == GameState::BUILDING_EDITOR)
  4022. ^
  4023. rts/general/Units.cpp:995:8: error: 'FunctionType' is not a class or namespace
  4024. case FunctionType::COMMAND_CARD_CLICKED:
  4025. ^
  4026. rts/general/Units.cpp:1000:8: error: 'FunctionType' is not a class or namespace
  4027. case FunctionType::SAVE_MAP:
  4028. ^
  4029. rts/general/Units.cpp:1002:22: error: 'GameState' is not a class or namespace
  4030. if (gameState_ == GameState::BUILDING_EDITOR)
  4031. ^
  4032. rts/general/Units.cpp:1008:8: error: 'FunctionType' is not a class or namespace
  4033. case FunctionType::REDO:
  4034. ^
  4035. rts/general/Units.cpp:1010:22: error: 'GameState' is not a class or namespace
  4036. if (gameState_ == GameState::BUILDING_EDITOR)
  4037. ^
  4038. rts/general/Units.cpp:683:9: warning: enumeration value 'NON_FUNCTION' not handled in switch [-Wswi
  4039. ch]
  4040. switch (type)
  4041. ^
  4042. rts/general/Units.cpp:683:9: warning: enumeration value 'ORDER_FUNCTION' not handled in switch [-Ws
  4043. itch]
  4044. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION1' not handled in switch [-Wswitch
  4045.  
  4046. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION2' not handled in switch [-Wswitch
  4047.  
  4048. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION3' not handled in switch [-Wswitch
  4049.  
  4050. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION4' not handled in switch [-Wswitch
  4051.  
  4052. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION5' not handled in switch [-Wswitch
  4053.  
  4054. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION6' not handled in switch [-Wswitch
  4055.  
  4056. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION7' not handled in switch [-Wswitch
  4057.  
  4058. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION8' not handled in switch [-Wswitch
  4059.  
  4060. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION9' not handled in switch [-Wswitch
  4061.  
  4062. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION10' not handled in switch [-Wswitc
  4063. ]
  4064. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION11' not handled in switch [-Wswitc
  4065. ]
  4066. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION12' not handled in switch [-Wswitc
  4067. ]
  4068. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION13' not handled in switch [-Wswitc
  4069. ]
  4070. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION14' not handled in switch [-Wswitc
  4071. ]
  4072. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION15' not handled in switch [-Wswitc
  4073. ]
  4074. rts/general/Units.cpp:683:9: warning: enumeration value 'FUNCTION16' not handled in switch [-Wswitc
  4075. ]
  4076. rts/general/Units.cpp:683:9: warning: enumeration value 'CONTROL_ALL' not handled in switch [-Wswit
  4077. h]
  4078. rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT_TYPE' not handled in switch [-Wswit
  4079. h]
  4080. rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT' not handled in switch [-Wswitch]
  4081. rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA' not handled in switch [-Wswit
  4082. h]
  4083. rts/general/Units.cpp:683:9: warning: enumeration value 'PAN_DRAG' not handled in switch [-Wswitch]
  4084. rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT_STOP' not handled in switch [-Wswit
  4085. h]
  4086. rts/general/Units.cpp:683:9: warning: enumeration value 'MENU' not handled in switch [-Wswitch]
  4087. rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_UP' not handled in switch [-Ws
  4088. itch]
  4089. rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_LEFT' not handled in switch [-
  4090. switch]
  4091. rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_DOWN' not handled in switch [-
  4092. switch]
  4093. rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_RIGHT' not handled in switch [
  4094. Wswitch]
  4095. rts/general/Units.cpp:683:9: warning: enumeration value 'MOVE_CAMERA_BY_MINIMAP' not handled in swi
  4096. ch [-Wswitch]
  4097. rts/general/Units.cpp:683:9: warning: enumeration value 'DESELECT_UNITCARD' not handled in switch [
  4098. Wswitch]
  4099. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_SELECTION' not handled in switch
  4100. [-Wswitch]
  4101. rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT_UNITCARD' not handled in switch [-W
  4102. witch]
  4103. rts/general/Units.cpp:683:9: warning: enumeration value 'SELECTGROUP_UNITCARD' not handled in switc
  4104. [-Wswitch]
  4105. rts/general/Units.cpp:683:9: warning: enumeration value 'DESELECTGROUP_UNITCARD' not handled in swi
  4106. ch [-Wswitch]
  4107. rts/general/Units.cpp:683:9: warning: enumeration value 'SELECT_ADD' not handled in switch [-Wswitc
  4108. ]
  4109. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP1' not handled in swit
  4110. h [-Wswitch]
  4111. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP2' not handled in swit
  4112. h [-Wswitch]
  4113. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP3' not handled in swit
  4114. h [-Wswitch]
  4115. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP4' not handled in swit
  4116. h [-Wswitch]
  4117. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP5' not handled in swit
  4118. h [-Wswitch]
  4119. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP6' not handled in swit
  4120. h [-Wswitch]
  4121. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP7' not handled in swit
  4122. h [-Wswitch]
  4123. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP8' not handled in swit
  4124. h [-Wswitch]
  4125. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP9' not handled in swit
  4126. h [-Wswitch]
  4127. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP10' not handled in swi
  4128. ch [-Wswitch]
  4129. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP11' not handled in swi
  4130. ch [-Wswitch]
  4131. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP12' not handled in swi
  4132. ch [-Wswitch]
  4133. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP13' not handled in swi
  4134. ch [-Wswitch]
  4135. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP14' not handled in swi
  4136. ch [-Wswitch]
  4137. rts/general/Units.cpp:683:9: warning: enumeration value 'CREATE_CONTROL_GROUP15' not handled in swi
  4138. ch [-Wswitch]
  4139. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP1' not handled in swit
  4140. h [-Wswitch]
  4141. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP2' not handled in swit
  4142. h [-Wswitch]
  4143. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP3' not handled in swit
  4144. h [-Wswitch]
  4145. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP4' not handled in swit
  4146. h [-Wswitch]
  4147. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP5' not handled in swit
  4148. h [-Wswitch]
  4149. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP6' not handled in swit
  4150. h [-Wswitch]
  4151. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP7' not handled in swit
  4152. h [-Wswitch]
  4153. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP8' not handled in swit
  4154. h [-Wswitch]
  4155. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP9' not handled in swit
  4156. h [-Wswitch]
  4157. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP10' not handled in swi
  4158. ch [-Wswitch]
  4159. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP11' not handled in swi
  4160. ch [-Wswitch]
  4161. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP12' not handled in swi
  4162. ch [-Wswitch]
  4163. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP13' not handled in swi
  4164. ch [-Wswitch]
  4165. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP14' not handled in swi
  4166. ch [-Wswitch]
  4167. rts/general/Units.cpp:683:9: warning: enumeration value 'RECALL_CONTROL_GROUP15' not handled in swi
  4168. ch [-Wswitch]
  4169. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP1' not handled in s
  4170. itch [-Wswitch]
  4171. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP2' not handled in s
  4172. itch [-Wswitch]
  4173. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP3' not handled in s
  4174. itch [-Wswitch]
  4175. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP4' not handled in s
  4176. itch [-Wswitch]
  4177. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP5' not handled in s
  4178. itch [-Wswitch]
  4179. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP6' not handled in s
  4180. itch [-Wswitch]
  4181. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP7' not handled in s
  4182. itch [-Wswitch]
  4183. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP8' not handled in s
  4184. itch [-Wswitch]
  4185. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP9' not handled in s
  4186. itch [-Wswitch]
  4187. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP10' not handled in
  4188. witch [-Wswitch]
  4189. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP11' not handled in
  4190. witch [-Wswitch]
  4191. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP12' not handled in
  4192. witch [-Wswitch]
  4193. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP13' not handled in
  4194. witch [-Wswitch]
  4195. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP14' not handled in
  4196. witch [-Wswitch]
  4197. rts/general/Units.cpp:683:9: warning: enumeration value 'CENTER_ON_CONTROL_GROUP15' not handled in
  4198. witch [-Wswitch]
  4199. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP1' not handled in swit
  4200. h [-Wswitch]
  4201. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP2' not handled in swit
  4202. h [-Wswitch]
  4203. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP3' not handled in swit
  4204. h [-Wswitch]
  4205. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP4' not handled in swit
  4206. h [-Wswitch]
  4207. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP5' not handled in swit
  4208. h [-Wswitch]
  4209. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP6' not handled in swit
  4210. h [-Wswitch]
  4211. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP7' not handled in swit
  4212. h [-Wswitch]
  4213. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP8' not handled in swit
  4214. h [-Wswitch]
  4215. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP9' not handled in swit
  4216. h [-Wswitch]
  4217. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP10' not handled in swi
  4218. ch [-Wswitch]
  4219. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP11' not handled in swi
  4220. ch [-Wswitch]
  4221. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP12' not handled in swi
  4222. ch [-Wswitch]
  4223. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP13' not handled in swi
  4224. ch [-Wswitch]
  4225. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP14' not handled in swi
  4226. ch [-Wswitch]
  4227. rts/general/Units.cpp:683:9: warning: enumeration value 'ADD_TO_CONTROL_GROUP15' not handled in swi
  4228. ch [-Wswitch]
  4229. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION1' not handled in switch [-Ws
  4230. itch]
  4231. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION2' not handled in switch [-Ws
  4232. itch]
  4233. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION3' not handled in switch [-Ws
  4234. itch]
  4235. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION4' not handled in switch [-Ws
  4236. itch]
  4237. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION5' not handled in switch [-Ws
  4238. itch]
  4239. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION6' not handled in switch [-Ws
  4240. itch]
  4241. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION7' not handled in switch [-Ws
  4242. itch]
  4243. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION8' not handled in switch [-Ws
  4244. itch]
  4245. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION9' not handled in switch [-Ws
  4246. itch]
  4247. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION10' not handled in switch [-W
  4248. witch]
  4249. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION11' not handled in switch [-W
  4250. witch]
  4251. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION12' not handled in switch [-W
  4252. witch]
  4253. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION13' not handled in switch [-W
  4254. witch]
  4255. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION14' not handled in switch [-W
  4256. witch]
  4257. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION15' not handled in switch [-W
  4258. witch]
  4259. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_FUNCTION16' not handled in switch [-W
  4260. witch]
  4261. rts/general/Units.cpp:683:9: warning: enumeration value 'QUEU_ORDER' not handled in switch [-Wswitc
  4262. ]
  4263. rts/general/Units.cpp:683:9: warning: enumeration value 'CHANGE_SUBSELECTION' not handled in switch
  4264. [-Wswitch]
  4265. rts/general/Units.cpp:683:9: warning: enumeration value 'EDGEPAN' not handled in switch [-Wswitch]
  4266. rts/general/Units.cpp:683:9: warning: enumeration value 'MOUSE_ENTERED' not handled in switch [-Wsw
  4267. tch]
  4268. rts/general/Units.cpp:683:9: warning: enumeration value 'COMMAND_CARD_COUNTROL' not handled in swit
  4269. h [-Wswitch]
  4270. rts/general/Units.cpp:683:9: warning: enumeration value 'DELETE' not handled in switch [-Wswitch]
  4271. rts/general/Units.cpp:683:9: warning: enumeration value 'SAVE' not handled in switch [-Wswitch]
  4272. rts/general/Units.cpp:683:9: warning: enumeration value 'UNDO' not handled in switch [-Wswitch]
  4273. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION1' not handled in switch [-Ws
  4274. itch]
  4275. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION2' not handled in switch [-Ws
  4276. itch]
  4277. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION3' not handled in switch [-Ws
  4278. itch]
  4279. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION4' not handled in switch [-Ws
  4280. itch]
  4281. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION5' not handled in switch [-Ws
  4282. itch]
  4283. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION6' not handled in switch [-Ws
  4284. itch]
  4285. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION7' not handled in switch [-Ws
  4286. itch]
  4287. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION8' not handled in switch [-Ws
  4288. itch]
  4289. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION9' not handled in switch [-Ws
  4290. itch]
  4291. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION10' not handled in switch [-W
  4292. witch]
  4293. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION11' not handled in switch [-W
  4294. witch]
  4295. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION12' not handled in switch [-W
  4296. witch]
  4297. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION13' not handled in switch [-W
  4298. witch]
  4299. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION14' not handled in switch [-W
  4300. witch]
  4301. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION15' not handled in switch [-W
  4302. witch]
  4303. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_FUNCTION16' not handled in switch [-W
  4304. witch]
  4305. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION1' not handled in switch
  4306. [-Wswitch]
  4307. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION2' not handled in switch
  4308. [-Wswitch]
  4309. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION3' not handled in switch
  4310. [-Wswitch]
  4311. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION4' not handled in switch
  4312. [-Wswitch]
  4313. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION5' not handled in switch
  4314. [-Wswitch]
  4315. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION6' not handled in switch
  4316. [-Wswitch]
  4317. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION7' not handled in switch
  4318. [-Wswitch]
  4319. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION8' not handled in switch
  4320. [-Wswitch]
  4321. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION9' not handled in switch
  4322. [-Wswitch]
  4323. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION10' not handled in switc
  4324. [-Wswitch]
  4325. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION11' not handled in switc
  4326. [-Wswitch]
  4327. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION12' not handled in switc
  4328. [-Wswitch]
  4329. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION13' not handled in switc
  4330. [-Wswitch]
  4331. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION14' not handled in switc
  4332. [-Wswitch]
  4333. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION15' not handled in switc
  4334. [-Wswitch]
  4335. rts/general/Units.cpp:683:9: warning: enumeration value 'SLOW_QUEU_FUNCTION16' not handled in switc
  4336. [-Wswitch]
  4337. rts/general/Units.cpp:683:9: warning: enumeration value 'COMPLETE_ORDER' not handled in switch [-Ws
  4338. itch]
  4339. rts/general/Units.cpp:683:9: warning: enumeration value 'COMMAND_CARD_CLICKED' not handled in switc
  4340. [-Wswitch]
  4341. rts/general/Units.cpp:683:9: warning: enumeration value 'SAVE_MAP' not handled in switch [-Wswitch]
  4342. rts/general/Units.cpp:683:9: warning: enumeration value 'REDO' not handled in switch [-Wswitch]
  4343. rts/general/Units.cpp: In member function 'void Units::saveMap()':
  4344. rts/general/Units.cpp:1027:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4345. mpat]
  4346. for (auto const& element : walls_)
  4347. ^
  4348. rts/general/Units.cpp:1027:29: error: range-based 'for' loops are not allowed in C++98 mode
  4349. for (auto const& element : walls_)
  4350. ^
  4351. rts/general/Units.cpp:1027:29: error: 'walls_' was not declared in this scope
  4352. rts/general/Units.cpp:1029:15: error: request for member 'second' in 'element', which is of non-cla
  4353. s type 'const int'
  4354. if (element.second->enabled_)
  4355. ^
  4356. rts/general/Units.cpp:1031:25: error: request for member 'second' in 'element', which is of non-cla
  4357. s type 'const int'
  4358. Wall* wall = element.second;
  4359. ^
  4360. rts/general/Units.cpp:1032:34: error: 'to_string' is not a member of 'std'
  4361. newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
  4362. Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
  4363. + std::to_string(wall->getAngle()) + " ";
  4364. ^
  4365. rts/general/Units.cpp:1032:76: error: 'to_string' is not a member of 'std'
  4366. newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
  4367. Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
  4368. + std::to_string(wall->getAngle()) + " ";
  4369. ^
  4370. rts/general/Units.cpp:1032:118: error: 'to_string' is not a member of 'std'
  4371. newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
  4372. Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
  4373. + std::to_string(wall->getAngle()) + " ";
  4374.  
  4375. ^
  4376. rts/general/Units.cpp:1032:160: error: 'to_string' is not a member of 'std'
  4377. newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
  4378. Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
  4379. + std::to_string(wall->getAngle()) + " ";
  4380.  
  4381. ^
  4382. rts/general/Units.cpp:1032:202: error: 'to_string' is not a member of 'std'
  4383. newMap += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->to
  4384. Left().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + ":"
  4385. + std::to_string(wall->getAngle()) + " ";
  4386.  
  4387.  
  4388. ^
  4389. rts/general/Units.cpp:1036:28: error: 'units_' was not declared in this scope
  4390. for (int team = 0; team < units_.size(); ++team)
  4391. ^
  4392. rts/general/Units.cpp:1038:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4393. mpat]
  4394. for (auto const& element : units_[team])
  4395. ^
  4396. rts/general/Units.cpp:1038:30: error: range-based 'for' loops are not allowed in C++98 mode
  4397. for (auto const& element : units_[team])
  4398. ^
  4399. rts/general/Units.cpp:1040:16: error: request for member 'second' in 'element', which is of non-cla
  4400. s type 'const int'
  4401. if (element.second->enabled_)
  4402. ^
  4403. rts/general/Units.cpp:1042:26: error: request for member 'second' in 'element', which is of non-cla
  4404. s type 'const int'
  4405. Unit* unit = element.second;
  4406. ^
  4407. rts/general/Units.cpp:1043:35: error: 'to_string' is not a member of 'std'
  4408. newMap += unit->name_ + ":" + std::to_string(unit->team_) + "| f2 " + std::to_string(unit->top
  4409. eft().x) + " " + std::to_string(unit->topLeft().y) + ";";
  4410. ^
  4411. rts/general/Units.cpp:1043:75: error: 'to_string' is not a member of 'std'
  4412. newMap += unit->name_ + ":" + std::to_string(unit->team_) + "| f2 " + std::to_string(unit->top
  4413. eft().x) + " " + std::to_string(unit->topLeft().y) + ";";
  4414. ^
  4415. rts/general/Units.cpp:1043:117: error: 'to_string' is not a member of 'std'
  4416. newMap += unit->name_ + ":" + std::to_string(unit->team_) + "| f2 " + std::to_string(unit->top
  4417. eft().x) + " " + std::to_string(unit->topLeft().y) + ";";
  4418.  
  4419. ^
  4420. rts/general/Units.cpp: In member function 'void Units::commandCardClicked()':
  4421. rts/general/Units.cpp:1056:8: warning: unused variable 'unit' [-Wunused-variable]
  4422. Unit* unit = selectedUnitsSubGroup_[0];
  4423. ^
  4424. rts/general/Units.cpp: In member function 'int Units::addWall(Wall)':
  4425. rts/general/Units.cpp:1074:20: error: 'GameState' is not a class or namespace
  4426. if (gameState_ == GameState::DEFAULT)
  4427. ^
  4428. rts/general/Units.cpp:1079:3: error: 'walls_' was not declared in this scope
  4429. walls_[wallIDCounter_] = wall;
  4430. ^
  4431. rts/general/Units.cpp:1084:25: error: 'GameState' is not a class or namespace
  4432. else if (gameState_ == GameState::BUILDING_EDITOR)
  4433. ^
  4434. rts/general/Units.cpp:1086:3: error: 'walls_' was not declared in this scope
  4435. walls_[wallIDCounter_] = wall;
  4436. ^
  4437. rts/general/Units.cpp: In member function 'int Units::addUnit(const Unit&, bool)':
  4438. rts/general/Units.cpp:1111:2: error: 'units_' was not declared in this scope
  4439. units_[newUnit->team_][newUnit->uniqueID_] = newUnit;
  4440. ^
  4441. rts/general/Units.cpp:1118:21: warning: comparison between signed and unsigned integer expressions
  4442. -Wsign-compare]
  4443. for (int i = 0; i < newWalls.size(); ++i)
  4444. ^
  4445. rts/general/Units.cpp:1127:21: warning: comparison between signed and unsigned integer expressions
  4446. -Wsign-compare]
  4447. for (int i = 0; i < wallIDs.size(); ++i)
  4448. ^
  4449. rts/general/Units.cpp:1129:25: error: 'walls_' was not declared in this scope
  4450. newUnit->walls_[i] = walls_[wallIDs[i]];
  4451. ^
  4452. rts/general/Units.cpp: In member function 'void Units::redo()':
  4453. rts/general/Units.cpp:1150:21: warning: comparison between signed and unsigned integer expressions
  4454. -Wsign-compare]
  4455. for (int i = 0; i < unitsDisabled.size(); ++i)
  4456. ^
  4457. rts/general/Units.cpp:1153:8: error: 'units_' was not declared in this scope
  4458. if (units_[id.x].count(id.y))
  4459. ^
  4460. rts/general/Units.cpp:1159:21: warning: comparison between signed and unsigned integer expressions
  4461. -Wsign-compare]
  4462. for (int i = 0; i < unitsEnabled.size(); ++i)
  4463. ^
  4464. rts/general/Units.cpp:1162:8: error: 'units_' was not declared in this scope
  4465. if (units_[id.x].count(id.y))
  4466. ^
  4467. rts/general/Units.cpp:1168:21: warning: comparison between signed and unsigned integer expressions
  4468. -Wsign-compare]
  4469. for (int i = 0; i < wallsDisabled.size(); ++i)
  4470. ^
  4471. rts/general/Units.cpp:1171:8: error: 'walls_' was not declared in this scope
  4472. if (walls_.count(id))
  4473. ^
  4474. rts/general/Units.cpp:1177:21: warning: comparison between signed and unsigned integer expressions
  4475. -Wsign-compare]
  4476. for (int i = 0; i < wallsEnabled.size(); ++i)
  4477. ^
  4478. rts/general/Units.cpp:1180:8: error: 'walls_' was not declared in this scope
  4479. if (walls_.count(id))
  4480. ^
  4481. rts/general/Units.cpp: In member function 'void Units::undo()':
  4482. rts/general/Units.cpp:1199:21: warning: comparison between signed and unsigned integer expressions
  4483. -Wsign-compare]
  4484. for (int i = 0; i < unitsDisabled.size(); ++i)
  4485. ^
  4486. rts/general/Units.cpp:1202:8: error: 'units_' was not declared in this scope
  4487. if (units_[id.x].count(id.y))
  4488. ^
  4489. rts/general/Units.cpp:1208:21: warning: comparison between signed and unsigned integer expressions
  4490. -Wsign-compare]
  4491. for (int i = 0; i < unitsEnabled.size(); ++i)
  4492. ^
  4493. rts/general/Units.cpp:1211:8: error: 'units_' was not declared in this scope
  4494. if (units_[id.x].count(id.y))
  4495. ^
  4496. rts/general/Units.cpp:1217:21: warning: comparison between signed and unsigned integer expressions
  4497. -Wsign-compare]
  4498. for (int i = 0; i < wallsDisabled.size(); ++i)
  4499. ^
  4500. rts/general/Units.cpp:1220:8: error: 'walls_' was not declared in this scope
  4501. if (walls_.count(id))
  4502. ^
  4503. rts/general/Units.cpp:1226:21: warning: comparison between signed and unsigned integer expressions
  4504. -Wsign-compare]
  4505. for (int i = 0; i < wallsEnabled.size(); ++i)
  4506. ^
  4507. rts/general/Units.cpp:1229:8: error: 'walls_' was not declared in this scope
  4508. if (walls_.count(id))
  4509. ^
  4510. rts/general/Units.cpp: In member function 'void Units::deleteWall(int)':
  4511. rts/general/Units.cpp:1240:6: error: 'walls_' was not declared in this scope
  4512. if (walls_.count(id))
  4513. ^
  4514. rts/general/Units.cpp:1244:7: error: 'units_' was not declared in this scope
  4515. if (units_[index.x].count(index.y))
  4516. ^
  4517. rts/general/Units.cpp:1247:22: warning: comparison between signed and unsigned integer expressions
  4518. -Wsign-compare]
  4519. for (int i = 0; i < unit->walls_.size(); ++i)
  4520. ^
  4521. rts/general/Units.cpp: In member function 'void Units::saveBuilding(std::string)':
  4522. rts/general/Units.cpp:1264:39: error: no matching function for call to 'std::basic_ofstream<char>::
  4523. pen(std::string&, const openmode&)'
  4524. outfile.open(file, std::ios_base::app);
  4525. ^
  4526. rts/general/Units.cpp:1264:39: note: candidate is:
  4527. In file included from rts/Init.h:29:0,
  4528. from rts/general/Units.h:27,
  4529. from rts/general/Units.cpp:26:
  4530. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:716:7:
  4531. ote: void std::basic_ofstream<_CharT, _Traits>::open(const char*, std::ios_base::openmode) [with _C
  4532. arT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
  4533. open(const char* __s,
  4534. ^
  4535. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:716:7:
  4536. ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
  4537. char*'
  4538. rts/general/Units.cpp:1304:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4539. mpat]
  4540. for (auto const& element : walls_)
  4541. ^
  4542. rts/general/Units.cpp:1304:29: error: range-based 'for' loops are not allowed in C++98 mode
  4543. for (auto const& element : walls_)
  4544. ^
  4545. rts/general/Units.cpp:1304:29: error: 'walls_' was not declared in this scope
  4546. rts/general/Units.cpp:1306:15: error: request for member 'second' in 'element', which is of non-cla
  4547. s type 'const int'
  4548. if (element.second->enabled_)
  4549. ^
  4550. rts/general/Units.cpp:1308:25: error: request for member 'second' in 'element', which is of non-cla
  4551. s type 'const int'
  4552. Wall* wall = element.second;
  4553. ^
  4554. rts/general/Units.cpp:1310:36: error: 'to_string' is not a member of 'std'
  4555. newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
  4556. opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
  4557. " + std::to_string(wall->getAngle()) + " ";
  4558. ^
  4559. rts/general/Units.cpp:1310:78: error: 'to_string' is not a member of 'std'
  4560. newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
  4561. opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
  4562. " + std::to_string(wall->getAngle()) + " ";
  4563. ^
  4564. rts/general/Units.cpp:1310:120: error: 'to_string' is not a member of 'std'
  4565. newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
  4566. opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
  4567. " + std::to_string(wall->getAngle()) + " ";
  4568.  
  4569. ^
  4570. rts/general/Units.cpp:1310:162: error: 'to_string' is not a member of 'std'
  4571. newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
  4572. opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
  4573. " + std::to_string(wall->getAngle()) + " ";
  4574.  
  4575. ^
  4576. rts/general/Units.cpp:1310:204: error: 'to_string' is not a member of 'std'
  4577. newWalls += wall->name_ + "|" + std::to_string(wall->topLeft().x) + ":" + std::to_string(wall->
  4578. opLeft().y) + ":" + std::to_string(wall->getSize().x) + ":" + std::to_string(wall->getSize().y) + "
  4579. " + std::to_string(wall->getAngle()) + " ";
  4580.  
  4581.  
  4582. ^
  4583. rts/general/Units.cpp: In member function 'void Units::deleteObject(f2)':
  4584. rts/general/Units.cpp:1325:37: warning: extended initializer lists only available with -std=c++11 o
  4585. -std=gnu++11
  4586. action.unitsDisabled_ = {unitIndex};
  4587. ^
  4588. rts/general/Units.cpp:1325:25: warning: extended initializer lists only available with -std=c++11 o
  4589. -std=gnu++11
  4590. action.unitsDisabled_ = {unitIndex};
  4591. ^
  4592. rts/general/Units.cpp:1325:25: error: no match for 'operator=' (operand types are 'std::vector<f2>'
  4593. and '<brace-enclosed initializer list>')
  4594. rts/general/Units.cpp:1325:25: note: candidate is:
  4595. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  4596. e/c++/vector:69:0,
  4597. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  4598. from D:/sfml-source/include/SFML/Window.hpp:41,
  4599. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  4600. from supportClasses/f2.h:4,
  4601. from rts/Hotkey.h:3,
  4602. from rts/Init.h:36,
  4603. from rts/general/Units.h:27,
  4604. from rts/general/Units.cpp:26:
  4605. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  4606. 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
  4607. lloc>&) [with _Tp = f2; _Alloc = std::allocator<f2>]
  4608. vector<_Tp, _Alloc>::
  4609. ^
  4610. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  4611. 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
  4612. std::vector<f2>&'
  4613. rts/general/Units.cpp:1330:31: error: 'walls_' was not declared in this scope
  4614. else if (wallIndex != - 1 && walls_[wallIndex]->enabled_)
  4615. ^
  4616. rts/general/Units.cpp:1333:37: warning: extended initializer lists only available with -std=c++11 o
  4617. -std=gnu++11
  4618. action.wallsDisabled_ = {wallIndex};
  4619. ^
  4620. rts/general/Units.cpp:1333:25: warning: extended initializer lists only available with -std=c++11 o
  4621. -std=gnu++11
  4622. action.wallsDisabled_ = {wallIndex};
  4623. ^
  4624. rts/general/Units.cpp:1333:25: error: converting to 'const std::vector<int>' from initializer list
  4625. ould use explicit constructor 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type
  4626. const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vect
  4627. r<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_
  4628. p, _Alloc>::allocator_type = std::allocator<int>]'
  4629. rts/general/Units.cpp:1333:25: warning: narrowing conversion of 'wallIndex' from 'int' to 'std::vec
  4630. or<int>::size_type {aka unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
  4631. rts/general/Units.cpp: In member function 'void Units::parseEditorActions(EditorAction)':
  4632. rts/general/Units.cpp:1381:42: warning: comparison between signed and unsigned integer expressions
  4633. -Wsign-compare]
  4634. for (int i = editorActionsIndex_; i < editorActions_.size(); ++i)
  4635. ^
  4636. rts/general/Units.cpp:1386:25: warning: comparison between signed and unsigned integer expressions
  4637. -Wsign-compare]
  4638. for (int i = 0; i < unitsDisabled.size(); ++i)
  4639. ^
  4640. rts/general/Units.cpp:1389:12: error: 'units_' was not declared in this scope
  4641. if (units_[id.x].count(id.y))
  4642. ^
  4643. rts/general/Units.cpp:1391:16: error: 'kill' was not declared in this scope
  4644. kill(id);
  4645. ^
  4646. rts/general/Units.cpp:1394:25: warning: comparison between signed and unsigned integer expressions
  4647. -Wsign-compare]
  4648. for (int i = 0; i < wallsDisabled.size(); ++i)
  4649. ^
  4650. rts/general/Units.cpp:1397:12: error: 'walls_' was not declared in this scope
  4651. if (walls_.count(id))
  4652. ^
  4653. rts/general/Units.cpp:1435:9: error: 'units_' was not declared in this scope
  4654. if (units_[id.x].count(id.y))
  4655. ^
  4656. rts/general/Units.cpp:1437:13: error: 'kill' was not declared in this scope
  4657. kill(id);
  4658. ^
  4659. rts/general/Units.cpp:1444:9: error: 'walls_' was not declared in this scope
  4660. if (walls_.count(id))
  4661. ^
  4662. rts/general/Units.cpp: In member function 'void Units::placeUnit()':
  4663. rts/general/Units.cpp:1459:16: error: 'units_' was not declared in this scope
  4664. editorUnit_ = units_[editorTeam_][i];
  4665. ^
  4666. rts/general/Units.cpp:1470:42: warning: extended initializer lists only available with -std=c++11 o
  4667. -std=gnu++11
  4668. action.unitsEnabled_ = {{editorTeam_, i}};
  4669. ^
  4670. rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
  4671. -std=gnu++11
  4672. action.unitsEnabled_ = {{editorTeam_, i}};
  4673. ^
  4674. rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
  4675. -std=gnu++11
  4676. rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
  4677. -std=gnu++11
  4678. rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
  4679. -std=gnu++11
  4680. rts/general/Units.cpp:1470:23: warning: extended initializer lists only available with -std=c++11 o
  4681. -std=gnu++11
  4682. rts/general/Units.cpp:1470:23: error: no match for 'operator=' (operand types are 'std::vector<f2>'
  4683. and '<brace-enclosed initializer list>')
  4684. rts/general/Units.cpp:1470:23: note: candidate is:
  4685. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  4686. e/c++/vector:69:0,
  4687. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  4688. from D:/sfml-source/include/SFML/Window.hpp:41,
  4689. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  4690. from supportClasses/f2.h:4,
  4691. from rts/Hotkey.h:3,
  4692. from rts/Init.h:36,
  4693. from rts/general/Units.h:27,
  4694. from rts/general/Units.cpp:26:
  4695. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  4696. 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
  4697. lloc>&) [with _Tp = f2; _Alloc = std::allocator<f2>]
  4698. vector<_Tp, _Alloc>::
  4699. ^
  4700. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  4701. 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
  4702. std::vector<f2>&'
  4703. rts/general/Units.cpp: In member function 'void Units::selectAll()':
  4704. rts/general/Units.cpp:1491:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4705. mpat]
  4706. for (auto const& element : units_[currentTeam_])
  4707. ^
  4708. rts/general/Units.cpp:1491:29: error: range-based 'for' loops are not allowed in C++98 mode
  4709. for (auto const& element : units_[currentTeam_])
  4710. ^
  4711. rts/general/Units.cpp:1491:29: error: 'units_' was not declared in this scope
  4712. rts/general/Units.cpp:1493:16: error: request for member 'second' in 'element', which is of non-cla
  4713. s type 'const int'
  4714. if (!element.second->isBuilding_)
  4715. ^
  4716. rts/general/Units.cpp:1495:12: error: request for member 'second' in 'element', which is of non-cla
  4717. s type 'const int'
  4718. element.second->selected_ = true;
  4719. ^
  4720. rts/general/Units.cpp: In member function 'void Units::selectUnitsOfSameType(f2)':
  4721. rts/general/Units.cpp:1507:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4722. mpat]
  4723. for (auto const& element : units_[currentTeam_])
  4724. ^
  4725. rts/general/Units.cpp:1507:30: error: range-based 'for' loops are not allowed in C++98 mode
  4726. for (auto const& element : units_[currentTeam_])
  4727. ^
  4728. rts/general/Units.cpp:1507:30: error: 'units_' was not declared in this scope
  4729. rts/general/Units.cpp:1509:16: error: request for member 'second' in 'element', which is of non-cla
  4730. s type 'const int'
  4731. if (element.second->name_ == unit->name_)
  4732. ^
  4733. rts/general/Units.cpp:1511:13: error: request for member 'second' in 'element', which is of non-cla
  4734. s type 'const int'
  4735. element.second->selected_ = true;
  4736. ^
  4737. rts/general/Units.cpp: In member function 'void Units::selectUnitsOfSameType(std::string)':
  4738. rts/general/Units.cpp:1519:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4739. mpat]
  4740. for (auto const& element : units_[currentTeam_])
  4741. ^
  4742. rts/general/Units.cpp:1519:29: error: range-based 'for' loops are not allowed in C++98 mode
  4743. for (auto const& element : units_[currentTeam_])
  4744. ^
  4745. rts/general/Units.cpp:1519:29: error: 'units_' was not declared in this scope
  4746. rts/general/Units.cpp:1521:15: error: request for member 'second' in 'element', which is of non-cla
  4747. s type 'const int'
  4748. if (element.second->name_ == type)
  4749. ^
  4750. rts/general/Units.cpp:1523:12: error: request for member 'second' in 'element', which is of non-cla
  4751. s type 'const int'
  4752. element.second->selected_ = true;
  4753. ^
  4754. rts/general/Units.cpp: In member function 'Ability* Units::findAbility(int, Unit*)':
  4755. rts/general/Units.cpp:1530:30: warning: comparison between signed and unsigned integer expressions
  4756. -Wsign-compare]
  4757. if (unit->abilities_.size() <= abilityNumber)
  4758. ^
  4759. rts/general/Units.cpp:1535:20: warning: comparison between signed and unsigned integer expressions
  4760. -Wsign-compare]
  4761. for (int i = 0; i < usableAbilities_.size(); ++i)
  4762. ^
  4763. rts/general/Units.cpp: In member function 'f2 Units::findUnitIndex(f2, relation)':
  4764. rts/general/Units.cpp:1547:26: warning: comparison between signed and unsigned integer expressions
  4765. -Wsign-compare]
  4766. for (int team = 0; team < relationTable_[currentTeam_].size(); ++team)
  4767. ^
  4768. rts/general/Units.cpp:1551:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4769. mpat]
  4770. for (auto const& element : units_[team])
  4771. ^
  4772. rts/general/Units.cpp:1551:31: error: range-based 'for' loops are not allowed in C++98 mode
  4773. for (auto const& element : units_[team])
  4774. ^
  4775. rts/general/Units.cpp:1551:31: error: 'units_' was not declared in this scope
  4776. rts/general/Units.cpp:1553:31: error: request for member 'second' in 'element', which is of non-cla
  4777. s type 'const int'
  4778. Unit* otherUnit = element.second;
  4779. ^
  4780. rts/general/Units.cpp:1556:30: error: request for member 'first' in 'element', which is of non-clas
  4781. type 'const int'
  4782. return f2(team, element.first);
  4783. ^
  4784. rts/general/Units.cpp:1561:9: warning: extended initializer lists only available with -std=c++11 or
  4785. -std=gnu++11
  4786. return {- 1.f, - 1.f};
  4787. ^
  4788. rts/general/Units.cpp: In member function 'void Units::useAbility(int, bool, bool)':
  4789. rts/general/Units.cpp:1599:20: warning: comparison between signed and unsigned integer expressions
  4790. -Wsign-compare]
  4791. for (int i = 0; i < selectedUnitsSubGroup_.size(); ++i)
  4792. ^
  4793. rts/general/Units.cpp:1603:31: warning: comparison between signed and unsigned integer expressions
  4794. -Wsign-compare]
  4795. if (unit->abilities_.size() <= abilityNumber)
  4796. ^
  4797. rts/general/Units.cpp:1622:20: warning: comparison between signed and unsigned integer expressions
  4798. -Wsign-compare]
  4799. for (int i = 0; i < units.size(); ++i)
  4800. ^
  4801. rts/general/Units.cpp:1626:31: warning: comparison between signed and unsigned integer expressions
  4802. -Wsign-compare]
  4803. if (unit->abilities_.size() <= abilityNumber)
  4804. ^
  4805. rts/general/Units.cpp:1641:39: error: 'relation' is not a class or namespace
  4806. if (findUnitIndex(mousePosition_, relation::ENEMY) != f2(- 1, - 1))
  4807. ^
  4808. rts/general/Units.cpp:1649:39: error: 'relation' is not a class or namespace
  4809. if (findUnitIndex(mousePosition_, relation::FRIEND) != f2(- 1, - 1))
  4810. ^
  4811. rts/general/Units.cpp: In member function 'std::vector<f2> Units::unitsInRange(f2, float, std::vect
  4812. r<int>)':
  4813. rts/general/Units.cpp:1676:29: error: 'units_' was not declared in this scope
  4814. for (int team = 0; team < units_.size(); ++team)
  4815. ^
  4816. rts/general/Units.cpp:1683:20: warning: comparison between signed and unsigned integer expressions
  4817. -Wsign-compare]
  4818. for (int i = 0; i < teams.size(); ++i)
  4819. ^
  4820. rts/general/Units.cpp:1686:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4821. mpat]
  4822. for (auto const& element : units_[team])
  4823. ^
  4824. rts/general/Units.cpp:1686:30: error: range-based 'for' loops are not allowed in C++98 mode
  4825. for (auto const& element : units_[team])
  4826. ^
  4827. rts/general/Units.cpp:1686:30: error: 'units_' was not declared in this scope
  4828. rts/general/Units.cpp:1688:28: error: request for member 'second' in 'element', which is of non-cla
  4829. s type 'const int'
  4830. if ((position - element.second->center()).lengthSquared() < radius * radius)
  4831. ^
  4832. rts/general/Units.cpp:1690:44: error: request for member 'first' in 'element', which is of non-clas
  4833. type 'const int'
  4834. unitIndices.push_back(f2(team, element.first));
  4835. ^
  4836. rts/general/Units.cpp: In member function 'std::vector<f2> Units::visibleUnitsInRange(f2, float, st
  4837. ::vector<int>, int)':
  4838. rts/general/Units.cpp:1701:29: error: 'units_' was not declared in this scope
  4839. for (int team = 0; team < units_.size(); ++team)
  4840. ^
  4841. rts/general/Units.cpp:1708:20: warning: comparison between signed and unsigned integer expressions
  4842. -Wsign-compare]
  4843. for (int i = 0; i < teams.size(); ++i)
  4844. ^
  4845. rts/general/Units.cpp:1711:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4846. mpat]
  4847. for (auto const& element : visibleUnits_[currentTeam][team])
  4848. ^
  4849. rts/general/Units.cpp:1711:31: error: range-based 'for' loops are not allowed in C++98 mode
  4850. for (auto const& element : visibleUnits_[currentTeam][team])
  4851. ^
  4852. rts/general/Units.cpp:1711:31: error: 'visibleUnits_' was not declared in this scope
  4853. rts/general/Units.cpp:1713:25: error: request for member 'second' in 'element', which is of non-cla
  4854. s type 'const int'
  4855. Unit* unit = element.second;
  4856. ^
  4857. rts/general/Units.cpp: At global scope:
  4858. rts/general/Units.cpp:1724:54: error: 'function' in namespace 'std' does not name a template type
  4859. string name, bool visible, relation rel, const std::function <bool (Unit*, Units*)>& f)
  4860. ^
  4861. rts/general/Units.cpp:1724:63: error: expected ',' or '...' before '<' token
  4862. string name, bool visible, relation rel, const std::function <bool (Unit*, Units*)>& f)
  4863. ^
  4864. rts/general/Units.cpp: In member function 'f2 Units::closestUnit(f2, float, std::vector<int>, int,
  4865. 2, std::string, bool, relation, int)':
  4866. rts/general/Units.cpp:1728:29: error: 'units_' was not declared in this scope
  4867. for (int team = 0; team < units_.size(); ++team)
  4868. ^
  4869. rts/general/Units.cpp:1742:20: error: 'numeric_limits' is not a member of 'std'
  4870. float distance = std::numeric_limits<float>::infinity();
  4871. ^
  4872. rts/general/Units.cpp:1742:40: error: expected primary-expression before 'float'
  4873. float distance = std::numeric_limits<float>::infinity();
  4874. ^
  4875. rts/general/Units.cpp:1743:21: warning: comparison between signed and unsigned integer expressions
  4876. -Wsign-compare]
  4877. for (int i = 0; i < teams.size(); ++i)
  4878. ^
  4879. rts/general/Units.cpp:1746:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4880. mpat]
  4881. for (auto const& element : visibleUnits_[currentTeam][team])
  4882. ^
  4883. rts/general/Units.cpp:1746:32: error: range-based 'for' loops are not allowed in C++98 mode
  4884. for (auto const& element : visibleUnits_[currentTeam][team])
  4885. ^
  4886. rts/general/Units.cpp:1746:32: error: 'visibleUnits_' was not declared in this scope
  4887. rts/general/Units.cpp:1748:26: error: request for member 'second' in 'element', which is of non-cla
  4888. s type 'const int'
  4889. Unit* unit = element.second;
  4890. ^
  4891. rts/general/Units.cpp:1752:120: error: 'f' was not declared in this scope
  4892. (unit->name_ == name || name == "any") && (rel == relationTable_[currentTeam][team] || rel ==
  4893. ANY) && f(unit, this))
  4894.  
  4895. ^
  4896. rts/general/Units.cpp:1764:20: error: 'numeric_limits' is not a member of 'std'
  4897. float distance = std::numeric_limits<float>::infinity();
  4898. ^
  4899. rts/general/Units.cpp:1764:40: error: expected primary-expression before 'float'
  4900. float distance = std::numeric_limits<float>::infinity();
  4901. ^
  4902. rts/general/Units.cpp:1765:21: warning: comparison between signed and unsigned integer expressions
  4903. -Wsign-compare]
  4904. for (int i = 0; i < teams.size(); ++i)
  4905. ^
  4906. rts/general/Units.cpp:1768:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4907. mpat]
  4908. for (auto const& element : units_[team])
  4909. ^
  4910. rts/general/Units.cpp:1768:32: error: range-based 'for' loops are not allowed in C++98 mode
  4911. for (auto const& element : units_[team])
  4912. ^
  4913. rts/general/Units.cpp:1768:32: error: 'units_' was not declared in this scope
  4914. rts/general/Units.cpp:1770:26: error: request for member 'second' in 'element', which is of non-cla
  4915. s type 'const int'
  4916. Unit* unit = element.second;
  4917. ^
  4918. rts/general/Units.cpp:1774:120: error: 'f' was not declared in this scope
  4919. (unit->name_ == name || name == "any") && (rel == relationTable_[currentTeam][team] || rel ==
  4920. ANY) && f(unit, this))
  4921.  
  4922. ^
  4923. rts/general/Units.cpp: In member function 'void Units::spatialIndexing()':
  4924. rts/general/Units.cpp:1788:28: error: 'units_' was not declared in this scope
  4925. for (int team = 0; team < units_.size(); ++team)
  4926. ^
  4927. rts/general/Units.cpp:1790:21: warning: comparison between signed and unsigned integer expressions
  4928. -Wsign-compare]
  4929. for (int x = 0; x < unitsGrid_[team].size(); ++x)
  4930. ^
  4931. rts/general/Units.cpp:1792:22: warning: comparison between signed and unsigned integer expressions
  4932. -Wsign-compare]
  4933. for (int y = 0; y < unitsGrid_[team][x].size(); ++y)
  4934. ^
  4935. rts/general/Units.cpp:1798:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  4936. mpat]
  4937. for (auto const& element : units_[team])
  4938. ^
  4939. rts/general/Units.cpp:1798:30: error: range-based 'for' loops are not allowed in C++98 mode
  4940. for (auto const& element : units_[team])
  4941. ^
  4942. rts/general/Units.cpp:1809:25: error: request for member 'second' in 'element', which is of non-cla
  4943. s type 'const int'
  4944. Unit* unit = element.second;
  4945. ^
  4946. rts/general/Units.cpp:1812:30: warning: comparison between signed and unsigned integer expressions
  4947. -Wsign-compare]
  4948. if (column >= 0 && column < unitsGrid_[team].size() && row >= 0 && row < unitsGrid_[team][colum
  4949. ].size())
  4950. ^
  4951. rts/general/Units.cpp:1812:75: warning: comparison between signed and unsigned integer expressions
  4952. -Wsign-compare]
  4953. if (column >= 0 && column < unitsGrid_[team].size() && row >= 0 && row < unitsGrid_[team][colum
  4954. ].size())
  4955. ^
  4956. rts/general/Units.cpp:1817:29: warning: extended initializer lists only available with -std=c++11 o
  4957. -std=gnu++11
  4958. if (unit->circleContains({column * gridSquareSize_.x, row * gridSquareSize_.y}))
  4959. ^
  4960. rts/general/Units.cpp:1823:29: warning: extended initializer lists only available with -std=c++11 o
  4961. -std=gnu++11
  4962. if (unit->circleContains({(column + 1) * gridSquareSize_.x, row * gridSquareSize_.y}))
  4963. ^
  4964. rts/general/Units.cpp:1829:29: warning: extended initializer lists only available with -std=c++11 o
  4965. -std=gnu++11
  4966. if (unit->circleContains({(column + 1) * gridSquareSize_.x, (row + 1) * gridSquareSize_.y}))
  4967. ^
  4968. rts/general/Units.cpp:1835:29: warning: extended initializer lists only available with -std=c++11 o
  4969. -std=gnu++11
  4970. if (unit->circleContains({(column) * gridSquareSize_.x, (row + 1) * gridSquareSize_.y}))
  4971. ^
  4972. rts/general/Units.cpp:1864:21: warning: comparison between signed and unsigned integer expressions
  4973. -Wsign-compare]
  4974. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  4975. ^
  4976. rts/general/Units.cpp:1864:62: warning: comparison between signed and unsigned integer expressions
  4977. -Wsign-compare]
  4978. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  4979. ^
  4980. rts/general/Units.cpp:1875:21: warning: comparison between signed and unsigned integer expressions
  4981. -Wsign-compare]
  4982. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  4983. ^
  4984. rts/general/Units.cpp:1875:62: warning: comparison between signed and unsigned integer expressions
  4985. -Wsign-compare]
  4986. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  4987. ^
  4988. rts/general/Units.cpp:1887:21: warning: comparison between signed and unsigned integer expressions
  4989. -Wsign-compare]
  4990. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  4991. ^
  4992. rts/general/Units.cpp:1887:62: warning: comparison between signed and unsigned integer expressions
  4993. -Wsign-compare]
  4994. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  4995. ^
  4996. rts/general/Units.cpp:1898:21: warning: comparison between signed and unsigned integer expressions
  4997. -Wsign-compare]
  4998. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  4999. ^
  5000. rts/general/Units.cpp:1898:62: warning: comparison between signed and unsigned integer expressions
  5001. -Wsign-compare]
  5002. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  5003. ^
  5004. rts/general/Units.cpp:1910:21: warning: comparison between signed and unsigned integer expressions
  5005. -Wsign-compare]
  5006. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  5007. ^
  5008. rts/general/Units.cpp:1910:62: warning: comparison between signed and unsigned integer expressions
  5009. -Wsign-compare]
  5010. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  5011. ^
  5012. rts/general/Units.cpp:1922:21: warning: comparison between signed and unsigned integer expressions
  5013. -Wsign-compare]
  5014. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  5015. ^
  5016. rts/general/Units.cpp:1922:62: warning: comparison between signed and unsigned integer expressions
  5017. -Wsign-compare]
  5018. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  5019. ^
  5020. rts/general/Units.cpp:1934:21: warning: comparison between signed and unsigned integer expressions
  5021. -Wsign-compare]
  5022. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  5023. ^
  5024. rts/general/Units.cpp:1934:62: warning: comparison between signed and unsigned integer expressions
  5025. -Wsign-compare]
  5026. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  5027. ^
  5028. rts/general/Units.cpp:1945:21: warning: comparison between signed and unsigned integer expressions
  5029. -Wsign-compare]
  5030. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  5031. ^
  5032. rts/general/Units.cpp:1945:62: warning: comparison between signed and unsigned integer expressions
  5033. -Wsign-compare]
  5034. if (x >= 0 && x < unitsGrid_[team].size() && y >= 0 && y < unitsGrid_[team][x].size())
  5035. ^
  5036. rts/general/Units.cpp: In member function 'void Units::processFactions()':
  5037. rts/general/Units.cpp:1957:20: warning: comparison between signed and unsigned integer expressions
  5038. -Wsign-compare]
  5039. for (int i = 0; i < factions_.size(); ++i)
  5040. ^
  5041. rts/general/Units.cpp:1962:9: error: 'FactionType' is not a class or namespace
  5042. case FactionType::CIVILIANS:
  5043. ^
  5044. rts/general/Units.cpp:1966:9: error: 'FactionType' is not a class or namespace
  5045. case FactionType::MILITARY:
  5046. ^
  5047. rts/general/Units.cpp:1970:9: error: 'FactionType' is not a class or namespace
  5048. case FactionType::GR:
  5049. ^
  5050. rts/general/Units.cpp:1960:10: warning: enumeration value 'CIVILIANS' not handled in switch [-Wswit
  5051. h]
  5052. switch (faction->type_)
  5053. ^
  5054. rts/general/Units.cpp:1960:10: warning: enumeration value 'MILITARY' not handled in switch [-Wswitc
  5055. ]
  5056. rts/general/Units.cpp:1960:10: warning: enumeration value 'GR' not handled in switch [-Wswitch]
  5057. rts/general/Units.cpp: In member function 'void Units::processVision()':
  5058. rts/general/Units.cpp:1980:22: error: 'visibleUnits_' was not declared in this scope
  5059. for (int i = 0; i < visibleUnits_.size(); ++i)
  5060. ^
  5061. rts/general/Units.cpp:1991:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5062. mpat]
  5063. for (auto const& element : walls_)
  5064. ^
  5065. rts/general/Units.cpp:1991:29: error: range-based 'for' loops are not allowed in C++98 mode
  5066. for (auto const& element : walls_)
  5067. ^
  5068. rts/general/Units.cpp:1991:29: error: 'walls_' was not declared in this scope
  5069. rts/general/Units.cpp:1993:16: error: request for member 'second' in 'element', which is of non-cla
  5070. s type 'const int'
  5071. if (!element.second->canBeSeenThrough_)
  5072. ^
  5073. rts/general/Units.cpp:1995:42: error: request for member 'second' in 'element', which is of non-cla
  5074. s type 'const int'
  5075. visionBLockingRects.push_back(element.second->getRect());
  5076. ^
  5077. rts/general/Units.cpp:1999:28: error: 'units_' was not declared in this scope
  5078. for (int team = 0; team < units_.size(); ++team)
  5079. ^
  5080. rts/general/Units.cpp:2009:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5081. mpat]
  5082. for (auto const& element : units_[team])
  5083. ^
  5084. rts/general/Units.cpp:2009:30: error: range-based 'for' loops are not allowed in C++98 mode
  5085. for (auto const& element : units_[team])
  5086. ^
  5087. rts/general/Units.cpp:2011:25: error: request for member 'second' in 'element', which is of non-cla
  5088. s type 'const int'
  5089. Unit* unit = element.second;
  5090. ^
  5091. rts/general/Units.cpp:2012:4: error: 'visibleUnits_' was not declared in this scope
  5092. visibleUnits_[team][team][unit->uniqueID_] = element.second;
  5093. ^
  5094. rts/general/Units.cpp:2012:57: error: request for member 'second' in 'element', which is of non-cla
  5095. s type 'const int'
  5096. visibleUnits_[team][team][unit->uniqueID_] = element.second;
  5097. ^
  5098. rts/general/Units.cpp:2013:71: error: request for member 'second' in 'element', which is of non-cla
  5099. s type 'const int'
  5100. vector<f2> unitsInVision = unitsInRange(unit->offCenter(), element.second->sightRange_, teams);
  5101. ^
  5102. rts/general/Units.cpp:2014:22: warning: comparison between signed and unsigned integer expressions
  5103. -Wsign-compare]
  5104. for (int i = 0; i < unitsInVision.size(); ++i)
  5105. ^
  5106. rts/general/Units.cpp: In member function 'void Units::update(const float&)':
  5107. rts/general/Units.cpp:2028:20: error: 'GameState' is not a class or namespace
  5108. if (gameState_ == GameState::BUILDING_EDITOR)
  5109. ^
  5110. rts/general/Units.cpp:2036:20: warning: comparison between signed and unsigned integer expressions
  5111. -Wsign-compare]
  5112. for (int i = 0; i < currentFaction_->currentResources_.size(); ++i)
  5113. ^
  5114. rts/general/Units.cpp:2038:20: error: 'to_string' is not a member of 'std'
  5115. resourceInfo_ += std::to_string(int(currentFaction_->currentResources_[i]));
  5116. ^
  5117. rts/general/Units.cpp:2041:32: error: 'to_string' is not a member of 'std'
  5118. resourceInfo_ += "supply: " + std::to_string(int(currentFaction_->usedSupply_)) + "/" + std::to_s
  5119. ring(int(currentFaction_->currentSupply_));
  5120. ^
  5121. rts/general/Units.cpp:2041:90: error: 'to_string' is not a member of 'std'
  5122. resourceInfo_ += "supply: " + std::to_string(int(currentFaction_->usedSupply_)) + "/" + std::to_s
  5123. ring(int(currentFaction_->currentSupply_));
  5124. ^
  5125. rts/general/Units.cpp:2046:40: error: 'units_' was not declared in this scope
  5126. for (int teamNumber = 0; teamNumber < units_.size(); ++teamNumber)
  5127. ^
  5128. rts/general/Units.cpp:2048:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5129. mpat]
  5130. for (auto const& element : units_[teamNumber])
  5131. ^
  5132. rts/general/Units.cpp:2048:30: error: range-based 'for' loops are not allowed in C++98 mode
  5133. for (auto const& element : units_[teamNumber])
  5134. ^
  5135. rts/general/Units.cpp:2050:25: error: request for member 'second' in 'element', which is of non-cla
  5136. s type 'const int'
  5137. Unit* unit = element.second;
  5138. ^
  5139. rts/general/Units.cpp:2059:20: warning: comparison between signed and unsigned integer expressions
  5140. -Wsign-compare]
  5141. for (int i = 0; i < selectedUnits_.size(); ++i)
  5142. ^
  5143. rts/general/Units.cpp:2062:21: warning: comparison between signed and unsigned integer expressions
  5144. -Wsign-compare]
  5145. for (int j = 0; j < currentSelectionTypes_.size(); ++j)
  5146. ^
  5147. rts/general/Units.cpp:2077:20: warning: comparison between signed and unsigned integer expressions
  5148. -Wsign-compare]
  5149. for (int i = 0; i < currentSelectionTypes_.size(); ++i)
  5150. ^
  5151. rts/general/Units.cpp:2091:20: warning: comparison between signed and unsigned integer expressions
  5152. -Wsign-compare]
  5153. for (int i = 0; i < selectedUnits_.size(); ++i)
  5154. ^
  5155. rts/general/Units.cpp:2099:40: error: 'units_' was not declared in this scope
  5156. for (int teamNumber = 0; teamNumber < units_.size(); ++teamNumber)
  5157. ^
  5158. rts/general/Units.cpp:2101:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5159. mpat]
  5160. for (auto const& element : units_[teamNumber])
  5161. ^
  5162. rts/general/Units.cpp:2101:30: error: range-based 'for' loops are not allowed in C++98 mode
  5163. for (auto const& element : units_[teamNumber])
  5164. ^
  5165. rts/general/Units.cpp:2103:25: error: request for member 'second' in 'element', which is of non-cla
  5166. s type 'const int'
  5167. Unit* unit = element.second;
  5168. ^
  5169. rts/general/Units.cpp:2121:40: error: 'units_' was not declared in this scope
  5170. for (int teamNumber = 0; teamNumber < units_.size(); ++teamNumber)
  5171. ^
  5172. rts/general/Units.cpp:2125:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5173. mpat]
  5174. for (auto element = units_[teamNumber].begin(); element != units_[teamNumber].end(); ++element)
  5175. ^
  5176. rts/general/Units.cpp:2125:13: error: 'element' does not name a type
  5177. for (auto element = units_[teamNumber].begin(); element != units_[teamNumber].end(); ++element)
  5178. ^
  5179. rts/general/Units.cpp:2125:51: error: expected ';' before 'element'
  5180. for (auto element = units_[teamNumber].begin(); element != units_[teamNumber].end(); ++element)
  5181. ^
  5182. rts/general/Units.cpp:2125:51: error: 'element' was not declared in this scope
  5183. rts/general/Units.cpp:2169:50: error: 'kill' was not declared in this scope
  5184. element = kill(f2(teamNumber, element->first));
  5185. ^
  5186. rts/general/Units.cpp:2183:20: warning: comparison between signed and unsigned integer expressions
  5187. -Wsign-compare]
  5188. for (int i = 0; i < animations_.size(); ++i)
  5189. ^
  5190. rts/general/Units.cpp: In member function 'std::vector<Rect> Units::generateStaticObstacles()':
  5191. rts/general/Units.cpp:2208:20: warning: comparison between signed and unsigned integer expressions
  5192. -Wsign-compare]
  5193. for (int i = 0; i < unpassableTiles_.size(); ++i)
  5194. ^
  5195. rts/general/Units.cpp:2212:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5196. mpat]
  5197. for (auto const& element : walls_)
  5198. ^
  5199. rts/general/Units.cpp:2212:29: error: range-based 'for' loops are not allowed in C++98 mode
  5200. for (auto const& element : walls_)
  5201. ^
  5202. rts/general/Units.cpp:2212:29: error: 'walls_' was not declared in this scope
  5203. rts/general/Units.cpp:2214:16: error: request for member 'second' in 'element', which is of non-cla
  5204. s type 'const int'
  5205. if (!element.second->canBeMovedThrough_)
  5206. ^
  5207. rts/general/Units.cpp:2216:33: error: request for member 'second' in 'element', which is of non-cla
  5208. s type 'const int'
  5209. obstacles.push_back(*element.second);
  5210. ^
  5211. rts/general/Units.cpp: In member function 'void Units::randomCivilianOrders(int, int)':
  5212. rts/general/Units.cpp:2239:23: warning: extended initializer lists only available with -std=c++11 o
  5213. -std=gnu++11
  5214. Unit* unit = getUnit({float(team), float(id)});
  5215. ^
  5216. rts/general/Units.cpp: In member function 'void Units::processBoidianMovement(Unit*)':
  5217. rts/general/Units.cpp:2270:23: error: in C++98 'flocking' must be initialized by constructor, not b
  5218. '{...}'
  5219. f2 flocking = {0, 0};
  5220. ^
  5221. rts/general/Units.cpp:2271:23: error: in C++98 'avoidance' must be initialized by constructor, not
  5222. y '{...}'
  5223. f2 avoidance = {0, 0};
  5224. ^
  5225. rts/general/Units.cpp:2272:23: error: in C++98 'steering' must be initialized by constructor, not b
  5226. '{...}'
  5227. f2 steering = {0, 0};
  5228. ^
  5229. rts/general/Units.cpp:2275:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5230. mpat]
  5231. for (auto const& element : units_[unit1->team_])
  5232. ^
  5233. rts/general/Units.cpp:2275:30: error: range-based 'for' loops are not allowed in C++98 mode
  5234. for (auto const& element : units_[unit1->team_])
  5235. ^
  5236. rts/general/Units.cpp:2275:30: error: 'units_' was not declared in this scope
  5237. rts/general/Units.cpp:2277:26: error: request for member 'second' in 'element', which is of non-cla
  5238. s type 'const int'
  5239. Unit* unit2 = element.second;
  5240. ^
  5241. rts/general/Units.cpp: In member function 'int Units::getAbilityNumber(Unit*, OrderType)':
  5242. rts/general/Units.cpp:2317:20: warning: comparison between signed and unsigned integer expressions
  5243. -Wsign-compare]
  5244. for (int i = 0; i < unit->abilities_.size(); ++i)
  5245. ^
  5246. rts/general/Units.cpp: In member function 'void Units::processPassives(int, int)':
  5247. rts/general/Units.cpp:2339:68: warning: extended initializer lists only available with -std=c++11 o
  5248. -std=gnu++11
  5249. vector<f2> units = unitsInRange(unit->offCenter(), unit->range_, {currentTeam_});
  5250. ^
  5251. rts/general/Units.cpp:2339:82: error: converting to 'std::vector<int>' from initializer list would
  5252. se explicit constructor 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, cons
  5253. value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp
  5254. _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _A
  5255. loc>::allocator_type = std::allocator<int>]'
  5256. vector<f2> units = unitsInRange(unit->offCenter(), unit->range_, {currentTeam_});
  5257. ^
  5258. rts/general/Units.cpp:2339:82: warning: narrowing conversion of '((Units*)this)->Units::currentTeam
  5259. ' from 'int' to 'std::vector<int>::size_type {aka unsigned int}' inside { } is ill-formed in C++11
  5260. -Wnarrowing]
  5261. rts/general/Units.cpp:2340:24: warning: comparison between signed and unsigned integer expressions
  5262. -Wsign-compare]
  5263. if (units.size() - 1 < unit->workersRequired_)
  5264. ^
  5265. rts/general/Units.cpp:2345:20: warning: comparison between signed and unsigned integer expressions
  5266. -Wsign-compare]
  5267. for (int i = 0; i < unit->passives_.size(); ++i)
  5268. ^
  5269. rts/general/Units.cpp:2349:10: warning: enumeration value 'NO_COMMAND' not handled in switch [-Wswi
  5270. ch]
  5271. switch (type)
  5272. ^
  5273. rts/general/Units.cpp:2349:10: warning: enumeration value 'MOVE' not handled in switch [-Wswitch]
  5274. rts/general/Units.cpp:2349:10: warning: enumeration value 'ATTACK' not handled in switch [-Wswitch]
  5275. rts/general/Units.cpp:2349:10: warning: enumeration value 'ATTACK_MOVE' not handled in switch [-Wsw
  5276. tch]
  5277. rts/general/Units.cpp:2349:10: warning: enumeration value 'HOLD' not handled in switch [-Wswitch]
  5278. rts/general/Units.cpp:2349:10: warning: enumeration value 'CANCEL' not handled in switch [-Wswitch]
  5279. rts/general/Units.cpp:2349:10: warning: enumeration value 'PATROL' not handled in switch [-Wswitch]
  5280. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY1' not handled in switch [-Ws
  5281. itch]
  5282. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY2' not handled in switch [-Ws
  5283. itch]
  5284. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY3' not handled in switch [-Ws
  5285. itch]
  5286. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY4' not handled in switch [-Ws
  5287. itch]
  5288. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY5' not handled in switch [-Ws
  5289. itch]
  5290. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY6' not handled in switch [-Ws
  5291. itch]
  5292. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY7' not handled in switch [-Ws
  5293. itch]
  5294. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY8' not handled in switch [-Ws
  5295. itch]
  5296. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY9' not handled in switch [-Ws
  5297. itch]
  5298. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY10' not handled in switch [-W
  5299. witch]
  5300. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY11' not handled in switch [-W
  5301. witch]
  5302. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY12' not handled in switch [-W
  5303. witch]
  5304. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY13' not handled in switch [-W
  5305. witch]
  5306. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY14' not handled in switch [-W
  5307. witch]
  5308. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY15' not handled in switch [-W
  5309. witch]
  5310. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY16' not handled in switch [-W
  5311. witch]
  5312. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY17' not handled in switch [-W
  5313. witch]
  5314. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY18' not handled in switch [-W
  5315. witch]
  5316. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY19' not handled in switch [-W
  5317. witch]
  5318. rts/general/Units.cpp:2349:10: warning: enumeration value 'USE_ABILITY20' not handled in switch [-W
  5319. witch]
  5320. rts/general/Units.cpp:2349:10: warning: enumeration value 'TELEPORT' not handled in switch [-Wswitc
  5321. ]
  5322. rts/general/Units.cpp:2349:10: warning: enumeration value 'CREATE_RECRUITMENT_STAND' not handled in
  5323. switch [-Wswitch]
  5324. rts/general/Units.cpp:2349:10: warning: enumeration value 'GIVE_SMG' not handled in switch [-Wswitc
  5325. ]
  5326. rts/general/Units.cpp: In member function 'int Units::getCivilianTeam()':
  5327. rts/general/Units.cpp:2385:20: warning: comparison between signed and unsigned integer expressions
  5328. -Wsign-compare]
  5329. for (int i = 0; i < factions_.size(); ++i)
  5330. ^
  5331. rts/general/Units.cpp: In member function 'void Units::recruitNearestCivilian(f2, int, int)':
  5332. rts/general/Units.cpp:2398:33: error: 'numeric_limits' is not a member of 'std'
  5333. f2 civ = closestUnit(position, std::numeric_limits<float>::infinity(), {civilianTeam}, team, f2(t
  5334. am, unitID));
  5335. ^
  5336. rts/general/Units.cpp:2398:53: error: expected primary-expression before 'float'
  5337. f2 civ = closestUnit(position, std::numeric_limits<float>::infinity(), {civilianTeam}, team, f2(t
  5338. am, unitID));
  5339. ^
  5340. rts/general/Units.cpp:2398:73: warning: extended initializer lists only available with -std=c++11 o
  5341. -std=gnu++11
  5342. f2 civ = closestUnit(position, std::numeric_limits<float>::infinity(), {civilianTeam}, team, f2(t
  5343. am, unitID));
  5344. ^
  5345. rts/general/Units.cpp:2405:10: error: 'kill' was not declared in this scope
  5346. kill(civ);
  5347. ^
  5348. rts/general/Units.cpp: In member function 'void Units::processOrders(int, int)':
  5349. rts/general/Units.cpp:2420:38: warning: comparison between signed and unsigned integer expressions
  5350. -Wsign-compare]
  5351. if (unit->abilityCooldowns_.size() > abilityNumber && unit->abilityCooldowns_[abilityNumber] <=
  5352. )
  5353. ^
  5354. rts/general/Units.cpp:2480:22: warning: comparison between signed and unsigned integer expressions
  5355. -Wsign-compare]
  5356. for (int i = 0; i < usableAbilities_.size(); ++i)
  5357. ^
  5358. rts/general/Units.cpp: In member function 'void Units::displayAbilityCursor()':
  5359. rts/general/Units.cpp:2542:30: warning: comparison between signed and unsigned integer expressions
  5360. -Wsign-compare]
  5361. if (unit->abilities_.size() <= abilityCursorNumber_)
  5362. ^
  5363. rts/general/Units.cpp:2551:21: warning: comparison between signed and unsigned integer expressions
  5364. -Wsign-compare]
  5365. for (int i = 0; i < ability->unit_->walls_.size(); ++i)
  5366. ^
  5367. rts/general/Units.cpp:2556:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5368. mpat]
  5369. for (auto const& element : walls_)
  5370. ^
  5371. rts/general/Units.cpp:2556:31: error: range-based 'for' loops are not allowed in C++98 mode
  5372. for (auto const& element : walls_)
  5373. ^
  5374. rts/general/Units.cpp:2556:31: error: 'walls_' was not declared in this scope
  5375. rts/general/Units.cpp:2558:27: error: request for member 'second' in 'element', which is of non-cla
  5376. s type 'const int'
  5377. Wall* wall2 = element.second;
  5378. ^
  5379. rts/general/Units.cpp:2566:30: error: 'units_' was not declared in this scope
  5380. for (int team = 0; team < units_.size(); ++team)
  5381. ^
  5382. rts/general/Units.cpp:2572:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
  5383. ompat]
  5384. for (auto const& element : units_[team])
  5385. ^
  5386. rts/general/Units.cpp:2572:32: error: range-based 'for' loops are not allowed in C++98 mode
  5387. for (auto const& element : units_[team])
  5388. ^
  5389. rts/general/Units.cpp:2574:27: error: request for member 'second' in 'element', which is of non-cla
  5390. s type 'const int'
  5391. Unit* unit = element.second;
  5392. ^
  5393. rts/general/Units.cpp: In member function 'void Units::processPathfinding(int, int)':
  5394. rts/general/Units.cpp:2608:23: warning: extended initializer lists only available with -std=c++11 o
  5395. -std=gnu++11
  5396. Unit* unit = getUnit({float(teamNumber), float(i)});
  5397. ^
  5398. rts/general/Units.cpp:2659:26: warning: comparison between signed and unsigned integer expressions
  5399. -Wsign-compare]
  5400. if (unit->path_.size() > step)
  5401. ^
  5402. rts/general/Units.cpp:2669:26: warning: comparison between signed and unsigned integer expressions
  5403. -Wsign-compare]
  5404. if (unit->path_.size() > step && unit->path_[step] == unit->offCenter())
  5405. ^
  5406. rts/general/Units.cpp:2671:24: warning: extended initializer lists only available with -std=c++11 o
  5407. -std=gnu++11
  5408. unit->speed_ = {0, 0};
  5409. ^
  5410. rts/general/Units.cpp:2671:17: warning: extended initializer lists only available with -std=c++11 o
  5411. -std=gnu++11
  5412. unit->speed_ = {0, 0};
  5413. ^
  5414. rts/general/Units.cpp: At global scope:
  5415. rts/general/Units.cpp:2680:44: warning: unused parameter 'unitIndex' [-Wunused-parameter]
  5416. void Units::returnResourcesOrder(const f2& unitIndex)
  5417. ^
  5418. rts/general/Units.cpp:2719:45: warning: unused parameter 'unitIndex' [-Wunused-parameter]
  5419. void Units::gatherNearestResource(const f2& unitIndex)
  5420. ^
  5421. rts/general/Units.cpp:2748:35: warning: unused parameter 'unitIndex' [-Wunused-parameter]
  5422. void Units::gatherOrder(const f2& unitIndex)
  5423. ^
  5424. rts/general/Units.cpp: In member function 'void Units::moveOrder(const f2&)':
  5425. rts/general/Units.cpp:2871:15: error: 'units_' was not declared in this scope
  5426. Unit* unit = units_[unitIndex.x][unitIndex.y];
  5427. ^
  5428. rts/general/Units.cpp: In member function 'f2 Units::fastestReachableUnit(Unit*, relation, float, i
  5429. t, f2)':
  5430. rts/general/Units.cpp:2945:20: warning: comparison between signed and unsigned integer expressions
  5431. -Wsign-compare]
  5432. for (int i = 0; i < units.size(); ++i)
  5433. ^
  5434. rts/general/Units.cpp:2963:10: warning: extended initializer lists only available with -std=c++11 o
  5435. -std=gnu++11
  5436. return {- 1.f, - 1.f};
  5437. ^
  5438. rts/general/Units.cpp: At global scope:
  5439. rts/general/Units.cpp:2939:84: warning: unused parameter 'nodeOffset' [-Wunused-parameter]
  5440. f2 Units::fastestReachableUnit(Unit* unit, relation rel, float range, int team, f2 nodeOffset)
  5441. ^
  5442. rts/general/Units.cpp: In member function 'void Units::makeUnit(Unit*, Ability*)':
  5443. rts/general/Units.cpp:3053:20: warning: comparison between signed and unsigned integer expressions
  5444. -Wsign-compare]
  5445. for (int i = 0; i < ability->unit_->resourceCosts_.size(); ++i)
  5446. ^
  5447. rts/general/Units.cpp:3066:20: warning: comparison between signed and unsigned integer expressions
  5448. -Wsign-compare]
  5449. for (int i = 0; i < ability->unit_->walls_.size(); ++i)
  5450. ^
  5451. rts/general/Units.cpp:3070:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5452. mpat]
  5453. for (auto const& element : walls_)
  5454. ^
  5455. rts/general/Units.cpp:3070:30: error: range-based 'for' loops are not allowed in C++98 mode
  5456. for (auto const& element : walls_)
  5457. ^
  5458. rts/general/Units.cpp:3070:30: error: 'walls_' was not declared in this scope
  5459. rts/general/Units.cpp:3072:26: error: request for member 'second' in 'element', which is of non-cla
  5460. s type 'const int'
  5461. Wall* wall2 = element.second;
  5462. ^
  5463. rts/general/Units.cpp:3079:29: error: 'units_' was not declared in this scope
  5464. for (int team = 0; team < units_.size(); ++team)
  5465. ^
  5466. rts/general/Units.cpp:3081:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5467. mpat]
  5468. for (auto const& element : units_[team])
  5469. ^
  5470. rts/general/Units.cpp:3081:31: error: range-based 'for' loops are not allowed in C++98 mode
  5471. for (auto const& element : units_[team])
  5472. ^
  5473. rts/general/Units.cpp:3083:36: error: request for member 'second' in 'element', which is of non-cla
  5474. s type 'const int'
  5475. if (wall1->intersects(*element.second))
  5476. ^
  5477. rts/general/Units.cpp:3092:20: warning: comparison between signed and unsigned integer expressions
  5478. -Wsign-compare]
  5479. for (int i = 0; i < ability->unit_->resourceCosts_.size(); ++i)
  5480. ^
  5481. rts/general/Units.cpp: In member function 'void Units::processCollission(int, int, std::vector<Rect
  5482. )':
  5483. rts/general/Units.cpp:3130:16: error: 'units_' was not declared in this scope
  5484. Unit* unit1 = units_[team1][i];
  5485. ^
  5486. rts/general/Units.cpp:3140:20: warning: comparison between signed and unsigned integer expressions
  5487. -Wsign-compare]
  5488. for (int k = 0; k < obstacles.size(); ++k)
  5489. ^
  5490. rts/general/Units.cpp:3159:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5491. mpat]
  5492. for (auto const& element : units_[team2])
  5493. ^
  5494. rts/general/Units.cpp:3159:30: error: range-based 'for' loops are not allowed in C++98 mode
  5495. for (auto const& element : units_[team2])
  5496. ^
  5497. rts/general/Units.cpp:3161:26: error: request for member 'second' in 'element', which is of non-cla
  5498. s type 'const int'
  5499. Unit* unit2 = element.second;
  5500. ^
  5501. rts/general/Units.cpp: In member function 'void Units::processProjectiles()':
  5502. rts/general/Units.cpp:3176:20: warning: comparison between signed and unsigned integer expressions
  5503. -Wsign-compare]
  5504. for (int i = 0; i < projectiles_.size(); ++i)
  5505. ^
  5506. rts/general/Units.cpp:3197:28: warning: comparison between signed and unsigned integer expressions
  5507. -Wsign-compare]
  5508. for (int team = 0; team < relationTable_[currentTeam_].size(); ++team)
  5509. ^
  5510. rts/general/Units.cpp:3201:11: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
  5511. ompat]
  5512. for (auto const& element : units_[team])
  5513. ^
  5514. rts/general/Units.cpp:3201:33: error: range-based 'for' loops are not allowed in C++98 mode
  5515. for (auto const& element : units_[team])
  5516. ^
  5517. rts/general/Units.cpp:3201:33: error: 'units_' was not declared in this scope
  5518. rts/general/Units.cpp:3203:28: error: request for member 'second' in 'element', which is of non-cla
  5519. s type 'const int'
  5520. Unit* unit = element.second;
  5521. ^
  5522. rts/general/Units.cpp:3215:11: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
  5523. ompat]
  5524. for (auto const& element : units_[team])
  5525. ^
  5526. rts/general/Units.cpp:3215:33: error: range-based 'for' loops are not allowed in C++98 mode
  5527. for (auto const& element : units_[team])
  5528. ^
  5529. rts/general/Units.cpp:3215:33: error: 'units_' was not declared in this scope
  5530. rts/general/Units.cpp:3217:28: error: request for member 'second' in 'element', which is of non-cla
  5531. s type 'const int'
  5532. Unit* unit = element.second;
  5533. ^
  5534. rts/general/Units.cpp: In member function 'int Units::abilityHits(Ability*, int)':
  5535. rts/general/Units.cpp:3254:27: warning: comparison between signed and unsigned integer expressions
  5536. -Wsign-compare]
  5537. for (int team = 0; team < relationTable_[currentTeam_].size(); ++team)
  5538. ^
  5539. rts/general/Units.cpp:3258:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
  5540. ompat]
  5541. for (auto const& element : units_[team])
  5542. ^
  5543. rts/general/Units.cpp:3258:32: error: range-based 'for' loops are not allowed in C++98 mode
  5544. for (auto const& element : units_[team])
  5545. ^
  5546. rts/general/Units.cpp:3258:32: error: 'units_' was not declared in this scope
  5547. rts/general/Units.cpp:3260:27: error: request for member 'second' in 'element', which is of non-cla
  5548. s type 'const int'
  5549. Unit* unit = element.second;
  5550. ^
  5551. rts/general/Units.cpp:3269:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
  5552. ompat]
  5553. for (auto const& element : units_[team])
  5554. ^
  5555. rts/general/Units.cpp:3269:32: error: range-based 'for' loops are not allowed in C++98 mode
  5556. for (auto const& element : units_[team])
  5557. ^
  5558. rts/general/Units.cpp:3269:32: error: 'units_' was not declared in this scope
  5559. rts/general/Units.cpp:3271:27: error: request for member 'second' in 'element', which is of non-cla
  5560. s type 'const int'
  5561. Unit* unit = element.second;
  5562. ^
  5563. rts/general/Units.cpp: In member function 'void Units::createUI()':
  5564. rts/general/Units.cpp:3360:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5565. mpat]
  5566. for (auto const& element : units_[currentTeam_])
  5567. ^
  5568. rts/general/Units.cpp:3360:29: error: range-based 'for' loops are not allowed in C++98 mode
  5569. for (auto const& element : units_[currentTeam_])
  5570. ^
  5571. rts/general/Units.cpp:3360:29: error: 'units_' was not declared in this scope
  5572. rts/general/Units.cpp:3362:15: error: request for member 'second' in 'element', which is of non-cla
  5573. s type 'const int'
  5574. if (element.second->selected_)
  5575. ^
  5576. rts/general/Units.cpp:3365:36: error: request for member 'second' in 'element', which is of non-cla
  5577. s type 'const int'
  5578. selectedUnits.push_back(element.second);
  5579. ^
  5580. rts/general/Units.cpp:3379:29: error: 'to_string' is not a member of 'std'
  5581. health.setString("hp: " + std::to_string(int(unit->currentHealth_)) + "/" + std::to_string(int(u
  5582. it->health_)));
  5583. ^
  5584. rts/general/Units.cpp:3379:79: error: 'to_string' is not a member of 'std'
  5585. health.setString("hp: " + std::to_string(int(unit->currentHealth_)) + "/" + std::to_string(int(u
  5586. it->health_)));
  5587. ^
  5588. rts/general/Units.cpp:3380:33: error: 'to_string' is not a member of 'std'
  5589. shield.setString("shield: " + std::to_string(int(unit->currentShield_)) + "/" + std::to_string(i
  5590. t(unit->maxShield_)));
  5591. ^
  5592. rts/general/Units.cpp:3380:83: error: 'to_string' is not a member of 'std'
  5593. shield.setString("shield: " + std::to_string(int(unit->currentShield_)) + "/" + std::to_string(i
  5594. t(unit->maxShield_)));
  5595. ^
  5596. rts/general/Units.cpp:3381:31: error: 'to_string' is not a member of 'std'
  5597. armor.setString("armor: " + std::to_string(int(unit->armor_)));
  5598. ^
  5599. rts/general/Units.cpp:3382:31: error: 'to_string' is not a member of 'std'
  5600. speed.setString("speed: " + std::to_string(int(unit->movementSpeed_)));
  5601. ^
  5602. rts/general/Units.cpp:3384:33: error: 'to_string' is not a member of 'std'
  5603. energy.setString("energy: " + std::to_string(int(unit->currentEnergy_)) + "/" + std::to_string(i
  5604. t(unit->maxEnergy_)));
  5605. ^
  5606. rts/general/Units.cpp:3384:83: error: 'to_string' is not a member of 'std'
  5607. energy.setString("energy: " + std::to_string(int(unit->currentEnergy_)) + "/" + std::to_string(i
  5608. t(unit->maxEnergy_)));
  5609. ^
  5610. rts/general/Units.cpp:3398:21: warning: comparison between signed and unsigned integer expressions
  5611. -Wsign-compare]
  5612. for (int i = 0; i < stats->size(); ++i)
  5613. ^
  5614. rts/general/Units.cpp:3415:21: warning: comparison between signed and unsigned integer expressions
  5615. -Wsign-compare]
  5616. for (int i = 1; i < selectedUnits.size(); ++i)
  5617. ^
  5618. rts/general/Units.cpp:3433:21: warning: comparison between signed and unsigned integer expressions
  5619. -Wsign-compare]
  5620. for (int i = 0; i < selectedUnitsSubGroup_.size(); ++i)
  5621. ^
  5622. rts/general/Units.cpp:3468:22: warning: comparison between signed and unsigned integer expressions
  5623. -Wsign-compare]
  5624. for (int i = 1; i < unit->abilities_.size(); ++i)
  5625. ^
  5626. rts/general/Units.cpp: In member function 'void Units::setLifeBars(sf::VertexArray*)':
  5627. rts/general/Units.cpp:3624:28: error: 'visibleUnits_' was not declared in this scope
  5628. for (int team = 0; team < visibleUnits_[currentTeam_].size(); ++team)
  5629. ^
  5630. rts/general/Units.cpp:3626:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5631. mpat]
  5632. for (auto const& element : visibleUnits_[currentTeam_][team])
  5633. ^
  5634. rts/general/Units.cpp:3626:30: error: range-based 'for' loops are not allowed in C++98 mode
  5635. for (auto const& element : visibleUnits_[currentTeam_][team])
  5636. ^
  5637. rts/general/Units.cpp:3628:25: error: request for member 'second' in 'element', which is of non-cla
  5638. s type 'const int'
  5639. Unit* unit = element.second;
  5640. ^
  5641. rts/general/Units.cpp: In member function 'void Units::drawUIText()':
  5642. rts/general/Units.cpp:3650:20: error: 'GameState' is not a class or namespace
  5643. if (gameState_ == GameState::BUILDING_EDITOR)
  5644. ^
  5645. rts/general/Units.cpp: In member function 'std::vector<Wall*> Units::wallsInRange(const f2&, float)
  5646. :
  5647. rts/general/Units.cpp:3660:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5648. mpat]
  5649. for (auto const& element : walls_)
  5650. ^
  5651. rts/general/Units.cpp:3660:29: error: range-based 'for' loops are not allowed in C++98 mode
  5652. for (auto const& element : walls_)
  5653. ^
  5654. rts/general/Units.cpp:3660:29: error: 'walls_' was not declared in this scope
  5655. rts/general/Units.cpp:3662:15: error: request for member 'second' in 'element', which is of non-cla
  5656. s type 'const int'
  5657. if (element.second->intersectsCircle(position, range))
  5658. ^
  5659. rts/general/Units.cpp:3664:29: error: request for member 'second' in 'element', which is of non-cla
  5660. s type 'const int'
  5661. result.push_back(element.second);
  5662. ^
  5663. rts/general/Units.cpp: At global scope:
  5664. rts/general/Units.cpp:3670:48: error: '>>' should be '> >' within a nested template argument list
  5665. void splitIntersectingLines(vector<vector<float>>* anglesSet, f2 center)
  5666. ^
  5667. rts/general/Units.cpp: In function 'void splitIntersectingLines(std::vector<std::vector<float> >*,
  5668. 2)':
  5669. rts/general/Units.cpp:3672:20: warning: comparison between signed and unsigned integer expressions
  5670. -Wsign-compare]
  5671. for (int i = 0; i < (*anglesSet).size(); ++i)
  5672. ^
  5673. rts/general/Units.cpp:3674:21: warning: comparison between signed and unsigned integer expressions
  5674. -Wsign-compare]
  5675. for (int j = 0; j < (*anglesSet).size(); ++j)
  5676. ^
  5677. rts/general/Units.cpp:3698:107: warning: extended initializer lists only available with -std=c++11
  5678. r -std=gnu++11
  5679. (*anglesSet)[i] = {startAngle1, intersectionAngle, start1.x, start1.y, intersection.x, inters
  5680. ction.y};
  5681.  
  5682. ^
  5683. rts/general/Units.cpp:3698:22: warning: extended initializer lists only available with -std=c++11 o
  5684. -std=gnu++11
  5685. (*anglesSet)[i] = {startAngle1, intersectionAngle, start1.x, start1.y, intersection.x, inters
  5686. ction.y};
  5687. ^
  5688. rts/general/Units.cpp:3698:22: error: no match for 'operator=' (operand types are 'std::vector<floa
  5689. >' and '<brace-enclosed initializer list>')
  5690. rts/general/Units.cpp:3698:22: note: candidate is:
  5691. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  5692. e/c++/vector:69:0,
  5693. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  5694. from D:/sfml-source/include/SFML/Window.hpp:41,
  5695. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  5696. from supportClasses/f2.h:4,
  5697. from rts/Hotkey.h:3,
  5698. from rts/Init.h:36,
  5699. from rts/general/Units.h:27,
  5700. from rts/general/Units.cpp:26:
  5701. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  5702. 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
  5703. lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
  5704. vector<_Tp, _Alloc>::
  5705. ^
  5706. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  5707. 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
  5708. std::vector<float>&'
  5709. rts/general/Units.cpp:3699:29: warning: extended initializer lists only available with -std=c++11 o
  5710. -std=gnu++11
  5711. (*anglesSet).push_back({intersectionAngle, endAngle1, intersection.x, intersection.y, end1.x,
  5712. end1.y});
  5713. ^
  5714. rts/general/Units.cpp:3699:107: warning: extended initializer lists only available with -std=c++11
  5715. r -std=gnu++11
  5716. (*anglesSet).push_back({intersectionAngle, endAngle1, intersection.x, intersection.y, end1.x,
  5717. end1.y});
  5718.  
  5719. ^
  5720. rts/general/Units.cpp:3699:107: error: no matching function for call to 'std::vector<std::vector<fl
  5721. at> >::push_back(<brace-enclosed initializer list>)'
  5722. rts/general/Units.cpp:3699:107: note: candidate is:
  5723. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  5724. e/c++/vector:64:0,
  5725. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  5726. from D:/sfml-source/include/SFML/Window.hpp:41,
  5727. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  5728. from supportClasses/f2.h:4,
  5729. from rts/Hotkey.h:3,
  5730. from rts/Init.h:36,
  5731. from rts/general/Units.h:27,
  5732. from rts/general/Units.cpp:26:
  5733. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  5734. h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
  5735. loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
  5736. tor<float>]
  5737. push_back(const value_type& __x)
  5738. ^
  5739. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  5740. h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
  5741. st value_type& {aka const std::vector<float>&}'
  5742. rts/general/Units.cpp:3700:107: warning: extended initializer lists only available with -std=c++11
  5743. r -std=gnu++11
  5744. (*anglesSet)[j] = {startAngle2, intersectionAngle, start2.x, start2.y, intersection.x, inters
  5745. ction.y};
  5746.  
  5747. ^
  5748. rts/general/Units.cpp:3700:22: warning: extended initializer lists only available with -std=c++11 o
  5749. -std=gnu++11
  5750. (*anglesSet)[j] = {startAngle2, intersectionAngle, start2.x, start2.y, intersection.x, inters
  5751. ction.y};
  5752. ^
  5753. rts/general/Units.cpp:3700:22: error: no match for 'operator=' (operand types are 'std::vector<floa
  5754. >' and '<brace-enclosed initializer list>')
  5755. rts/general/Units.cpp:3700:22: note: candidate is:
  5756. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  5757. e/c++/vector:69:0,
  5758. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  5759. from D:/sfml-source/include/SFML/Window.hpp:41,
  5760. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  5761. from supportClasses/f2.h:4,
  5762. from rts/Hotkey.h:3,
  5763. from rts/Init.h:36,
  5764. from rts/general/Units.h:27,
  5765. from rts/general/Units.cpp:26:
  5766. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  5767. 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
  5768. lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
  5769. vector<_Tp, _Alloc>::
  5770. ^
  5771. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  5772. 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
  5773. std::vector<float>&'
  5774. rts/general/Units.cpp:3701:29: warning: extended initializer lists only available with -std=c++11 o
  5775. -std=gnu++11
  5776. (*anglesSet).push_back({intersectionAngle, endAngle2, intersection.x, intersection.y, end2.x,
  5777. end2.y});
  5778. ^
  5779. rts/general/Units.cpp:3701:107: warning: extended initializer lists only available with -std=c++11
  5780. r -std=gnu++11
  5781. (*anglesSet).push_back({intersectionAngle, endAngle2, intersection.x, intersection.y, end2.x,
  5782. end2.y});
  5783.  
  5784. ^
  5785. rts/general/Units.cpp:3701:107: error: no matching function for call to 'std::vector<std::vector<fl
  5786. at> >::push_back(<brace-enclosed initializer list>)'
  5787. rts/general/Units.cpp:3701:107: note: candidate is:
  5788. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  5789. e/c++/vector:64:0,
  5790. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  5791. from D:/sfml-source/include/SFML/Window.hpp:41,
  5792. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  5793. from supportClasses/f2.h:4,
  5794. from rts/Hotkey.h:3,
  5795. from rts/Init.h:36,
  5796. from rts/general/Units.h:27,
  5797. from rts/general/Units.cpp:26:
  5798. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  5799. h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
  5800. loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
  5801. tor<float>]
  5802. push_back(const value_type& __x)
  5803. ^
  5804. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  5805. h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
  5806. st value_type& {aka const std::vector<float>&}'
  5807. rts/general/Units.cpp: In member function 'void Units::generateLOSLineSegments(Unit*, sf::VertexArr
  5808. y*)':
  5809. rts/general/Units.cpp:3715:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  5810. mpat]
  5811. for (auto const& element : walls_)
  5812. ^
  5813. rts/general/Units.cpp:3715:29: error: range-based 'for' loops are not allowed in C++98 mode
  5814. for (auto const& element : walls_)
  5815. ^
  5816. rts/general/Units.cpp:3715:29: error: 'walls_' was not declared in this scope
  5817. rts/general/Units.cpp:3717:24: error: request for member 'second' in 'element', which is of non-cla
  5818. s type 'const int'
  5819. Wall* wall = element.second;
  5820. ^
  5821. rts/general/Units.cpp:3736:23: error: '>>' should be '> >' within a nested template argument list
  5822. vector<vector<float>> lines = {{wall->topLeft().x, wall->topLeft().y, wall->topRight().x, wall-
  5823. topRight().y},
  5824. ^
  5825. rts/general/Units.cpp:3739:106: error: in C++98 'lines' must be initialized by constructor, not by
  5826. {...}'
  5827. {wall->bottomRight().x, wall->bottomRight().y, wall->topRight().x, wall->topRig
  5828. t().y}};
  5829.  
  5830. ^
  5831. rts/general/Units.cpp: In substitution of 'template<class _InputIterator> std::vector<_Tp, _Alloc>:
  5832. vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = <missing>]':
  5833. rts/general/Units.cpp:3739:106: required from here
  5834. rts/general/Units.cpp:3739:106: warning: extended initializer lists only available with -std=c++11
  5835. r -std=gnu++11
  5836. rts/general/Units.cpp:3739:106: error: could not convert '{{wall->Wall::<anonymous>.Rectangle::topL
  5837. ft().f2::x, wall->Wall::<anonymous>.Rectangle::topLeft().f2::y, wall->Wall::<anonymous>.Rectangle::
  5838. opRight().f2::x, wall->Wall::<anonymous>.Rectangle::topRight().f2::y}, {wall->Wall::<anonymous>.Rec
  5839. angle::topLeft().f2::x, wall->Wall::<anonymous>.Rectangle::topLeft().f2::y, wall->Wall::<anonymous>
  5840. Rectangle::bottomLeft().f2::x, wall->Wall::<anonymous>.Rectangle::bottomLeft().f2::y}, {wall->Wall:
  5841. <anonymous>.Rectangle::bottomRight().f2::x, wall->Wall::<anonymous>.Rectangle::bottomRight().f2::y,
  5842. wall->Wall::<anonymous>.Rectangle::bottomLeft().f2::x, wall->Wall::<anonymous>.Rectangle::bottomLef
  5843. ().f2::y}, {wall->Wall::<anonymous>.Rectangle::bottomRight().f2::x, wall->Wall::<anonymous>.Rectang
  5844. e::bottomRight().f2::y, wall->Wall::<anonymous>.Rectangle::topRight().f2::x, wall->Wall::<anonymous
  5845. .Rectangle::topRight().f2::y}}' from '<brace-enclosed initializer list>' to 'std::vector<std::vecto
  5846. <float> >'
  5847. rts/general/Units.cpp:3741:23: error: '>>' should be '> >' within a nested template argument list
  5848. vector<vector<float>> linesWithDistance;
  5849. ^
  5850. rts/general/Units.cpp:3744:22: warning: comparison between signed and unsigned integer expressions
  5851. -Wsign-compare]
  5852. for (int i = 0; i < lines.size(); ++i)
  5853. ^
  5854. rts/general/Units.cpp:3746:46: warning: extended initializer lists only available with -std=c++11 o
  5855. -std=gnu++11
  5856. float distance = position.distanceToLine({lines[i][0], lines[i][1]}, {lines[i][2], lines[i][3]
  5857. );
  5858. ^
  5859. rts/general/Units.cpp:3746:74: warning: extended initializer lists only available with -std=c++11 o
  5860. -std=gnu++11
  5861. float distance = position.distanceToLine({lines[i][0], lines[i][1]}, {lines[i][2], lines[i][3]
  5862. );
  5863. ^
  5864. rts/general/Units.cpp:3746:100: warning: extended initializer lists only available with -std=c++11
  5865. r -std=gnu++11
  5866. float distance = position.distanceToLine({lines[i][0], lines[i][1]}, {lines[i][2], lines[i][3]
  5867. );
  5868.  
  5869. ^
  5870. rts/general/Units.cpp:3746:100: warning: extended initializer lists only available with -std=c++11
  5871. r -std=gnu++11
  5872. rts/general/Units.cpp:3749:34: warning: extended initializer lists only available with -std=c++11 o
  5873. -std=gnu++11
  5874. linesWithDistance.push_back({distance, lines[i][0], lines[i][1], lines[i][2], lines[i][3]});
  5875. ^
  5876. rts/general/Units.cpp:3749:96: warning: extended initializer lists only available with -std=c++11 o
  5877. -std=gnu++11
  5878. linesWithDistance.push_back({distance, lines[i][0], lines[i][1], lines[i][2], lines[i][3]});
  5879. ^
  5880. rts/general/Units.cpp:3749:96: error: no matching function for call to 'std::vector<std::vector<flo
  5881. t> >::push_back(<brace-enclosed initializer list>)'
  5882. rts/general/Units.cpp:3749:96: note: candidate is:
  5883. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  5884. e/c++/vector:64:0,
  5885. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  5886. from D:/sfml-source/include/SFML/Window.hpp:41,
  5887. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  5888. from supportClasses/f2.h:4,
  5889. from rts/Hotkey.h:3,
  5890. from rts/Init.h:36,
  5891. from rts/general/Units.h:27,
  5892. from rts/general/Units.cpp:26:
  5893. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  5894. h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
  5895. loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
  5896. tor<float>]
  5897. push_back(const value_type& __x)
  5898. ^
  5899. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  5900. h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
  5901. st value_type& {aka const std::vector<float>&}'
  5902. rts/general/Units.cpp:3752:69: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
  5903. ompat]
  5904. std::sort(linesWithDistance.begin(), linesWithDistance.end(), [](auto a, auto b) {return a.at(0
  5905. < b.at(0);});
  5906. ^
  5907. rts/general/Units.cpp:3752:74: error: 'a' does not name a type
  5908. std::sort(linesWithDistance.begin(), linesWithDistance.end(), [](auto a, auto b) {return a.at(0
  5909. < b.at(0);});
  5910. ^
  5911. rts/general/Units.cpp: In lambda function:
  5912. rts/general/Units.cpp:3752:113: error: expected '{' before ';' token
  5913. std::sort(linesWithDistance.begin(), linesWithDistance.end(), [](auto a, auto b) {return a.at(0
  5914. < b.at(0);});
  5915.  
  5916. ^
  5917. rts/general/Units.cpp: In member function 'void Units::generateLOSLineSegments(Unit*, sf::VertexArr
  5918. y*)':
  5919. rts/general/Units.cpp:3752:113: warning: lambda expressions only available with -std=c++11 or -std=
  5920. nu++11
  5921. rts/general/Units.cpp:3752:113: error: expected ')' before ';' token
  5922. rts/general/Units.cpp:3774:6: warning: extended initializer lists only available with -std=c++11 or
  5923. -std=gnu++11
  5924. {linesWithDistance[i][1], linesWithDistance[i][2]}, {linesWithDistance[i][3], linesWithDistan
  5925. e[i][4]});
  5926. ^
  5927. rts/general/Units.cpp:3774:58: warning: extended initializer lists only available with -std=c++11 o
  5928. -std=gnu++11
  5929. {linesWithDistance[i][1], linesWithDistance[i][2]}, {linesWithDistance[i][3], linesWithDistan
  5930. e[i][4]});
  5931. ^
  5932. rts/general/Units.cpp:3774:108: warning: extended initializer lists only available with -std=c++11
  5933. r -std=gnu++11
  5934. {linesWithDistance[i][1], linesWithDistance[i][2]}, {linesWithDistance[i][3], linesWithDistan
  5935. e[i][4]});
  5936.  
  5937. ^
  5938. rts/general/Units.cpp:3774:108: warning: extended initializer lists only available with -std=c++11
  5939. r -std=gnu++11
  5940. rts/general/Units.cpp:3785:28: warning: extended initializer lists only available with -std=c++11 o
  5941. -std=gnu++11
  5942. linesFinal.push_back({linesWithDistance[i][1], linesWithDistance[i][2]});
  5943. ^
  5944. rts/general/Units.cpp:3785:78: warning: extended initializer lists only available with -std=c++11 o
  5945. -std=gnu++11
  5946. linesFinal.push_back({linesWithDistance[i][1], linesWithDistance[i][2]});
  5947. ^
  5948. rts/general/Units.cpp:3790:28: warning: extended initializer lists only available with -std=c++11 o
  5949. -std=gnu++11
  5950. linesFinal.push_back({linesWithDistance[i][3], linesWithDistance[i][4]});
  5951. ^
  5952. rts/general/Units.cpp:3790:78: warning: extended initializer lists only available with -std=c++11 o
  5953. -std=gnu++11
  5954. linesFinal.push_back({linesWithDistance[i][3], linesWithDistance[i][4]});
  5955. ^
  5956. rts/general/Units.cpp:3795:27: warning: extended initializer lists only available with -std=c++11 o
  5957. -std=gnu++11
  5958. linesFinal.push_back({linesWithDistance[i][1], linesWithDistance[i][2]});
  5959. ^
  5960. rts/general/Units.cpp:3795:77: warning: extended initializer lists only available with -std=c++11 o
  5961. -std=gnu++11
  5962. linesFinal.push_back({linesWithDistance[i][1], linesWithDistance[i][2]});
  5963. ^
  5964. rts/general/Units.cpp:3796:27: warning: extended initializer lists only available with -std=c++11 o
  5965. -std=gnu++11
  5966. linesFinal.push_back({linesWithDistance[i][3], linesWithDistance[i][4]});
  5967. ^
  5968. rts/general/Units.cpp:3796:77: warning: extended initializer lists only available with -std=c++11 o
  5969. -std=gnu++11
  5970. linesFinal.push_back({linesWithDistance[i][3], linesWithDistance[i][4]});
  5971. ^
  5972. rts/general/Units.cpp:3803:21: error: '>>' should be '> >' within a nested template argument list
  5973. vector<vector<float>> anglesSet;
  5974. ^
  5975. rts/general/Units.cpp:3804:24: warning: comparison between signed and unsigned integer expressions
  5976. -Wsign-compare]
  5977. for (int i = 0; i + 1 < linesFinal.size(); i += 2)
  5978. ^
  5979. rts/general/Units.cpp:3813:24: warning: extended initializer lists only available with -std=c++11 o
  5980. -std=gnu++11
  5981. anglesSet.push_back({angle1, float(PI), linesFinal[i].x, linesFinal[i].y, intersection.x, inter
  5982. ection.y});
  5983. ^
  5984. rts/general/Units.cpp:3813:109: warning: extended initializer lists only available with -std=c++11
  5985. r -std=gnu++11
  5986. anglesSet.push_back({angle1, float(PI), linesFinal[i].x, linesFinal[i].y, intersection.x, inter
  5987. ection.y});
  5988.  
  5989. ^
  5990. rts/general/Units.cpp:3813:109: error: no matching function for call to 'std::vector<std::vector<fl
  5991. at> >::push_back(<brace-enclosed initializer list>)'
  5992. rts/general/Units.cpp:3813:109: note: candidate is:
  5993. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  5994. e/c++/vector:64:0,
  5995. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  5996. from D:/sfml-source/include/SFML/Window.hpp:41,
  5997. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  5998. from supportClasses/f2.h:4,
  5999. from rts/Hotkey.h:3,
  6000. from rts/Init.h:36,
  6001. from rts/general/Units.h:27,
  6002. from rts/general/Units.cpp:26:
  6003. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6004. h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
  6005. loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
  6006. tor<float>]
  6007. push_back(const value_type& __x)
  6008. ^
  6009. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6010. h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
  6011. st value_type& {aka const std::vector<float>&}'
  6012. rts/general/Units.cpp:3814:24: warning: extended initializer lists only available with -std=c++11 o
  6013. -std=gnu++11
  6014. anglesSet.push_back({ float(- PI), angle2, intersection.x, intersection.y, linesFinal[i + 1].x,
  6015. linesFinal[i + 1].y});
  6016. ^
  6017. rts/general/Units.cpp:3814:120: warning: extended initializer lists only available with -std=c++11
  6018. r -std=gnu++11
  6019. anglesSet.push_back({ float(- PI), angle2, intersection.x, intersection.y, linesFinal[i + 1].x,
  6020. linesFinal[i + 1].y});
  6021.  
  6022. ^
  6023. rts/general/Units.cpp:3814:120: error: no matching function for call to 'std::vector<std::vector<fl
  6024. at> >::push_back(<brace-enclosed initializer list>)'
  6025. rts/general/Units.cpp:3814:120: note: candidate is:
  6026. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6027. e/c++/vector:64:0,
  6028. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  6029. from D:/sfml-source/include/SFML/Window.hpp:41,
  6030. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6031. from supportClasses/f2.h:4,
  6032. from rts/Hotkey.h:3,
  6033. from rts/Init.h:36,
  6034. from rts/general/Units.h:27,
  6035. from rts/general/Units.cpp:26:
  6036. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6037. h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
  6038. loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
  6039. tor<float>]
  6040. push_back(const value_type& __x)
  6041. ^
  6042. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6043. h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
  6044. st value_type& {aka const std::vector<float>&}'
  6045. rts/general/Units.cpp:3819:24: warning: extended initializer lists only available with -std=c++11 o
  6046. -std=gnu++11
  6047. anglesSet.push_back({angle2, float(PI), linesFinal[i + 1].x, linesFinal[i + 1].y, intersection.
  6048. , intersection.y});
  6049. ^
  6050. rts/general/Units.cpp:3819:117: warning: extended initializer lists only available with -std=c++11
  6051. r -std=gnu++11
  6052. anglesSet.push_back({angle2, float(PI), linesFinal[i + 1].x, linesFinal[i + 1].y, intersection.
  6053. , intersection.y});
  6054.  
  6055. ^
  6056. rts/general/Units.cpp:3819:117: error: no matching function for call to 'std::vector<std::vector<fl
  6057. at> >::push_back(<brace-enclosed initializer list>)'
  6058. rts/general/Units.cpp:3819:117: note: candidate is:
  6059. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6060. e/c++/vector:64:0,
  6061. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  6062. from D:/sfml-source/include/SFML/Window.hpp:41,
  6063. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6064. from supportClasses/f2.h:4,
  6065. from rts/Hotkey.h:3,
  6066. from rts/Init.h:36,
  6067. from rts/general/Units.h:27,
  6068. from rts/general/Units.cpp:26:
  6069. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6070. h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
  6071. loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
  6072. tor<float>]
  6073. push_back(const value_type& __x)
  6074. ^
  6075. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6076. h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
  6077. st value_type& {aka const std::vector<float>&}'
  6078. rts/general/Units.cpp:3820:24: warning: extended initializer lists only available with -std=c++11 o
  6079. -std=gnu++11
  6080. anglesSet.push_back({ float(- PI), angle1, intersection.x, intersection.y, linesFinal[i].x, lin
  6081. sFinal[i].y});
  6082. ^
  6083. rts/general/Units.cpp:3820:112: warning: extended initializer lists only available with -std=c++11
  6084. r -std=gnu++11
  6085. anglesSet.push_back({ float(- PI), angle1, intersection.x, intersection.y, linesFinal[i].x, lin
  6086. sFinal[i].y});
  6087.  
  6088. ^
  6089. rts/general/Units.cpp:3820:112: error: no matching function for call to 'std::vector<std::vector<fl
  6090. at> >::push_back(<brace-enclosed initializer list>)'
  6091. rts/general/Units.cpp:3820:112: note: candidate is:
  6092. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6093. e/c++/vector:64:0,
  6094. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  6095. from D:/sfml-source/include/SFML/Window.hpp:41,
  6096. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6097. from supportClasses/f2.h:4,
  6098. from rts/Hotkey.h:3,
  6099. from rts/Init.h:36,
  6100. from rts/general/Units.h:27,
  6101. from rts/general/Units.cpp:26:
  6102. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6103. h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
  6104. loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
  6105. tor<float>]
  6106. push_back(const value_type& __x)
  6107. ^
  6108. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6109. h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
  6110. st value_type& {aka const std::vector<float>&}'
  6111. rts/general/Units.cpp:3824:24: warning: extended initializer lists only available with -std=c++11 o
  6112. -std=gnu++11
  6113. anglesSet.push_back({angle2, angle1, linesFinal[i + 1].x, linesFinal[i + 1].y, linesFinal[i].x,
  6114. linesFinal[i].y});
  6115. ^
  6116. rts/general/Units.cpp:3824:116: warning: extended initializer lists only available with -std=c++11
  6117. r -std=gnu++11
  6118. anglesSet.push_back({angle2, angle1, linesFinal[i + 1].x, linesFinal[i + 1].y, linesFinal[i].x,
  6119. linesFinal[i].y});
  6120.  
  6121. ^
  6122. rts/general/Units.cpp:3824:116: error: no matching function for call to 'std::vector<std::vector<fl
  6123. at> >::push_back(<brace-enclosed initializer list>)'
  6124. rts/general/Units.cpp:3824:116: note: candidate is:
  6125. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6126. e/c++/vector:64:0,
  6127. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  6128. from D:/sfml-source/include/SFML/Window.hpp:41,
  6129. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6130. from supportClasses/f2.h:4,
  6131. from rts/Hotkey.h:3,
  6132. from rts/Init.h:36,
  6133. from rts/general/Units.h:27,
  6134. from rts/general/Units.cpp:26:
  6135. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6136. h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
  6137. loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
  6138. tor<float>]
  6139. push_back(const value_type& __x)
  6140. ^
  6141. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6142. h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
  6143. st value_type& {aka const std::vector<float>&}'
  6144. rts/general/Units.cpp:3828:24: warning: extended initializer lists only available with -std=c++11 o
  6145. -std=gnu++11
  6146. anglesSet.push_back({angle1, angle2, linesFinal[i].x, linesFinal[i].y, linesFinal[i + 1].x, lin
  6147. sFinal[i + 1].y});
  6148. ^
  6149. rts/general/Units.cpp:3828:116: warning: extended initializer lists only available with -std=c++11
  6150. r -std=gnu++11
  6151. anglesSet.push_back({angle1, angle2, linesFinal[i].x, linesFinal[i].y, linesFinal[i + 1].x, lin
  6152. sFinal[i + 1].y});
  6153.  
  6154. ^
  6155. rts/general/Units.cpp:3828:116: error: no matching function for call to 'std::vector<std::vector<fl
  6156. at> >::push_back(<brace-enclosed initializer list>)'
  6157. rts/general/Units.cpp:3828:116: note: candidate is:
  6158. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6159. e/c++/vector:64:0,
  6160. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  6161. from D:/sfml-source/include/SFML/Window.hpp:41,
  6162. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6163. from supportClasses/f2.h:4,
  6164. from rts/Hotkey.h:3,
  6165. from rts/Init.h:36,
  6166. from rts/general/Units.h:27,
  6167. from rts/general/Units.cpp:26:
  6168. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6169. h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<
  6170. loat>; _Alloc = std::allocator<std::vector<float> >; std::vector<_Tp, _Alloc>::value_type = std::ve
  6171. tor<float>]
  6172. push_back(const value_type& __x)
  6173. ^
  6174. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6175. h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'co
  6176. st value_type& {aka const std::vector<float>&}'
  6177. rts/general/Units.cpp:3836:51: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-
  6178. ompat]
  6179. std::sort(anglesSet.begin(), anglesSet.end(), [](auto a, auto b)
  6180. ^
  6181. rts/general/Units.cpp:3836:56: error: 'a' does not name a type
  6182. std::sort(anglesSet.begin(), anglesSet.end(), [](auto a, auto b)
  6183. ^
  6184. rts/general/Units.cpp: In lambda function:
  6185. rts/general/Units.cpp:3843:5: error: expected '{' before ';' token
  6186. });
  6187. ^
  6188. rts/general/Units.cpp: In member function 'void Units::generateLOSLineSegments(Unit*, sf::VertexArr
  6189. y*)':
  6190. rts/general/Units.cpp:3843:5: warning: lambda expressions only available with -std=c++11 or -std=gn
  6191. ++11
  6192. rts/general/Units.cpp:3843:5: error: expected ')' before ';' token
  6193. rts/general/Units.cpp: In member function 'void Units::displayOrders(sf::VertexArray*)':
  6194. rts/general/Units.cpp:3850:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  6195. mpat]
  6196. for (auto const& element : selectedUnits_)
  6197. ^
  6198. rts/general/Units.cpp:3850:29: error: range-based 'for' loops are not allowed in C++98 mode
  6199. for (auto const& element : selectedUnits_)
  6200. ^
  6201. rts/general/Units.cpp:3852:16: error: invalid conversion from 'int' to 'Unit*' [-fpermissive]
  6202. Unit* unit = element;
  6203. ^
  6204. rts/general/Units.cpp:3855:22: error: range-based 'for' loops are not allowed in C++98 mode
  6205. for (Order order : orders)
  6206. ^
  6207. rts/general/Units.cpp: At global scope:
  6208. rts/general/Units.cpp:3868:38: error: '>>' should be '> >' within a nested template argument list
  6209. void sortedInsert(vector<vector<float>>* vec, vector<float> item)
  6210. ^
  6211. rts/general/Units.cpp: In function 'void sortedInsert(std::vector<std::vector<float> >*, std::vecto
  6212. <float>)':
  6213. rts/general/Units.cpp:3891:14: warning: comparison between signed and unsigned integer expressions
  6214. -Wsign-compare]
  6215. else if (i >= vec->size())
  6216. ^
  6217. rts/general/Units.cpp: At global scope:
  6218. rts/general/Units.cpp:3930:39: error: '>>' should be '> >' within a nested template argument list
  6219. void sortedReplace(vector<vector<float>>* vec, int index)
  6220. ^
  6221. rts/general/Units.cpp: In function 'void sortedReplace(std::vector<std::vector<float> >*, int)':
  6222. rts/general/Units.cpp:3932:32: warning: comparison between signed and unsigned integer expressions
  6223. -Wsign-compare]
  6224. if (vec->size() == 0 || index >= vec->size())
  6225. ^
  6226. rts/general/Units.cpp: At global scope:
  6227. rts/general/Units.cpp:3941:76: error: '>>' should be '> >' within a nested template argument list
  6228. void Units::setFogTries(const f2& center, float radius, vector<vector<float>> anglesSet, sf::Verte
  6229. Array* vertices)
  6230. ^
  6231. rts/general/Units.cpp: In member function 'void Units::setFogTries(const f2&, float, std::vector<st
  6232. ::vector<float> >, sf::VertexArray*)':
  6233. rts/general/Units.cpp:3954:21: warning: comparison between signed and unsigned integer expressions
  6234. -Wsign-compare]
  6235. for (int i = 0; i < anglesSet.size() - 1; i++)
  6236. ^
  6237. rts/general/Units.cpp:4062:101: warning: extended initializer lists only available with -std=c++11
  6238. r -std=gnu++11
  6239. anglesSet[i] = {startAngle1, startAngle2, start1.x, start1.y, intersection1.x, intersection1
  6240. y};
  6241.  
  6242. ^
  6243. rts/general/Units.cpp:4062:20: warning: extended initializer lists only available with -std=c++11 o
  6244. -std=gnu++11
  6245. anglesSet[i] = {startAngle1, startAngle2, start1.x, start1.y, intersection1.x, intersection1
  6246. y};
  6247. ^
  6248. rts/general/Units.cpp:4062:20: error: no match for 'operator=' (operand types are 'std::vector<floa
  6249. >' and '<brace-enclosed initializer list>')
  6250. rts/general/Units.cpp:4062:20: note: candidate is:
  6251. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6252. e/c++/vector:69:0,
  6253. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  6254. from D:/sfml-source/include/SFML/Window.hpp:41,
  6255. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6256. from supportClasses/f2.h:4,
  6257. from rts/Hotkey.h:3,
  6258. from rts/Init.h:36,
  6259. from rts/general/Units.h:27,
  6260. from rts/general/Units.cpp:26:
  6261. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  6262. 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
  6263. lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
  6264. vector<_Tp, _Alloc>::
  6265. ^
  6266. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  6267. 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
  6268. std::vector<float>&'
  6269. rts/general/Units.cpp:4066:33: warning: extended initializer lists only available with -std=c++11 o
  6270. -std=gnu++11
  6271. sortedInsert(&anglesSet, {endAngle2, endAngle1, intersection2.x, intersection2.y, end1.x, e
  6272. d1.y});
  6273. ^
  6274. rts/general/Units.cpp:4066:105: error: could not convert '{endAngle2, endAngle1, intersection2.f2::
  6275. , intersection2.f2::y, end1.f2::x, end1.f2::y}' from '<brace-enclosed initializer list>' to 'std::v
  6276. ctor<float>'
  6277. sortedInsert(&anglesSet, {endAngle2, endAngle1, intersection2.x, intersection2.y, end1.x, e
  6278. d1.y});
  6279.  
  6280. ^
  6281. rts/general/Units.cpp:4079:94: warning: extended initializer lists only available with -std=c++11 o
  6282. -std=gnu++11
  6283. anglesSet[j] = {endAngle2, endAngle1, intersection2.x, intersection2.y, end1.x, end1.y};
  6284. ^
  6285. rts/general/Units.cpp:4079:21: warning: extended initializer lists only available with -std=c++11 o
  6286. -std=gnu++11
  6287. anglesSet[j] = {endAngle2, endAngle1, intersection2.x, intersection2.y, end1.x, end1.y};
  6288. ^
  6289. rts/general/Units.cpp:4079:21: error: no match for 'operator=' (operand types are 'std::vector<floa
  6290. >' and '<brace-enclosed initializer list>')
  6291. rts/general/Units.cpp:4079:21: note: candidate is:
  6292. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6293. e/c++/vector:69:0,
  6294. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  6295. from D:/sfml-source/include/SFML/Window.hpp:41,
  6296. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6297. from supportClasses/f2.h:4,
  6298. from rts/Hotkey.h:3,
  6299. from rts/Init.h:36,
  6300. from rts/general/Units.h:27,
  6301. from rts/general/Units.cpp:26:
  6302. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  6303. 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
  6304. lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
  6305. vector<_Tp, _Alloc>::
  6306. ^
  6307. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  6308. 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
  6309. std::vector<float>&'
  6310. rts/general/Units.cpp:4102:115: warning: extended initializer lists only available with -std=c++11
  6311. r -std=gnu++11
  6312. anglesSet[i] = {startAngle1, startAngle2, anglesSet[i][2], anglesSet[i][3], intersection1.x,
  6313. intersection1.y};
  6314.  
  6315. ^
  6316. rts/general/Units.cpp:4102:20: warning: extended initializer lists only available with -std=c++11 o
  6317. -std=gnu++11
  6318. anglesSet[i] = {startAngle1, startAngle2, anglesSet[i][2], anglesSet[i][3], intersection1.x,
  6319. intersection1.y};
  6320. ^
  6321. rts/general/Units.cpp:4102:20: error: no match for 'operator=' (operand types are 'std::vector<floa
  6322. >' and '<brace-enclosed initializer list>')
  6323. rts/general/Units.cpp:4102:20: note: candidate is:
  6324. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6325. e/c++/vector:69:0,
  6326. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  6327. from D:/sfml-source/include/SFML/Window.hpp:41,
  6328. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6329. from supportClasses/f2.h:4,
  6330. from rts/Hotkey.h:3,
  6331. from rts/Init.h:36,
  6332. from rts/general/Units.h:27,
  6333. from rts/general/Units.cpp:26:
  6334. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  6335. 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
  6336. lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
  6337. vector<_Tp, _Alloc>::
  6338. ^
  6339. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  6340. 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
  6341. std::vector<float>&'
  6342. rts/general/Units.cpp:4118:111: warning: extended initializer lists only available with -std=c++11
  6343. r -std=gnu++11
  6344. anglesSet[j] = {endAngle1, endAngle2, intersection1.x, intersection1.y, anglesSet[j][4], ang
  6345. esSet[j][5]};
  6346.  
  6347. ^
  6348. rts/general/Units.cpp:4118:20: warning: extended initializer lists only available with -std=c++11 o
  6349. -std=gnu++11
  6350. anglesSet[j] = {endAngle1, endAngle2, intersection1.x, intersection1.y, anglesSet[j][4], ang
  6351. esSet[j][5]};
  6352. ^
  6353. rts/general/Units.cpp:4118:20: error: no match for 'operator=' (operand types are 'std::vector<floa
  6354. >' and '<brace-enclosed initializer list>')
  6355. rts/general/Units.cpp:4118:20: note: candidate is:
  6356. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6357. e/c++/vector:69:0,
  6358. from D:/sfml-source/include/SFML/Window/VideoMode.hpp:32,
  6359. from D:/sfml-source/include/SFML/Window.hpp:41,
  6360. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6361. from supportClasses/f2.h:4,
  6362. from rts/Hotkey.h:3,
  6363. from rts/Init.h:36,
  6364. from rts/general/Units.h:27,
  6365. from rts/general/Units.cpp:26:
  6366. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  6367. 167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _
  6368. lloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
  6369. vector<_Tp, _Alloc>::
  6370. ^
  6371. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/vector.tcc
  6372. 167:5: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'cons
  6373. std::vector<float>&'
  6374. rts/general/Units.cpp:4133:21: warning: comparison between signed and unsigned integer expressions
  6375. -Wsign-compare]
  6376. for (int i = 0; i < anglesSet.size(); i++)
  6377. ^
  6378. rts/general/Units.cpp:4148:14: warning: comparison between signed and unsigned integer expressions
  6379. -Wsign-compare]
  6380. if (i + 1 == anglesSet.size())
  6381. ^
  6382. rts/general/Units.cpp:4135:10: warning: unused variable 'startAngle1' [-Wunused-variable]
  6383. float startAngle1 = anglesSet[i][0];
  6384. ^
  6385. rts/general/Units.cpp:4136:10: warning: unused variable 'endAngle1' [-Wunused-variable]
  6386. float endAngle1 = anglesSet[i][1];
  6387. ^
  6388. rts/general/Units.cpp:3949:8: warning: unused variable 'angleInacurracy' [-Wunused-variable]
  6389. float angleInacurracy = 0.001;
  6390. ^
  6391. rts/general/Units.cpp: In member function 'void Units::setQuad(sf::VertexArray*)':
  6392. rts/general/Units.cpp:4206:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  6393. mpat]
  6394. for (auto const& element : units_[currentTeam_])
  6395. ^
  6396. rts/general/Units.cpp:4206:29: error: range-based 'for' loops are not allowed in C++98 mode
  6397. for (auto const& element : units_[currentTeam_])
  6398. ^
  6399. rts/general/Units.cpp:4206:29: error: 'units_' was not declared in this scope
  6400. rts/general/Units.cpp:4208:24: error: request for member 'second' in 'element', which is of non-cla
  6401. s type 'const int'
  6402. Unit* unit = element.second;
  6403. ^
  6404. rts/general/Units.cpp:4209:21: error: 'GameState' is not a class or namespace
  6405. if (gameState_ == GameState::DEFAULT)
  6406. ^
  6407. rts/general/Units.cpp:4222:40: error: 'visibleUnits_' was not declared in this scope
  6408. for (int teamNumber = 0; teamNumber < visibleUnits_[currentTeam_].size(); ++teamNumber)
  6409. ^
  6410. rts/general/Units.cpp:4224:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  6411. mpat]
  6412. for (auto const& element : visibleUnits_[currentTeam_][teamNumber])
  6413. ^
  6414. rts/general/Units.cpp:4224:30: error: range-based 'for' loops are not allowed in C++98 mode
  6415. for (auto const& element : visibleUnits_[currentTeam_][teamNumber])
  6416. ^
  6417. rts/general/Units.cpp:4226:25: error: request for member 'second' in 'element', which is of non-cla
  6418. s type 'const int'
  6419. Unit* unit = element.second;
  6420. ^
  6421. rts/general/Units.cpp:4269:20: error: 'GameState' is not a class or namespace
  6422. if (gameState_ == GameState::DEFAULT)
  6423. ^
  6424. rts/general/Units.cpp:4271:41: error: 'visibleUnits_' was not declared in this scope
  6425. for (int teamNumber = 0; teamNumber < visibleUnits_[currentTeam_].size(); ++teamNumber)
  6426. ^
  6427. rts/general/Units.cpp:4273:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  6428. mpat]
  6429. for (auto const& element : visibleUnits_[currentTeam_][teamNumber])
  6430. ^
  6431. rts/general/Units.cpp:4273:31: error: range-based 'for' loops are not allowed in C++98 mode
  6432. for (auto const& element : visibleUnits_[currentTeam_][teamNumber])
  6433. ^
  6434. rts/general/Units.cpp:4275:26: error: request for member 'second' in 'element', which is of non-cla
  6435. s type 'const int'
  6436. Unit* unit = element.second;
  6437. ^
  6438. rts/general/Units.cpp:4289:20: warning: comparison between signed and unsigned integer expressions
  6439. -Wsign-compare]
  6440. for (int i = 0; i < projectiles_.size(); ++i)
  6441. ^
  6442. rts/general/Units.cpp:4299:20: warning: comparison between signed and unsigned integer expressions
  6443. -Wsign-compare]
  6444. for (int i = 0; i < animations_.size(); ++i)
  6445. ^
  6446. rts/general/Units.cpp:4314:20: error: 'GameState' is not a class or namespace
  6447. if (gameState_ == GameState::BUILDING_EDITOR)
  6448. ^
  6449. rts/general/Units.cpp:4317:41: error: 'visibleUnits_' was not declared in this scope
  6450. for (int teamNumber = 0; teamNumber < visibleUnits_[currentTeam_].size(); ++teamNumber)
  6451. ^
  6452. rts/general/Units.cpp:4319:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  6453. mpat]
  6454. for (auto const& element : units_[teamNumber])
  6455. ^
  6456. rts/general/Units.cpp:4319:31: error: range-based 'for' loops are not allowed in C++98 mode
  6457. for (auto const& element : units_[teamNumber])
  6458. ^
  6459. rts/general/Units.cpp:4321:17: error: request for member 'second' in 'element', which is of non-cla
  6460. s type 'const int'
  6461. if (element.second->enabled_)
  6462. ^
  6463. rts/general/Units.cpp:4323:14: error: request for member 'second' in 'element', which is of non-cla
  6464. s type 'const int'
  6465. element.second->setQuad(vertices);
  6466. ^
  6467. rts/general/Units.cpp:4327:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-c
  6468. mpat]
  6469. for (auto const& wall : walls_)
  6470. ^
  6471. rts/general/Units.cpp:4327:27: error: range-based 'for' loops are not allowed in C++98 mode
  6472. for (auto const& wall : walls_)
  6473. ^
  6474. rts/general/Units.cpp:4327:27: error: 'walls_' was not declared in this scope
  6475. rts/general/Units.cpp:4329:13: error: request for member 'second' in 'wall', which is of non-class
  6476. ype 'const int'
  6477. if (wall.second->enabled_)
  6478. ^
  6479. rts/general/Units.cpp:4331:10: error: request for member 'second' in 'wall', which is of non-class
  6480. ype 'const int'
  6481. wall.second->setQuad(vertices);
  6482. ^
  6483. rts/general/Units.cpp: In member function 'void Units::drawDebugInformation(Unit*, sf::VertexArray*
  6484. ':
  6485. rts/general/Units.cpp:4346:20: warning: comparison between signed and unsigned integer expressions
  6486. -Wsign-compare]
  6487. for (int k = 0; k < smallPathfinding_.nodesV_.size(); ++k)
  6488. ^
  6489. rts/general/Units.cpp:4350:21: warning: comparison between signed and unsigned integer expressions
  6490. -Wsign-compare]
  6491. for (int j = 0; j < smallPathfinding_.nodesV_[k]->links_.size(); ++j)
  6492. ^
  6493. rts/general/Units.cpp:4370:20: warning: comparison between signed and unsigned integer expressions
  6494. -Wsign-compare]
  6495. for (int j = 1; j < unit->path_.size(); ++j)
  6496. ^
  6497. rts/general/Units.cpp: In member function 'void Units::drawLosDebug()':
  6498. rts/general/Units.cpp:4423:21: error: '>>' should be '> >' within a nested template argument list
  6499. vector<vector<float>> anglesSet = anglesSetOriginal_;
  6500. ^
  6501. rts/general/Units.cpp:4424:51: error: expected unqualified-id before ')' token
  6502. sf::VertexArray vertices(sf::PrimitiveType::Lines);
  6503. ^
  6504. rts/general/Units.cpp:4425:20: warning: comparison between signed and unsigned integer expressions
  6505. -Wsign-compare]
  6506. for (int i = 0; i < anglesSet.size(); ++i)
  6507. ^
  6508. rts/general/Units.cpp:4427:12: error: request for member 'append' in 'vertices', which is of non-cl
  6509. ss type 'sf::VertexArray(...)'
  6510. vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Yellow));
  6511. ^
  6512. rts/general/Units.cpp:4427:30: warning: extended initializer lists only available with -std=c++11 o
  6513. -std=gnu++11
  6514. vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Yellow));
  6515. ^
  6516. rts/general/Units.cpp:4427:83: warning: extended initializer lists only available with -std=c++11 o
  6517. -std=gnu++11
  6518. vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Yellow));
  6519. ^
  6520. rts/general/Units.cpp:4427:83: warning: extended initializer lists only available with -std=c++11 o
  6521. -std=gnu++11
  6522. rts/general/Units.cpp:4428:12: error: request for member 'append' in 'vertices', which is of non-cl
  6523. ss type 'sf::VertexArray(...)'
  6524. vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Yellow));
  6525. ^
  6526. rts/general/Units.cpp:4428:30: warning: extended initializer lists only available with -std=c++11 o
  6527. -std=gnu++11
  6528. vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Yellow));
  6529. ^
  6530. rts/general/Units.cpp:4428:83: warning: extended initializer lists only available with -std=c++11 o
  6531. -std=gnu++11
  6532. vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Yellow));
  6533. ^
  6534. rts/general/Units.cpp:4428:83: warning: extended initializer lists only available with -std=c++11 o
  6535. -std=gnu++11
  6536. rts/general/Units.cpp:4431:20: warning: comparison between signed and unsigned integer expressions
  6537. -Wsign-compare]
  6538. for (int i = 0; i < anglesSet.size(); ++i)
  6539. ^
  6540. rts/general/Units.cpp:4433:12: error: request for member 'append' in 'vertices', which is of non-cl
  6541. ss type 'sf::VertexArray(...)'
  6542. vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Green));
  6543. ^
  6544. rts/general/Units.cpp:4433:30: warning: extended initializer lists only available with -std=c++11 o
  6545. -std=gnu++11
  6546. vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Green));
  6547. ^
  6548. rts/general/Units.cpp:4433:82: warning: extended initializer lists only available with -std=c++11 o
  6549. -std=gnu++11
  6550. vertices.append(sf::Vertex({anglesSet[i][2], anglesSet[i][3]}, sf::Color::Green));
  6551. ^
  6552. rts/general/Units.cpp:4433:82: warning: extended initializer lists only available with -std=c++11 o
  6553. -std=gnu++11
  6554. rts/general/Units.cpp:4434:12: error: request for member 'append' in 'vertices', which is of non-cl
  6555. ss type 'sf::VertexArray(...)'
  6556. vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Green));
  6557. ^
  6558. rts/general/Units.cpp:4434:30: warning: extended initializer lists only available with -std=c++11 o
  6559. -std=gnu++11
  6560. vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Green));
  6561. ^
  6562. rts/general/Units.cpp:4434:82: warning: extended initializer lists only available with -std=c++11 o
  6563. -std=gnu++11
  6564. vertices.append(sf::Vertex({anglesSet[i][4], anglesSet[i][5]}, sf::Color::Green));
  6565. ^
  6566. rts/general/Units.cpp:4434:82: warning: extended initializer lists only available with -std=c++11 o
  6567. -std=gnu++11
  6568. rts/general/Units.cpp:4436:24: error: no matching function for call to 'sf::RenderWindow::draw(sf::
  6569. ertexArray (&)(...))'
  6570. window_->draw(vertices);
  6571. ^
  6572. rts/general/Units.cpp:4436:24: note: candidates are:
  6573. In file included from D:/sfml-source/include/SFML/Graphics.hpp:45:0,
  6574. from supportClasses/f2.h:4,
  6575. from rts/Hotkey.h:3,
  6576. from rts/Init.h:36,
  6577. from rts/general/Units.h:27,
  6578. from rts/general/Units.cpp:26:
  6579. D:/sfml-source/include/SFML/Graphics/RenderTarget.hpp:236:10: note: void sf::RenderTarget::draw(con
  6580. t sf::Drawable&, const sf::RenderStates&)
  6581. void draw(const Drawable& drawable, const RenderStates& states = RenderStates::Default);
  6582. ^
  6583. D:/sfml-source/include/SFML/Graphics/RenderTarget.hpp:236:10: note: no known conversion for argum
  6584. nt 1 from 'sf::VertexArray(...)' to 'const sf::Drawable&'
  6585. D:/sfml-source/include/SFML/Graphics/RenderTarget.hpp:247:10: note: void sf::RenderTarget::draw(con
  6586. t sf::Vertex*, std::size_t, sf::PrimitiveType, const sf::RenderStates&)
  6587. void draw(const Vertex* vertices, std::size_t vertexCount,
  6588. ^
  6589. D:/sfml-source/include/SFML/Graphics/RenderTarget.hpp:247:10: note: candidate expects 4 arguments
  6590. 1 provided
  6591. In file included from rts/general/Unit.h:35:0,
  6592. from rts/Init.h:38,
  6593. from rts/general/Units.h:27,
  6594. from rts/general/Units.cpp:26:
  6595. supportClasses/Pathfinding.h: In instantiation of 'void PriorityQueue<T, Number>::put(T, Number) [w
  6596. th T = f2; Number = float]':
  6597. supportClasses/Pathfinding.h:419:24: required from here
  6598. supportClasses/Pathfinding.h:36:5: error: 'class std::priority_queue<std::pair<float, f2>, std::vec
  6599. or<std::pair<float, f2>, std::allocator<std::pair<float, f2> > >, std::greater<std::pair<float, f2>
  6600. > >' has no member named 'emplace'
  6601. elements.emplace(priority, item);
  6602. ^
  6603. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6604. e/c++/bits/stl_algobase.h:65:0,
  6605. from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6606. e/c++/bits/char_traits.h:39,
  6607. from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6608. e/c++/ios:40,
  6609. from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6610. e/c++/ostream:38,
  6611. from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6612. e/c++/iostream:39,
  6613. from rts/Init.h:28,
  6614. from rts/general/Units.h:27,
  6615. from rts/general/Units.cpp:26:
  6616. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  6617. r_base_types.h: In instantiation of 'struct std::iterator_traits<f2>':
  6618. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6619. h:1262:24: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _
  6620. nputIterator, std::__false_type) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>]'
  6621. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  6622. h:413:55: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const a
  6623. locator_type&) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>; std::vector<_Tp, _
  6624. lloc>::allocator_type = std::allocator<f2>]'
  6625. supportClasses/Pathfinding.h:394:23: required from here
  6626. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  6627. r_base_types.h:165:53: error: no type named 'iterator_category' in 'class f2'
  6628. typedef typename _Iterator::iterator_category iterator_category;
  6629. ^
  6630. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  6631. r_base_types.h:166:53: error: no type named 'value_type' in 'class f2'
  6632. typedef typename _Iterator::value_type value_type;
  6633. ^
  6634. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  6635. r_base_types.h:167:53: error: no type named 'difference_type' in 'class f2'
  6636. typedef typename _Iterator::difference_type difference_type;
  6637. ^
  6638. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  6639. r_base_types.h:168:53: error: no type named 'pointer' in 'class f2'
  6640. typedef typename _Iterator::pointer pointer;
  6641. ^
  6642. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  6643. r_base_types.h:169:53: error: no type named 'reference' in 'class f2'
  6644. typedef typename _Iterator::reference reference;
  6645. ^
  6646. In file included from rts/general/Units.h:27:0,
  6647. from rts/general/Units.cpp:26:
  6648. rts/Init.h: In member function 'float Init::getfloat(const string&) const':
  6649. rts/Init.h:604:2: warning: control reaches end of non-void function [-Wreturn-type]
  6650. }
  6651. ^
  6652. rts/general/Units.cpp: In member function 'bool Units::selectUnitsInBox(const f2&, const f2&, const
  6653. int&)':
  6654. rts/general/Units.cpp:384:1: warning: control reaches end of non-void function [-Wreturn-type]
  6655. }
  6656. ^
  6657. In file included from rts/general/Units.cpp:26:0:
  6658. rts/general/Units.h: In member function 'Unit* Units::getUnit(f2)':
  6659. rts/general/Units.h:91:74: warning: control reaches end of non-void function [-Wreturn-type]
  6660. Unit* getUnit(f2 unitIndex) {return units_[unitIndex.x].at(unitIndex.y);}
  6661. ^
  6662. rts/general/Units.cpp: In member function 'Wall* Units::getNearestWall(const f2&)':
  6663. rts/general/Units.cpp:650:1: warning: control reaches end of non-void function [-Wreturn-type]
  6664. }
  6665. ^
  6666. rts/general/Units.cpp: In member function 'int Units::addWall(Wall)':
  6667. rts/general/Units.cpp:1090:1: warning: control reaches end of non-void function [-Wreturn-type]
  6668. }
  6669. ^
  6670. In file included from rts/general/Unit.h:35:0,
  6671. from rts/Init.h:38,
  6672. from rts/general/Units.h:27,
  6673. from rts/general/Units.cpp:26:
  6674. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
  6675. , f2)':
  6676. supportClasses/Pathfinding.h:481:2: warning: control reaches end of non-void function [-Wreturn-typ
  6677. ]
  6678. }
  6679. ^
  6680. In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
  6681. from D:/sfml-source/include/SFML/Window.hpp:32,
  6682. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6683. from supportClasses/f2.h:4,
  6684. from supportClasses/Rectangle.h:9,
  6685. from rts/general/Object.h:3,
  6686. from rts/general/Object.cpp:1:
  6687. D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
  6688. Wlong-long]
  6689. typedef signed long long Int64;
  6690. ^
  6691. D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
  6692. Wlong-long]
  6693. typedef unsigned long long Uint64;
  6694. ^
  6695. In file included from supportClasses/Rectangle.h:9:0,
  6696. from rts/general/Object.h:3,
  6697. from rts/general/Object.cpp:1:
  6698. supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
  6699. supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
  6700. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  6701. ^
  6702. supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
  6703. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  6704. ^
  6705. supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
  6706. ng, char)':
  6707. supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
  6708. seglist.push_back(std::stof(segment));
  6709. ^
  6710. supportClasses/f2.h: At global scope:
  6711. supportClasses/f2.h:432:9: error: 'hash' is not a class template
  6712. struct hash<f2>
  6713. ^
  6714. supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
  6715. {
  6716. ^
  6717. supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
  6718. supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
  6719. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  6720. ^
  6721. supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
  6722. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  6723. ^
  6724. supportClasses/f2.h:442:13: error: 'std::hash' is not a template
  6725. return hash<string>()(str);
  6726. ^
  6727. supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
  6728. return hash<string>()(str);
  6729. ^
  6730. supportClasses/f2.h:432:9: note: candidate is:
  6731. struct hash<f2>
  6732. ^
  6733. supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
  6734. std::size_t operator()(const f2& k) const
  6735. ^
  6736. supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
  6737. asic_string<char>}' to 'const f2&'
  6738. In file included from supportClasses/Rect.h:17:0,
  6739. from supportClasses/Rectangle.h:11,
  6740. from rts/general/Object.h:3,
  6741. from rts/general/Object.cpp:1:
  6742. supportClasses/Shape.h: At global scope:
  6743. supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
  6744. c++11 or -std=gnu++11
  6745. float radius_ = 0;
  6746. ^
  6747. In file included from supportClasses/Rect.h:17:0,
  6748. from supportClasses/Rectangle.h:11,
  6749. from rts/general/Object.h:3,
  6750. from rts/general/Object.cpp:1:
  6751. supportClasses/Shape.h: In constructor 'Shape::Shape()':
  6752. supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
  6753. d=gnu++11
  6754. Shape() : Shape(4) {}
  6755. ^
  6756. In file included from rts/general/Object.h:3:0,
  6757. from rts/general/Object.cpp:1:
  6758. supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
  6759. supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
  6760. in the copy constructor [-Wextra]
  6761. Rectangle(const Rectangle& rect) {*this = rect;}
  6762. ^
  6763. supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
  6764. supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
  6765. 1 or -std=gnu++11
  6766. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  6767. ^
  6768. supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
  6769. ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
  6770. to 'std::vector<f2>'
  6771. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  6772. ^
  6773. In file included from particleEffects/Emitter.h:3:0,
  6774. from particleEffects/ParticleEffects.h:3,
  6775. from rts/general/Object.h:4,
  6776. from rts/general/Object.cpp:1:
  6777. particleEffects/Particle.h: At global scope:
  6778. particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
  6779. std=c++11 or -std=gnu++11
  6780. float timer_ = 0;
  6781. ^
  6782. In file included from particleEffects/ParticleEffects.h:3:0,
  6783. from rts/general/Object.h:4,
  6784. from rts/general/Object.cpp:1:
  6785. particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
  6786. std=c++11 or -std=gnu++11
  6787. double redDiff_ = 0;
  6788. ^
  6789. particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
  6790. std=c++11 or -std=gnu++11
  6791. double blueDiff_ = 0;
  6792. ^
  6793. particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
  6794. std=c++11 or -std=gnu++11
  6795. double greenDiff_ = 0;
  6796. ^
  6797. particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
  6798. std=c++11 or -std=gnu++11
  6799. double alphaDiff_ = 0;
  6800. ^
  6801. particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
  6802. std=c++11 or -std=gnu++11
  6803. double fade_ = 0;
  6804. ^
  6805. particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
  6806. std=c++11 or -std=gnu++11
  6807. f2 speed_ = {0, 0};
  6808. ^
  6809. particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
  6810. std=c++11 or -std=gnu++11
  6811. float emissionTimer_ = 0;
  6812. ^
  6813. particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
  6814. std=c++11 or -std=gnu++11
  6815. float lifeTimer_ = 0;
  6816. ^
  6817. particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
  6818. std=c++11 or -std=gnu++11
  6819. vector<Emitter*> emitters_ = vector<Emitter*>();
  6820. ^
  6821. particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
  6822. or -std=gnu++11
  6823. f2 speed_ = {0, 0};
  6824. ^
  6825. In file included from rts/general/Object.cpp:1:0:
  6826. rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
  6827. rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
  6828. the copy constructor [-Wextra]
  6829. Object(const Object& object) {*this = object;}
  6830. ^
  6831. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  6832. e/c++/unordered_map:35:0,
  6833. from supportClasses/Pathfinding.h:5,
  6834. from rts/general/Unit.h:35,
  6835. from rts/Init.h:38,
  6836. from rts/general/Units.h:27,
  6837. from rts/Game.h:3,
  6838. from rts/Run.h:31,
  6839. from rts/Run.cpp:26:
  6840. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/c++0x_warn
  6841. ng.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 stand
  6842. rd. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11
  6843. compiler options.
  6844. #error This file requires compiler and library support for the \
  6845. ^
  6846. In file included from D:/sfml-source/include/SFML/System.hpp:32:0,
  6847. from D:/sfml-source/include/SFML/Window.hpp:32,
  6848. from D:/sfml-source/include/SFML/Graphics.hpp:32,
  6849. from supportClasses/f2.h:4,
  6850. from supportClasses/Rect.h:14,
  6851. from Menu/Button.h:3,
  6852. from Menu/Menu.h:2,
  6853. from rts/Run.h:30,
  6854. from rts/Run.cpp:26:
  6855. D:/sfml-source/include/SFML/Config.hpp:186:31: warning: ISO C++ 1998 does not support 'long long' [
  6856. Wlong-long]
  6857. typedef signed long long Int64;
  6858. ^
  6859. D:/sfml-source/include/SFML/Config.hpp:187:31: warning: ISO C++ 1998 does not support 'long long' [
  6860. Wlong-long]
  6861. typedef unsigned long long Uint64;
  6862. ^
  6863. In file included from supportClasses/Rect.h:14:0,
  6864. from Menu/Button.h:3,
  6865. from Menu/Menu.h:2,
  6866. from rts/Run.h:30,
  6867. from rts/Run.cpp:26:
  6868. supportClasses/f2.h: In static member function 'static f2 f2::stringTof2(std::string)':
  6869. supportClasses/f2.h:75:13: error: 'stof' is not a member of 'std'
  6870. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  6871. ^
  6872. supportClasses/f2.h:75:36: error: 'stof' is not a member of 'std'
  6873. return f2(std::stof(seglist[0]), std::stof(seglist[1]));
  6874. ^
  6875. supportClasses/f2.h: In static member function 'static std::vector<float> f2::splitAsFloat(std::str
  6876. ng, char)':
  6877. supportClasses/f2.h:421:23: error: 'stof' is not a member of 'std'
  6878. seglist.push_back(std::stof(segment));
  6879. ^
  6880. supportClasses/f2.h: At global scope:
  6881. supportClasses/f2.h:432:9: error: 'hash' is not a class template
  6882. struct hash<f2>
  6883. ^
  6884. supportClasses/f2.h:433:2: error: explicit specialization of non-template 'std::hash'
  6885. {
  6886. ^
  6887. supportClasses/f2.h: In member function 'std::size_t std::hash::operator()(const f2&) const':
  6888. supportClasses/f2.h:440:19: error: 'to_string' is not a member of 'std'
  6889. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  6890. ^
  6891. supportClasses/f2.h:440:46: error: 'to_string' is not a member of 'std'
  6892. string str = std::to_string((int)k.x) + std::to_string((int)k.y);
  6893. ^
  6894. supportClasses/f2.h:442:13: error: 'std::hash' is not a template
  6895. return hash<string>()(str);
  6896. ^
  6897. supportClasses/f2.h:442:31: error: no match for call to '(std::hash) (std::string&)'
  6898. return hash<string>()(str);
  6899. ^
  6900. supportClasses/f2.h:432:9: note: candidate is:
  6901. struct hash<f2>
  6902. ^
  6903. supportClasses/f2.h:434:16: note: std::size_t std::hash::operator()(const f2&) const
  6904. std::size_t operator()(const f2& k) const
  6905. ^
  6906. supportClasses/f2.h:434:16: note: no known conversion for argument 1 from 'std::string {aka std::
  6907. asic_string<char>}' to 'const f2&'
  6908. In file included from supportClasses/Rect.h:17:0,
  6909. from Menu/Button.h:3,
  6910. from Menu/Menu.h:2,
  6911. from rts/Run.h:30,
  6912. from rts/Run.cpp:26:
  6913. supportClasses/Shape.h: At global scope:
  6914. supportClasses/Shape.h:81:22: warning: non-static data member initializers only available with -std
  6915. c++11 or -std=gnu++11
  6916. float radius_ = 0;
  6917. ^
  6918. In file included from supportClasses/Rect.h:17:0,
  6919. from Menu/Button.h:3,
  6920. from Menu/Menu.h:2,
  6921. from rts/Run.h:30,
  6922. from rts/Run.cpp:26:
  6923. supportClasses/Shape.h: In constructor 'Shape::Shape()':
  6924. supportClasses/Shape.h:17:20: warning: delegating constructors only available with -std=c++11 or -s
  6925. d=gnu++11
  6926. Shape() : Shape(4) {}
  6927. ^
  6928. In file included from Menu/Button.h:9:0,
  6929. from Menu/Menu.h:2,
  6930. from rts/Run.h:30,
  6931. from rts/Run.cpp:26:
  6932. supportClasses/Rectangle.h: In copy constructor 'Rectangle::Rectangle(const Rectangle&)':
  6933. supportClasses/Rectangle.h:56:2: warning: base class 'class Shape' should be explicitly initialized
  6934. in the copy constructor [-Wextra]
  6935. Rectangle(const Rectangle& rect) {*this = rect;}
  6936. ^
  6937. supportClasses/Rectangle.h: In member function 'std::vector<f2> Rectangle::getCorners() const':
  6938. supportClasses/Rectangle.h:108:41: warning: extended initializer lists only available with -std=c++
  6939. 1 or -std=gnu++11
  6940. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  6941. ^
  6942. supportClasses/Rectangle.h:108:92: error: could not convert '{Rectangle::topLeft(), Rectangle::topR
  6943. ght(), Rectangle::bottomRight(), Rectangle::bottomLeft()}' from '<brace-enclosed initializer list>'
  6944. to 'std::vector<f2>'
  6945. vector<f2> getCorners() const { return {topLeft(), topRight(), bottomRight(), bottomLeft()};}
  6946. ^
  6947. In file included from rts/Run.h:30:0,
  6948. from rts/Run.cpp:26:
  6949. Menu/Menu.h: At global scope:
  6950. Menu/Menu.h:49:17: warning: non-static data member initializers only available with -std=c++11 or -
  6951. td=gnu++11
  6952. int pressed = - 1;
  6953. ^
  6954. In file included from rts/Init.h:36:0,
  6955. from rts/general/Units.h:27,
  6956. from rts/Game.h:3,
  6957. from rts/Run.h:31,
  6958. from rts/Run.cpp:26:
  6959. rts/Hotkey.h:318:34: warning: non-static data member initializers only available with -std=c++11 or
  6960. -std=gnu++11
  6961. bool unitCardControl_ = false;
  6962. ^
  6963. rts/Hotkey.h:319:33: warning: non-static data member initializers only available with -std=c++11 or
  6964. -std=gnu++11
  6965. bool miniMapControl_ = false;
  6966. ^
  6967. rts/Hotkey.h:320:28: warning: non-static data member initializers only available with -std=c++11 or
  6968. -std=gnu++11
  6969. bool doubleTap_ = false;
  6970. ^
  6971. rts/Hotkey.h:321:37: warning: non-static data member initializers only available with -std=c++11 or
  6972. -std=gnu++11
  6973. bool commandCardControl_ = false;
  6974. ^
  6975. rts/Hotkey.h:304:34: warning: unused parameter 'other' [-Wunused-parameter]
  6976. bool operator < (const Hotkey& other) const
  6977. ^
  6978. rts/Hotkey.h:332:10: error: 'hash' is not a class template
  6979. struct hash<Hotkey>
  6980. ^
  6981. rts/Hotkey.h:332:21: error: 'std::hash' is not a template type
  6982. struct hash<Hotkey>
  6983. ^
  6984. In file included from particleEffects/Emitter.h:3:0,
  6985. from particleEffects/ParticleEffects.h:3,
  6986. from rts/general/Object.h:4,
  6987. from rts/general/Tile.h:3,
  6988. from rts/Init.h:37,
  6989. from rts/general/Units.h:27,
  6990. from rts/Game.h:3,
  6991. from rts/Run.h:31,
  6992. from rts/Run.cpp:26:
  6993. particleEffects/Particle.h:58:22: warning: non-static data member initializers only available with
  6994. std=c++11 or -std=gnu++11
  6995. float timer_ = 0;
  6996. ^
  6997. In file included from particleEffects/ParticleEffects.h:3:0,
  6998. from rts/general/Object.h:4,
  6999. from rts/general/Tile.h:3,
  7000. from rts/Init.h:37,
  7001. from rts/general/Units.h:27,
  7002. from rts/Game.h:3,
  7003. from rts/Run.h:31,
  7004. from rts/Run.cpp:26:
  7005. particleEffects/Emitter.h:124:21: warning: non-static data member initializers only available with
  7006. std=c++11 or -std=gnu++11
  7007. double redDiff_ = 0;
  7008. ^
  7009. particleEffects/Emitter.h:125:21: warning: non-static data member initializers only available with
  7010. std=c++11 or -std=gnu++11
  7011. double blueDiff_ = 0;
  7012. ^
  7013. particleEffects/Emitter.h:126:21: warning: non-static data member initializers only available with
  7014. std=c++11 or -std=gnu++11
  7015. double greenDiff_ = 0;
  7016. ^
  7017. particleEffects/Emitter.h:127:21: warning: non-static data member initializers only available with
  7018. std=c++11 or -std=gnu++11
  7019. double alphaDiff_ = 0;
  7020. ^
  7021. particleEffects/Emitter.h:128:21: warning: non-static data member initializers only available with
  7022. std=c++11 or -std=gnu++11
  7023. double fade_ = 0;
  7024. ^
  7025. particleEffects/Emitter.h:129:26: warning: non-static data member initializers only available with
  7026. std=c++11 or -std=gnu++11
  7027. f2 speed_ = {0, 0};
  7028. ^
  7029. particleEffects/Emitter.h:130:25: warning: non-static data member initializers only available with
  7030. std=c++11 or -std=gnu++11
  7031. float emissionTimer_ = 0;
  7032. ^
  7033. particleEffects/Emitter.h:131:25: warning: non-static data member initializers only available with
  7034. std=c++11 or -std=gnu++11
  7035. float lifeTimer_ = 0;
  7036. ^
  7037. particleEffects/Emitter.h:134:47: warning: non-static data member initializers only available with
  7038. std=c++11 or -std=gnu++11
  7039. vector<Emitter*> emitters_ = vector<Emitter*>();
  7040. ^
  7041. particleEffects/Emitter.h:129:26: warning: extended initializer lists only available with -std=c++1
  7042. or -std=gnu++11
  7043. f2 speed_ = {0, 0};
  7044. ^
  7045. In file included from rts/general/Tile.h:3:0,
  7046. from rts/Init.h:37,
  7047. from rts/general/Units.h:27,
  7048. from rts/Game.h:3,
  7049. from rts/Run.h:31,
  7050. from rts/Run.cpp:26:
  7051. rts/general/Object.h: In copy constructor 'Object::Object(const Object&)':
  7052. rts/general/Object.h:45:3: warning: base class 'class Rectangle' should be explicitly initialized i
  7053. the copy constructor [-Wextra]
  7054. Object(const Object& object) {*this = object;}
  7055. ^
  7056. In file included from rts/Init.h:37:0,
  7057. from rts/general/Units.h:27,
  7058. from rts/Game.h:3,
  7059. from rts/Run.h:31,
  7060. from rts/Run.cpp:26:
  7061. rts/general/Tile.h: At global scope:
  7062. rts/general/Tile.h:32:19: warning: non-static data member initializers only available with -std=c++
  7063. 1 or -std=gnu++11
  7064. int beingUsed_ = 0;
  7065. ^
  7066. In file included from rts/general/Unit.h:29:0,
  7067. from rts/Init.h:38,
  7068. from rts/general/Units.h:27,
  7069. from rts/Game.h:3,
  7070. from rts/Run.h:31,
  7071. from rts/Run.cpp:26:
  7072. rts/general/OrderQueu.h:46:35: warning: non-static data member initializers only available with -st
  7073. =c++11 or -std=gnu++11
  7074. deque<Order> queu = deque<Order>(0);
  7075. ^
  7076. rts/general/OrderQueu.h:47:43: warning: non-static data member initializers only available with -st
  7077. =c++11 or -std=gnu++11
  7078. Order noOrder = Order(f2(0, 0), NO_COMMAND);
  7079. ^
  7080. In file included from rts/general/Unit.h:35:0,
  7081. from rts/Init.h:38,
  7082. from rts/general/Units.h:27,
  7083. from rts/Game.h:3,
  7084. from rts/Run.h:31,
  7085. from rts/Run.cpp:26:
  7086. supportClasses/Pathfinding.h:16:12: error: 'std::unordered_map' has not been declared
  7087. using std::unordered_map;
  7088. ^
  7089. supportClasses/Pathfinding.h:19:12: error: 'std::make_tuple' has not been declared
  7090. using std::make_tuple;
  7091. ^
  7092. supportClasses/Pathfinding.h:22:12: error: 'std::unordered_set' has not been declared
  7093. using std::unordered_set;
  7094. ^
  7095. supportClasses/Pathfinding.h:24:22: error: 'placeholders' is not a namespace-name
  7096. using namespace std::placeholders;
  7097. ^
  7098. supportClasses/Pathfinding.h:24:34: error: expected namespace-name before ';' token
  7099. using namespace std::placeholders;
  7100. ^
  7101. supportClasses/Pathfinding.h:30:75: error: '>>' should be '> >' within a nested template argument l
  7102. st
  7103. std::priority_queue<PQElement, vector<PQElement>, std::greater<PQElement>> elements;
  7104. ^
  7105. supportClasses/Pathfinding.h:551:36: error: 'unordered_map' has not been declared
  7106. inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
  7107. ^
  7108. supportClasses/Pathfinding.h:551:49: error: expected ',' or '...' before '<' token
  7109. inline vector<f2> reconstructPath(unordered_map<f2, f2> cameFrom, f2 start, f2 goal)
  7110. ^
  7111. In file included from rts/general/Unit.h:35:0,
  7112. from rts/Init.h:38,
  7113. from rts/general/Units.h:27,
  7114. from rts/Game.h:3,
  7115. from rts/Run.h:31,
  7116. from rts/Run.cpp:26:
  7117. supportClasses/Pathfinding.h:740:1: error: 'unordered_map' does not name a type
  7118. unordered_map<f2, Node*> nodes_;
  7119. ^
  7120. In file included from rts/general/Unit.h:35:0,
  7121. from rts/Init.h:38,
  7122. from rts/general/Units.h:27,
  7123. from rts/Game.h:3,
  7124. from rts/Run.h:31,
  7125. from rts/Run.cpp:26:
  7126. supportClasses/Pathfinding.h: In member function 'std::vector<Node*> Pathfinding::neighbors(f2)':
  7127. supportClasses/Pathfinding.h:95:7: error: 'nodes_' was not declared in this scope
  7128. if (nodes_.count(position))
  7129. ^
  7130. supportClasses/Pathfinding.h:99:22: warning: comparison between signed and unsigned integer express
  7131. ons [-Wsign-compare]
  7132. for (int i = 0; i < node->links_.size(); ++i)
  7133. ^
  7134. supportClasses/Pathfinding.h:111:22: warning: comparison between signed and unsigned integer expres
  7135. ions [-Wsign-compare]
  7136. for (int i = 0; i < nodesV_.size(); ++i)
  7137. ^
  7138. supportClasses/Pathfinding.h: In static member function 'static bool Pathfinding::straightPath(f2,
  7139. 2, std::vector<Rect>*)':
  7140. supportClasses/Pathfinding.h:172:23: warning: comparison between signed and unsigned integer expres
  7141. ions [-Wsign-compare]
  7142. for (int i = 0; i < obstacles->size(); ++i)
  7143. ^
  7144. supportClasses/Pathfinding.h:188:23: warning: comparison between signed and unsigned integer expres
  7145. ions [-Wsign-compare]
  7146. for (int i = 0; i < obstacles->size(); ++i)
  7147. ^
  7148. supportClasses/Pathfinding.h:207:23: warning: comparison between signed and unsigned integer expres
  7149. ions [-Wsign-compare]
  7150. for (int i = 0; i < obstacles->size(); ++i)
  7151. ^
  7152. supportClasses/Pathfinding.h:223:23: warning: comparison between signed and unsigned integer expres
  7153. ions [-Wsign-compare]
  7154. for (int i = 0; i < obstacles->size(); ++i)
  7155. ^
  7156. supportClasses/Pathfinding.h: In member function 'bool Pathfinding::straightPath(f2, f2, const f2&)
  7157. :
  7158. supportClasses/Pathfinding.h:263:23: warning: comparison between signed and unsigned integer expres
  7159. ions [-Wsign-compare]
  7160. for (int i = 0; i < obstacles_.size(); ++i)
  7161. ^
  7162. supportClasses/Pathfinding.h:296:23: warning: comparison between signed and unsigned integer expres
  7163. ions [-Wsign-compare]
  7164. for (int i = 0; i < obstacles_.size(); ++i)
  7165. ^
  7166. supportClasses/Pathfinding.h:332:23: warning: comparison between signed and unsigned integer expres
  7167. ions [-Wsign-compare]
  7168. for (int i = 0; i < obstacles_.size(); ++i)
  7169. ^
  7170. supportClasses/Pathfinding.h:364:23: warning: comparison between signed and unsigned integer expres
  7171. ions [-Wsign-compare]
  7172. for (int i = 0; i < obstacles_.size(); ++i)
  7173. ^
  7174. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
  7175. , f2)':
  7176. supportClasses/Pathfinding.h:394:11: warning: extended initializer lists only available with -std=c
  7177. +11 or -std=gnu++11
  7178. return {start, goal};
  7179. ^
  7180. supportClasses/Pathfinding.h:416:3: error: 'unordered_map' was not declared in this scope
  7181. unordered_map<f2, float> costSoFar;
  7182. ^
  7183. supportClasses/Pathfinding.h:416:19: error: expected primary-expression before ',' token
  7184. unordered_map<f2, float> costSoFar;
  7185. ^
  7186. supportClasses/Pathfinding.h:416:21: error: expected primary-expression before 'float'
  7187. unordered_map<f2, float> costSoFar;
  7188. ^
  7189. supportClasses/Pathfinding.h:417:19: error: expected primary-expression before ',' token
  7190. unordered_map<f2, f2> cameFrom;
  7191. ^
  7192. supportClasses/Pathfinding.h:417:23: error: expected primary-expression before '>' token
  7193. unordered_map<f2, f2> cameFrom;
  7194. ^
  7195. supportClasses/Pathfinding.h:417:25: error: 'cameFrom' was not declared in this scope
  7196. unordered_map<f2, f2> cameFrom;
  7197. ^
  7198. supportClasses/Pathfinding.h:422:3: error: 'costSoFar' was not declared in this scope
  7199. costSoFar[start] = 0;
  7200. ^
  7201. supportClasses/Pathfinding.h:438:8: error: 'nodes_' was not declared in this scope
  7202. if (nodes_.count(current))
  7203. ^
  7204. supportClasses/Pathfinding.h:446:22: warning: comparison between signed and unsigned integer expres
  7205. ions [-Wsign-compare]
  7206. for (int i = 0; i < nb.size(); ++i)
  7207. ^
  7208. supportClasses/Pathfinding.h:464:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc
  7209. +0x-compat]
  7210. for(auto i : cameFrom)
  7211. ^
  7212. supportClasses/Pathfinding.h:464:12: error: 'i' does not name a type
  7213. for(auto i : cameFrom)
  7214. ^
  7215. supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
  7216. if (start == pos)
  7217. ^
  7218. supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
  7219. supportClasses/Pathfinding.h:473:3: error: expected ';' before 'if'
  7220. supportClasses/Pathfinding.h:473:3: error: expected primary-expression before 'if'
  7221. supportClasses/Pathfinding.h:473:3: error: expected ')' before 'if'
  7222. supportClasses/Pathfinding.h:475:11: warning: extended initializer lists only available with -std=c
  7223. +11 or -std=gnu++11
  7224. return {};
  7225. ^
  7226. supportClasses/Pathfinding.h:461:9: warning: unused variable 'distance' [-Wunused-variable]
  7227. float distance = - 1;
  7228. ^
  7229. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::aStarSearch(const f2
  7230. , std::vector<Rect>)':
  7231. supportClasses/Pathfinding.h:491:21: warning: comparison between signed and unsigned integer expres
  7232. ions [-Wsign-compare]
  7233. for (int i = 0; i < nodesV_.size(); ++i)
  7234. ^
  7235. supportClasses/Pathfinding.h:493:8: error: 'nodes_' was not declared in this scope
  7236. if (nodes_.count(start) > 0 && straightPath(nodesV_[i]->position_, start))
  7237. ^
  7238. supportClasses/Pathfinding.h:500:3: error: 'unordered_map' was not declared in this scope
  7239. unordered_map<f2, float> costSoFar;
  7240. ^
  7241. supportClasses/Pathfinding.h:500:19: error: expected primary-expression before ',' token
  7242. unordered_map<f2, float> costSoFar;
  7243. ^
  7244. supportClasses/Pathfinding.h:500:21: error: expected primary-expression before 'float'
  7245. unordered_map<f2, float> costSoFar;
  7246. ^
  7247. supportClasses/Pathfinding.h:501:19: error: expected primary-expression before ',' token
  7248. unordered_map<f2, f2> cameFrom;
  7249. ^
  7250. supportClasses/Pathfinding.h:501:23: error: expected primary-expression before '>' token
  7251. unordered_map<f2, f2> cameFrom;
  7252. ^
  7253. supportClasses/Pathfinding.h:501:25: error: 'cameFrom' was not declared in this scope
  7254. unordered_map<f2, f2> cameFrom;
  7255. ^
  7256. supportClasses/Pathfinding.h:506:3: error: 'costSoFar' was not declared in this scope
  7257. costSoFar[start] = 0;
  7258. ^
  7259. supportClasses/Pathfinding.h:516:39: warning: comparison between signed and unsigned integer expres
  7260. ions [-Wsign-compare]
  7261. for (int i = startingNodeCount; i < nodesV_.size(); ++i)
  7262. ^
  7263. supportClasses/Pathfinding.h:525:8: error: 'nodes_' was not declared in this scope
  7264. if (nodes_.count(current))
  7265. ^
  7266. supportClasses/Pathfinding.h:533:22: warning: comparison between signed and unsigned integer expres
  7267. ions [-Wsign-compare]
  7268. for (int i = 0; i < nb.size(); ++i)
  7269. ^
  7270. supportClasses/Pathfinding.h: In member function 'std::vector<f2> Pathfinding::reconstructPath(int)
  7271. :
  7272. supportClasses/Pathfinding.h:555:18: error: 'goal' was not declared in this scope
  7273. path.push_back(goal);
  7274. ^
  7275. supportClasses/Pathfinding.h:558:23: error: 'cameFrom' was not declared in this scope
  7276. for (int i = 0; i < cameFrom.size(); ++i)
  7277. ^
  7278. supportClasses/Pathfinding.h:562:16: error: 'start' was not declared in this scope
  7279. if (next == start)
  7280. ^
  7281. supportClasses/Pathfinding.h: In member function 'Node* Pathfinding::addNode(const f2&)':
  7282. supportClasses/Pathfinding.h:585:21: warning: comparison between signed and unsigned integer expres
  7283. ions [-Wsign-compare]
  7284. for (int i = 0; i < obstacles_.size(); ++i)
  7285. ^
  7286. supportClasses/Pathfinding.h:605:21: warning: comparison between signed and unsigned integer expres
  7287. ions [-Wsign-compare]
  7288. for (int i = 0; i < nodesV_.size(); ++i)
  7289. ^
  7290. supportClasses/Pathfinding.h:676:3: error: 'nodes_' was not declared in this scope
  7291. nodes_[position] = node;
  7292. ^
  7293. supportClasses/Pathfinding.h: In member function 'void Pathfinding::removeNode(Node*)':
  7294. supportClasses/Pathfinding.h:682:21: warning: comparison between signed and unsigned integer expres
  7295. ions [-Wsign-compare]
  7296. for (int i = 0; i < node->links_.size(); ++i)
  7297. ^
  7298. supportClasses/Pathfinding.h:684:22: warning: comparison between signed and unsigned integer expres
  7299. ions [-Wsign-compare]
  7300. for (int j = 0; j < node->links_[i]->links_.size(); ++j)
  7301. ^
  7302. supportClasses/Pathfinding.h:696:3: error: 'nodes_' was not declared in this scope
  7303. nodes_.erase(node->position_);
  7304. ^
  7305. supportClasses/Pathfinding.h: In member function 'void Pathfinding::generateNodes(const std::vector
  7306. Rect>&)':
  7307. supportClasses/Pathfinding.h:703:21: warning: comparison between signed and unsigned integer expres
  7308. ions [-Wsign-compare]
  7309. for (int i = 0; i < obstacles.size(); ++i)
  7310. ^
  7311. In file included from rts/general/Unit.h:35:0,
  7312. from rts/Init.h:38,
  7313. from rts/general/Units.h:27,
  7314. from rts/Game.h:3,
  7315. from rts/Run.h:31,
  7316. from rts/Run.cpp:26:
  7317. supportClasses/Pathfinding.h: In member function 'void Pathfinding::update()':
  7318. supportClasses/Pathfinding.h:718:3: error: 'nodes_' was not declared in this scope
  7319. nodes_.clear();
  7320. ^
  7321. supportClasses/Pathfinding.h: In member function 'bool Pathfinding::checkPath(std::vector<f2>)':
  7322. supportClasses/Pathfinding.h:725:21: warning: comparison between signed and unsigned integer expres
  7323. ions [-Wsign-compare]
  7324. for (int i = 1; i < path.size(); ++i)
  7325. ^
  7326. In file included from rts/general/Unit.h:37:0,
  7327. from rts/Init.h:38,
  7328. from rts/general/Units.h:27,
  7329. from rts/Game.h:3,
  7330. from rts/Run.h:31,
  7331. from rts/Run.cpp:26:
  7332. rts/general/Wall.h: At global scope:
  7333. rts/general/Wall.h:36:25: warning: non-static data member initializers only available with -std=c++
  7334. 1 or -std=gnu++11
  7335. bool canBeShotTrough_ = false;
  7336. ^
  7337. rts/general/Wall.h:39:26: warning: non-static data member initializers only available with -std=c++
  7338. 1 or -std=gnu++11
  7339. f2 unitIndex_ = f2(0, - 1);
  7340. ^
  7341. rts/general/Wall.h:40:17: warning: non-static data member initializers only available with -std=c++
  7342. 1 or -std=gnu++11
  7343. bool enabled_ = true;
  7344. ^
  7345. rts/general/Wall.h: In copy constructor 'Wall::Wall(const Wall&)':
  7346. rts/general/Wall.h:16:2: warning: base class 'class Rectangle' should be explicitly initialized in
  7347. he copy constructor [-Wextra]
  7348. Wall(const Wall& wall) {*this = wall;}
  7349. ^
  7350. In file included from rts/Init.h:38:0,
  7351. from rts/general/Units.h:27,
  7352. from rts/Game.h:3,
  7353. from rts/Run.h:31,
  7354. from rts/Run.cpp:26:
  7355. rts/general/Unit.h: At global scope:
  7356. rts/general/Unit.h:88:26: warning: type qualifiers ignored on function return type [-Wignored-quali
  7357. iers]
  7358. void removeCurrentOrder() {orders_.remove();}
  7359. ^
  7360. rts/general/Unit.h:99:18: warning: non-static data member initializers only available with -std=c++
  7361. 1 or -std=gnu++11
  7362. bool selected_ = false;
  7363. ^
  7364. rts/general/Unit.h:113:16: warning: non-static data member initializers only available with -std=c+
  7365. 11 or -std=gnu++11
  7366. bool pushed_ = false;
  7367. ^
  7368. rts/general/Unit.h:156:31: warning: non-static data member initializers only available with -std=c+
  7369. 11 or -std=gnu++11
  7370. OrderQueu orders_ = OrderQueu();
  7371. ^
  7372. rts/general/Unit.h:170:24: warning: non-static data member initializers only available with -std=c+
  7373. 11 or -std=gnu++11
  7374. int pathfindingStep_ = 0;
  7375. ^
  7376. rts/general/Unit.h:180:32: warning: non-static data member initializers only available with -std=c+
  7377. 11 or -std=gnu++11
  7378. f2 previousTarget_ = f2(- 1, -1);
  7379. ^
  7380. rts/general/Unit.h:181:17: warning: non-static data member initializers only available with -std=c+
  7381. 11 or -std=gnu++11
  7382. bool enabled_ = true;
  7383. ^
  7384. rts/general/Unit.h: In copy constructor 'Unit::Unit(const Unit&)':
  7385. rts/general/Unit.h:74:2: warning: base class 'class Object' should be explicitly initialized in the
  7386. copy constructor [-Wextra]
  7387. Unit(const Unit& unit) {*this = unit;}
  7388. ^
  7389. In file included from rts/Init.h:39:0,
  7390. from rts/general/Units.h:27,
  7391. from rts/Game.h:3,
  7392. from rts/Run.h:31,
  7393. from rts/Run.cpp:26:
  7394. rts/Faction.h: At global scope:
  7395. rts/Faction.h:18:21: warning: non-static data member initializers only available with -std=c++11 or
  7396. -std=gnu++11
  7397. float usedSupply_ = 0;
  7398. ^
  7399. rts/Faction.h:19:24: warning: non-static data member initializers only available with -std=c++11 or
  7400. -std=gnu++11
  7401. float currentSupply_ = 0;
  7402. ^
  7403. In file included from rts/general/Units.h:27:0,
  7404. from rts/Game.h:3,
  7405. from rts/Run.h:31,
  7406. from rts/Run.cpp:26:
  7407. rts/Init.h: In constructor 'Init::Init(std::string)':
  7408. rts/Init.h:49:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
  7409. (std::string&)'
  7410. ifstream ini(iniPath);
  7411. ^
  7412. rts/Init.h:49:23: note: candidates are:
  7413. In file included from Menu/Menu.h:6:0,
  7414. from rts/Run.h:30,
  7415. from rts/Run.cpp:26:
  7416. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  7417. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
  7418. h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
  7419. basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
  7420. ^
  7421. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  7422. ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
  7423. char*'
  7424. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  7425. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
  7426. _traits<char>]
  7427. basic_ifstream() : __istream_type(), _M_filebuf()
  7428. ^
  7429. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  7430. ote: candidate expects 0 arguments, 1 provided
  7431. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  7432. note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
  7433. class basic_ifstream : public basic_istream<_CharT, _Traits>
  7434. ^
  7435. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  7436. note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
  7437. t std::basic_ifstream<char>&'
  7438. In file included from rts/general/Units.h:27:0,
  7439. from rts/Game.h:3,
  7440. from rts/Run.h:31,
  7441. from rts/Run.cpp:26:
  7442. rts/Init.h:71:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  7443. for (auto const& x : valueMap)
  7444. ^
  7445. rts/Init.h:71:24: error: range-based 'for' loops are not allowed in C++98 mode
  7446. for (auto const& x : valueMap)
  7447. ^
  7448. rts/Init.h:73:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
  7449. valueMap[x.first] = evaluate(split(x.second, ' '));
  7450. ^
  7451. rts/Init.h:73:41: error: request for member 'second' in 'x', which is of non-class type 'const int'
  7452. valueMap[x.first] = evaluate(split(x.second, ' '));
  7453. ^
  7454. rts/Init.h: In member function 'void Init::loadFile(std::string)':
  7455. rts/Init.h:81:23: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstrea
  7456. (std::string&)'
  7457. ifstream ini(iniPath);
  7458. ^
  7459. rts/Init.h:81:23: note: candidates are:
  7460. In file included from Menu/Menu.h:6:0,
  7461. from rts/Run.h:30,
  7462. from rts/Run.cpp:26:
  7463. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  7464. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [wi
  7465. h _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
  7466. basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
  7467. ^
  7468. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:470:7:
  7469. ote: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'cons
  7470. char*'
  7471. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  7472. ote: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::cha
  7473. _traits<char>]
  7474. basic_ifstream() : __istream_type(), _M_filebuf()
  7475. ^
  7476. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:456:7:
  7477. ote: candidate expects 0 arguments, 1 provided
  7478. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  7479. note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)
  7480. class basic_ifstream : public basic_istream<_CharT, _Traits>
  7481. ^
  7482. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/fstream:430:11:
  7483. note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'con
  7484. t std::basic_ifstream<char>&'
  7485. In file included from rts/general/Units.h:27:0,
  7486. from rts/Game.h:3,
  7487. from rts/Run.h:31,
  7488. from rts/Run.cpp:26:
  7489. rts/Init.h:103:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  7490. for (auto const& x : valueMap)
  7491. ^
  7492. rts/Init.h:103:24: error: range-based 'for' loops are not allowed in C++98 mode
  7493. for (auto const& x : valueMap)
  7494. ^
  7495. rts/Init.h:105:15: error: request for member 'first' in 'x', which is of non-class type 'const int'
  7496. valueMap[x.first] = evaluate(split(x.second, ' '));
  7497. ^
  7498. rts/Init.h:105:41: error: request for member 'second' in 'x', which is of non-class type 'const int
  7499.  
  7500. valueMap[x.first] = evaluate(split(x.second, ' '));
  7501. ^
  7502. rts/Init.h: In member function 'std::string Init::evaluate(std::vector<std::basic_string<char> >)':
  7503. rts/Init.h:112:21: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7504. re]
  7505. for (int i = 1; i < arguments.size(); ++i)
  7506. ^
  7507. rts/Init.h: In member function 'Rect Init::getRect(const string&) const':
  7508. rts/Init.h:144:19: error: 'stof' is not a member of 'std'
  7509. float top = std::stof(arguments[1]);
  7510. ^
  7511. rts/Init.h:145:20: error: 'stof' is not a member of 'std'
  7512. float left = std::stof(arguments[2]);
  7513. ^
  7514. rts/Init.h:146:20: error: 'stof' is not a member of 'std'
  7515. float width = std::stof(arguments[3]);
  7516. ^
  7517. rts/Init.h:147:21: error: 'stof' is not a member of 'std'
  7518. float height = std::stof(arguments[4]);
  7519. ^
  7520. rts/Init.h: In member function 'sf::Color Init::getColor(const string&) const':
  7521. rts/Init.h:175:17: error: 'stof' is not a member of 'std'
  7522. float r = std::stof(arguments[1]);
  7523. ^
  7524. rts/Init.h:176:17: error: 'stof' is not a member of 'std'
  7525. float g = std::stof(arguments[2]);
  7526. ^
  7527. rts/Init.h:177:18: error: 'stof' is not a member of 'std'
  7528. float b = std::stof(arguments[3]);
  7529. ^
  7530. rts/Init.h:178:18: error: 'stof' is not a member of 'std'
  7531. float a = std::stof(arguments[4]);
  7532. ^
  7533. rts/Init.h: In member function 'Function Init::getFunction(const string&) const':
  7534. rts/Init.h:206:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7535. re]
  7536. for (int i = 1; i < args.size(); ++i)
  7537. ^
  7538. rts/Init.h:218:55: error: 'stoi' is not a member of 'std'
  7539. FunctionType type = static_cast<FunctionType>(std::stoi(get(arguments, "type")));
  7540. ^
  7541. rts/Init.h:219:26: error: 'stoi' is not a member of 'std'
  7542. bool global = std::stoi(get(arguments, "global"));
  7543. ^
  7544. rts/Init.h:220:33: error: 'stoi' is not a member of 'std'
  7545. bool ignoreMousePosition = std::stoi(get(arguments, "ignoreMousePosition"));
  7546. ^
  7547. rts/Init.h:221:29: error: 'stoi' is not a member of 'std'
  7548. bool useDoubleTap = std::stoi(get(arguments, "useDoubleTap"));
  7549. ^
  7550. rts/Init.h: In member function 'f2 Init::getf2(const string&) const':
  7551. rts/Init.h:247:11: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
  7552. 1
  7553. return {0, 0};
  7554. ^
  7555. rts/Init.h:253:14: error: 'stof' is not a member of 'std'
  7556. float x = std::stof(arguments[1]);
  7557. ^
  7558. rts/Init.h:254:14: error: 'stof' is not a member of 'std'
  7559. float y = std::stof(arguments[2]);
  7560. ^
  7561. rts/Init.h:261:10: warning: extended initializer lists only available with -std=c++11 or -std=gnu++
  7562. 1
  7563. return {0, 0};
  7564. ^
  7565. rts/Init.h: In member function 'Animation Init::getAnimation(const string&) const':
  7566. rts/Init.h:276:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7567. re]
  7568. for (int i = 1; i < args.size(); ++i)
  7569. ^
  7570. rts/Init.h:288:26: error: 'stof' is not a member of 'std'
  7571. float rectWidth = std::stof(get(arguments, "rectWidth"));
  7572. ^
  7573. rts/Init.h:289:26: error: 'stof' is not a member of 'std'
  7574. float rectHeight = std::stof(get(arguments, "rectHeight"));
  7575. ^
  7576. rts/Init.h:290:27: error: 'stof' is not a member of 'std'
  7577. float duration = std::stof(get(arguments, "duration"));
  7578. ^
  7579. rts/Init.h:291:26: error: 'stof' is not a member of 'std'
  7580. f2 textureDimensions(std::stof(get(arguments, "columns")),
  7581. ^
  7582. rts/Init.h:292:16: error: 'stof' is not a member of 'std'
  7583. std::stof(get(arguments, "rows")));
  7584. ^
  7585. rts/Init.h:293:24: error: 'stoi' is not a member of 'std'
  7586. bool loops = std::stoi(get(arguments, "loops"));
  7587. ^
  7588. rts/Init.h: In member function 'Projectile Init::getProjectile(const string&) const':
  7589. rts/Init.h:323:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7590. re]
  7591. for (int i = 1; i < args.size(); ++i)
  7592. ^
  7593. rts/Init.h:335:21: error: 'stof' is not a member of 'std'
  7594. float width = std::stof(get(arguments, "width"));
  7595. ^
  7596. rts/Init.h:336:22: error: 'stof' is not a member of 'std'
  7597. float height = std::stof(get(arguments, "height"));
  7598. ^
  7599. rts/Init.h:337:22: error: 'stof' is not a member of 'std'
  7600. float velocity = std::stof(get(arguments, "velocity"));
  7601. ^
  7602. rts/Init.h:338:21: error: 'stof' is not a member of 'std'
  7603. float damage = std::stof(get(arguments, "damage"));
  7604. ^
  7605. rts/Init.h: In member function 'Ability Init::getAbility(const string&) const':
  7606. rts/Init.h:370:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7607. re]
  7608. for (int i = 1; i < args.size(); ++i)
  7609. ^
  7610. rts/Init.h:384:33: error: 'stoi' is not a member of 'std'
  7611. bool firstTargetIsUnit = std::stoi(get(arguments, "firstTargetIsUnit"));
  7612. ^
  7613. rts/Init.h:385:34: error: 'stoi' is not a member of 'std'
  7614. bool secondTargetIsUnit = std::stoi(get(arguments, "secondTargetIsUnit"));
  7615. ^
  7616. rts/Init.h:386:27: error: 'stof' is not a member of 'std'
  7617. float cost = std::stof(get(arguments, "cost"));
  7618. ^
  7619. rts/Init.h:387:28: error: 'stof' is not a member of 'std'
  7620. float range = std::stof(get(arguments, "range"));
  7621. ^
  7622. rts/Init.h:388:29: error: 'stof' is not a member of 'std'
  7623. float cooldown = std::stof(get(arguments, "cooldown"));
  7624. ^
  7625. rts/Init.h:389:28: error: 'stof' is not a member of 'std'
  7626. float radius = std::stof(get(arguments, "radius"));
  7627. ^
  7628. rts/Init.h:390:29: error: 'stoi' is not a member of 'std'
  7629. bool targeted = std::stoi(get(arguments, "targeted"));
  7630. ^
  7631. rts/Init.h:391:29: error: 'stof' is not a member of 'std'
  7632. float velocity = std::stof(get(arguments, "velocity"));
  7633. ^
  7634. rts/Init.h:392:28: error: 'stof' is not a member of 'std'
  7635. float damage = std::stof(get(arguments, "damage"));
  7636. ^
  7637. rts/Init.h:393:29: error: 'stof' is not a member of 'std'
  7638. float duration = std::stof(get(arguments, "duration"));
  7639. ^
  7640. rts/Init.h:395:28: error: 'stoi' is not a member of 'std'
  7641. bool hitsAir = std::stoi(get(arguments, "hitsAir"));
  7642. ^
  7643. rts/Init.h:396:30: error: 'stoi' is not a member of 'std'
  7644. bool hitsGround = std::stoi(get(arguments, "hitsGround"));
  7645. ^
  7646. rts/Init.h:397:28: error: 'stoi' is not a member of 'std'
  7647. bool active = std::stoi(get(arguments, "active"));
  7648. ^
  7649. rts/Init.h:398:28: error: 'stoi' is not a member of 'std'
  7650. bool applied = std::stoi(get(arguments, "applied"));
  7651. ^
  7652. rts/Init.h:399:30: error: 'stoi' is not a member of 'std'
  7653. bool targetEnemy = std::stoi(get(arguments, "targetEnemy"));
  7654. ^
  7655. rts/Init.h:400:32: error: 'stoi' is not a member of 'std'
  7656. bool targetFriendly = std::stoi(get(arguments, "targetFriendly"));
  7657. ^
  7658. rts/Init.h:401:29: error: 'stoi' is not a member of 'std'
  7659. bool hitEnemy = std::stoi(get(arguments, "hitEnemy"));
  7660. ^
  7661. rts/Init.h:402:30: error: 'stoi' is not a member of 'std'
  7662. bool hitFriendly = std::stoi(get(arguments, "hitFriendly"));
  7663. ^
  7664. rts/Init.h:403:29: error: 'stoi' is not a member of 'std'
  7665. bool autoCast = std::stoi(get(arguments, "autoCast"));
  7666. ^
  7667. rts/Init.h:405:29: error: 'stoi' is not a member of 'std'
  7668. bool piercing = std::stoi(get(arguments, "piercing"));
  7669. ^
  7670. rts/Init.h:406:29: error: 'stoi' is not a member of 'std'
  7671. bool collision = std::stoi(get(arguments, "collision"));
  7672. ^
  7673. rts/Init.h:407:31: error: 'stoi' is not a member of 'std'
  7674. bool makesBuilding = std::stoi(get(arguments, "makesBuilding"));
  7675. ^
  7676. rts/Init.h:408:29: error: 'stoi' is not a member of 'std'
  7677. bool makesUnit = std::stoi(get(arguments, "makesUnit"));
  7678. ^
  7679. rts/Init.h:409:31: error: 'stoi' is not a member of 'std'
  7680. bool isProjectile = std::stoi(get(arguments, "isProjectile"));
  7681. ^
  7682. rts/Init.h:410:30: error: 'stoi' is not a member of 'std'
  7683. bool isResearch = std::stoi(get(arguments, "isResearch"));
  7684. ^
  7685. rts/Init.h:411:29: error: 'stoi' is not a member of 'std'
  7686. bool useOnce = std::stoi(get(arguments, "useOnce"));
  7687. ^
  7688. rts/Init.h:412:34: error: 'stoi' is not a member of 'std'
  7689. bool useForAllUnitTypes = std::stoi(get(arguments, "useForAllUnitTypes"));
  7690. ^
  7691. rts/Init.h:413:53: error: 'stoi' is not a member of 'std'
  7692. Research research = static_cast<Research>(std::stoi(get(arguments, "research")));
  7693. ^
  7694. rts/Init.h:414:57: error: 'stoi' is not a member of 'std'
  7695. OrderType abilityEnum = static_cast<OrderType>(std::stoi(get(arguments, "abilityEnum")));
  7696. ^
  7697. rts/Init.h:420:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7698. re]
  7699. for (int i = 0; i < typesString.size(); ++i)
  7700. ^
  7701. rts/Init.h:422:51: error: 'stoi' is not a member of 'std'
  7702. effects.push_back(static_cast<AbilityEffect>(std::stoi(typesString[i])));
  7703. ^
  7704. In file included from rts/general/Units.h:27:0,
  7705. from rts/Game.h:3,
  7706. from rts/Run.h:31,
  7707. from rts/Run.cpp:26:
  7708. rts/Init.h: In member function 'std::vector<Ability> Init::getAbilities() const':
  7709. rts/Init.h:448:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  7710. for (auto const& x : valueMap)
  7711. ^
  7712. rts/Init.h:448:24: error: range-based 'for' loops are not allowed in C++98 mode
  7713. for (auto const& x : valueMap)
  7714. ^
  7715. rts/Init.h:450:46: error: request for member 'first' in 'x', which is of non-class type 'const int'
  7716. vector<string> args = split(valueMap.at(x.first));
  7717. ^
  7718. rts/Init.h:453:38: error: request for member 'first' in 'x', which is of non-class type 'const int'
  7719. abilities.push_back(getAbility(x.first));
  7720. ^
  7721. rts/Init.h: In member function 'Unit Init::getUnit(const string&) const':
  7722. rts/Init.h:471:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7723. re]
  7724. for (int i = 1; i < args.size(); ++i)
  7725. ^
  7726. rts/Init.h:483:26: error: 'stof' is not a member of 'std'
  7727. float RectWidth = std::stof(get(arguments, "RectWidth"));
  7728. ^
  7729. rts/Init.h:484:26: error: 'stof' is not a member of 'std'
  7730. float RectHeight = std::stof(get(arguments, "RectHeight"));
  7731. ^
  7732. rts/Init.h:489:20: error: 'stof' is not a member of 'std'
  7733. float radius = std::stof(get(arguments, "radius"));
  7734. ^
  7735. rts/Init.h:496:26: error: 'stof' is not a member of 'std'
  7736. float health = std::stof(get(arguments, "health"));
  7737. ^
  7738. rts/Init.h:497:28: error: 'stof' is not a member of 'std'
  7739. float attackPoint = std::stof(get(arguments, "attackPoint"));
  7740. ^
  7741. rts/Init.h:498:28: error: 'stof' is not a member of 'std'
  7742. float attackDelay = std::stof(get(arguments, "attackDelay"));
  7743. ^
  7744. rts/Init.h:499:25: error: 'stof' is not a member of 'std'
  7745. float armor = std::stof(get(arguments, "armor"));
  7746. ^
  7747. rts/Init.h:500:29: error: 'stof' is not a member of 'std'
  7748. float movementSpeed = std::stof(get(arguments, "movementSpeed"));
  7749. ^
  7750. rts/Init.h:501:25: error: 'stof' is not a member of 'std'
  7751. float range = std::stof(get(arguments, "range"));
  7752. ^
  7753. rts/Init.h:502:28: error: 'stof' is not a member of 'std'
  7754. float sightRange = std::stof(get(arguments, "sightRange"));
  7755. ^
  7756. rts/Init.h:503:26: error: 'stof' is not a member of 'std'
  7757. float supply = std::stof(get(arguments, "supply"));
  7758. ^
  7759. rts/Init.h:504:27: error: 'stof' is not a member of 'std'
  7760. float buildTime = std::stof(get(arguments, "buildTime"));
  7761. ^
  7762. rts/Init.h:505:28: error: 'stof' is not a member of 'std'
  7763. float barrelLength = std::stof(get(arguments, "barrelLength"));
  7764. ^
  7765. rts/Init.h:506:31: error: 'stof' is not a member of 'std'
  7766. float resourceCapacity = std::stof(get(arguments, "resourceCapacity"));
  7767. ^
  7768. rts/Init.h:507:27: error: 'stof' is not a member of 'std'
  7769. float maxEnergy = std::stof(get(arguments, "maxEnergy"));
  7770. ^
  7771. rts/Init.h:508:26: error: 'stof' is not a member of 'std'
  7772. float energy = std::stof(get(arguments, "energy"));
  7773. ^
  7774. rts/Init.h:509:27: error: 'stof' is not a member of 'std'
  7775. float maxShield = std::stof(get(arguments, "maxShield"));
  7776. ^
  7777. rts/Init.h:510:30: error: 'stof' is not a member of 'std'
  7778. float gatherDuration = std::stof(get(arguments, "gatherDuration"));
  7779. ^
  7780. rts/Init.h:511:28: error: 'stof' is not a member of 'std'
  7781. float vertOffset = std::stof(get(arguments, "vertOffset"));
  7782. ^
  7783. rts/Init.h:512:27: error: 'stof' is not a member of 'std'
  7784. float horOffset = std::stof(get(arguments, "horOffset"));
  7785. ^
  7786. rts/Init.h:514:26: error: 'stoi' is not a member of 'std'
  7787. bool canAttack = std::stoi(get(arguments, "canAttack"));
  7788. ^
  7789. rts/Init.h:515:27: error: 'stoi' is not a member of 'std'
  7790. bool canBeMoved = std::stoi(get(arguments, "canBeMoved"));
  7791. ^
  7792. rts/Init.h:516:26: error: 'stoi' is not a member of 'std'
  7793. bool canRotate = std::stoi(get(arguments, "canRotate"));
  7794. ^
  7795. rts/Init.h:517:25: error: 'stoi' is not a member of 'std'
  7796. bool flying = std::stoi(get(arguments, "flying"));
  7797. ^
  7798. rts/Init.h:518:25: error: 'stoi' is not a member of 'std'
  7799. bool hasHead = std::stoi(get(arguments, "hasHead"));
  7800. ^
  7801. rts/Init.h:519:30: error: 'stoi' is not a member of 'std'
  7802. bool returnsResources = std::stoi(get(arguments, "returnsResources"));
  7803. ^
  7804. rts/Init.h:520:26: error: 'stoi' is not a member of 'std'
  7805. bool animated = std::stoi(get(arguments, "animated"));
  7806. ^
  7807. rts/Init.h:521:27: error: 'stoi' is not a member of 'std'
  7808. bool isBuilding = std::stoi(get(arguments, "isBuilding"));
  7809. ^
  7810. rts/Init.h:522:27: error: 'stoi' is not a member of 'std'
  7811. bool noCollision = std::stoi(get(arguments, "noCollision"));
  7812. ^
  7813. rts/Init.h:523:29: error: 'stoi' is not a member of 'std'
  7814. int workersRequired = std::stoi(get(arguments, "workersRequired"));
  7815. ^
  7816. rts/Init.h:524:46: error: in C++98 'offset' must be initialized by constructor, not by '{...}'
  7817. f2 offset = {horOffset, vertOffset};
  7818. ^
  7819. rts/Init.h:530:51: error: 'stoi' is not a member of 'std'
  7820. OrderType projectile = static_cast<OrderType>(std::stoi(get(arguments, "projectile")));
  7821. ^
  7822. rts/Init.h:538:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7823. re]
  7824. for (int i = 0; i < costsstring.size(); ++i)
  7825. ^
  7826. rts/Init.h:540:22: error: 'stof' is not a member of 'std'
  7827. costs.push_back(std::stof(costsstring[i]));
  7828. ^
  7829. rts/Init.h:545:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7830. re]
  7831. for (int i = 0; i < typesString.size(); ++i)
  7832. ^
  7833. rts/Init.h:547:44: error: 'stoi' is not a member of 'std'
  7834. types.push_back(static_cast<unitType>(std::stoi(typesString[i])));
  7835. ^
  7836. rts/Init.h:553:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7837. re]
  7838. for (int i = 0; i < abl.size(); ++i)
  7839. ^
  7840. rts/Init.h:555:49: error: 'stoi' is not a member of 'std'
  7841. abilities.push_back(static_cast<OrderType>(std::stoi(abl[i])));
  7842. ^
  7843. rts/Init.h:561:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7844. re]
  7845. for (int i = 0; i < pass.size(); ++i)
  7846. ^
  7847. rts/Init.h:565:49: error: 'stoi' is not a member of 'std'
  7848. passives.push_back(static_cast<OrderType>(std::stoi(pass[i])));
  7849. ^
  7850. rts/Init.h:577:24: error: 'stof' is not a member of 'std'
  7851. unit.aggroRange_ = std::stof(get(arguments, "aggroRange"));
  7852. ^
  7853. rts/Init.h: In member function 'float Init::getfloat(const string&) const':
  7854. rts/Init.h:603:10: error: 'stof' is not a member of 'std'
  7855. return std::stof(get(valueMap, key));
  7856. ^
  7857. rts/Init.h: In member function 'Hotkey Init::getHotkey(const string&) const':
  7858. rts/Init.h:618:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7859. re]
  7860. for (int i = 1; i < args.size(); ++i)
  7861. ^
  7862. rts/Init.h:631:21: error: 'stoi' is not a member of 'std'
  7863. bool realtime = std::stoi(get(arguments, "realtime"));
  7864. ^
  7865. rts/Init.h:635:25: error: 'stoi' is not a member of 'std'
  7866. bool control = std::stoi(get(arguments, "control"));
  7867. ^
  7868. rts/Init.h:636:25: error: 'stoi' is not a member of 'std'
  7869. bool shift = std::stoi(get(arguments, "shift"));
  7870. ^
  7871. rts/Init.h:637:24: error: 'stoi' is not a member of 'std'
  7872. bool alt = std::stoi(get(arguments, "alt"));
  7873. ^
  7874. rts/Init.h:638:25: error: 'stoi' is not a member of 'std'
  7875. bool super = std::stoi(get(arguments, "super"));
  7876. ^
  7877. rts/Init.h:639:26: error: 'stoi' is not a member of 'std'
  7878. bool isButton = std::stoi(get(arguments, "isButton"));
  7879. ^
  7880. rts/Init.h:640:29: error: 'stoi' is not a member of 'std'
  7881. bool unitCardControl = std::stoi(get(arguments, "unitCardControl"));
  7882. ^
  7883. rts/Init.h:641:29: error: 'stoi' is not a member of 'std'
  7884. bool miniMapControl = std::stoi(get(arguments, "miniMapControl"));
  7885. ^
  7886. rts/Init.h:642:27: error: 'stoi' is not a member of 'std'
  7887. bool doubleTap = std::stoi(get(arguments, "doubleTap"));
  7888. ^
  7889. rts/Init.h:643:32: error: 'stoi' is not a member of 'std'
  7890. bool commandCardControl = std::stoi(get(arguments, "commandCardControl"));
  7891. ^
  7892. rts/Init.h:645:16: error: 'stoi' is not a member of 'std'
  7893. int key = std::stoi(get(arguments, "key"));
  7894. ^
  7895. rts/Init.h:646:19: error: 'stoi' is not a member of 'std'
  7896. int button = std::stoi(get(arguments, "button"));
  7897. ^
  7898. rts/Init.h:655:26: error: 'stoi' is not a member of 'std'
  7899. hotkey.eventType_ = std::stoi(get(arguments, "eventType"));
  7900. ^
  7901. rts/Init.h:679:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7902. re]
  7903. for (int i = 0; i < stringKeys.size(); ++i)
  7904. ^
  7905. rts/Init.h:681:31: error: 'stoi' is not a member of 'std'
  7906. hotkey.keys_.push_back(std::stoi(stringKeys[i]));
  7907. ^
  7908. rts/Init.h:689:25: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7909. re]
  7910. for (int i = 0; i < stringButtons.size(); ++i)
  7911. ^
  7912. rts/Init.h:691:34: error: 'stoi' is not a member of 'std'
  7913. hotkey.buttons_.push_back(std::stoi(stringButtons[i]));
  7914. ^
  7915. rts/Init.h: In member function 'sf::Mouse::Button Init::getButton(const string&) const':
  7916. rts/Init.h:715:41: error: 'stoi' is not a member of 'std'
  7917. return static_cast<sf::Mouse::Button>(std::stoi(get(valueMap, key)));
  7918. ^
  7919. rts/Init.h: In member function 'sf::Keyboard::Key Init::getKey(const string&) const':
  7920. rts/Init.h:720:41: error: 'stoi' is not a member of 'std'
  7921. return static_cast<sf::Keyboard::Key>(std::stoi(get(valueMap, key)));
  7922. ^
  7923. rts/Init.h: In member function 'Tile Init::getTile(const string&) const':
  7924. rts/Init.h:735:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7925. re]
  7926. for (int i = 1; i < args.size(); ++i)
  7927. ^
  7928. rts/Init.h:747:22: error: 'stof' is not a member of 'std'
  7929. float width = std::stof(get(arguments, "width"));
  7930. ^
  7931. rts/Init.h:748:22: error: 'stof' is not a member of 'std'
  7932. float height = std::stof(get(arguments, "height"));
  7933. ^
  7934. rts/Init.h:753:25: error: 'stof' is not a member of 'std'
  7935. float resources = std::stof(get(arguments, "resources"));
  7936. ^
  7937. rts/Init.h:755:25: error: 'stoi' is not a member of 'std'
  7938. bool passable = std::stoi(get(arguments, "passable"));
  7939. ^
  7940. rts/Init.h:756:46: error: 'stoi' is not a member of 'std'
  7941. TileType type = static_cast<TileType>(std::stoi(get(arguments, "type")));
  7942. ^
  7943. rts/Init.h:753:11: warning: unused variable 'resources' [-Wunused-variable]
  7944. float resources = std::stof(get(arguments, "resources"));
  7945. ^
  7946. rts/Init.h: In member function 'Wall Init::getWall(const string&) const':
  7947. rts/Init.h:788:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7948. re]
  7949. for (int i = 1; i < args.size(); ++i)
  7950. ^
  7951. rts/Init.h:801:27: error: 'stof' is not a member of 'std'
  7952. float width = std::stof(get(arguments, "width"));
  7953. ^
  7954. rts/Init.h:802:27: error: 'stof' is not a member of 'std'
  7955. float height = std::stof(get(arguments, "height"));
  7956. ^
  7957. rts/Init.h:807:50: error: 'stoi' is not a member of 'std'
  7958. WallType type = static_cast<WallType>(std::stoi(get(arguments, "type")));
  7959. ^
  7960. rts/Init.h:813:30: error: 'stoi' is not a member of 'std'
  7961. wall.canBeSeenThrough_ = std::stoi(get(arguments, "canBeSeenThrough"));
  7962. ^
  7963. rts/Init.h:814:31: error: 'stoi' is not a member of 'std'
  7964. wall.canBeMovedThrough_ = std::stoi(get(arguments, "canBeMovedThrough"));
  7965. ^
  7966. rts/Init.h:815:28: error: 'stoi' is not a member of 'std'
  7967. wall.canBeDestroyed_ = std::stoi(get(arguments, "canBeDestroyed"));
  7968. ^
  7969. rts/Init.h:816:37: error: 'stoi' is not a member of 'std'
  7970. wall.canBePartiallyDestroyed_ = std::stoi(get(arguments, "canBePartiallyDestroyed"));
  7971. ^
  7972. rts/Init.h:817:23: error: 'stof' is not a member of 'std'
  7973. wall.hitPoints_ = std::stof(get(arguments, "hitPoints"));
  7974. ^
  7975. rts/Init.h: In member function 'std::vector<Wall*> Init::getWalls(const string&) const':
  7976. rts/Init.h:848:23: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7977. re]
  7978. for (int i = 1; i < args.size(); ++i)
  7979. ^
  7980. rts/Init.h:852:24: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  7981. re]
  7982. for (int j = 0; j < dataSet.size(); ++j)
  7983. ^
  7984. rts/Init.h:859:13: error: 'stof' is not a member of 'std'
  7985. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  7986. texture_));
  7987. ^
  7988. rts/Init.h:859:33: error: 'stof' is not a member of 'std'
  7989. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  7990. texture_));
  7991. ^
  7992. rts/Init.h:859:53: error: 'stof' is not a member of 'std'
  7993. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  7994. texture_));
  7995. ^
  7996. rts/Init.h:859:73: error: 'stof' is not a member of 'std'
  7997. Rect(std::stof(data[0]), std::stof(data[1]), std::stof(data[2]), std::stof(data[3])), wall-
  7998. texture_));
  7999. ^
  8000. rts/Init.h: In member function 'Faction Init::getFaction(const string&) const':
  8001. rts/Init.h:888:22: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  8002. re]
  8003. for (int i = 1; i < args.size(); ++i)
  8004. ^
  8005. rts/Init.h:900:35: error: 'stoi' is not a member of 'std'
  8006. int numberOfResourceTypes = std::stoi(get(arguments, "numberOfResourceTypes"));
  8007. ^
  8008. rts/Init.h:901:30: error: 'stof' is not a member of 'std'
  8009. float maxSupply = std::stof(get(arguments, "maxSupply"));
  8010. ^
  8011. rts/Init.h:902:32: error: 'stof' is not a member of 'std'
  8012. float civilianFavor = std::stof(get(arguments, "civilianFavor"));
  8013. ^
  8014. rts/Init.h:903:55: error: 'stoi' is not a member of 'std'
  8015. FactionType type = static_cast<FactionType>(std::stoi(get(arguments, "type")));
  8016. ^
  8017. rts/Init.h:912:40: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  8018. re]
  8019. if (currentResourcesstring.size() > i)
  8020. ^
  8021. rts/Init.h:914:34: error: 'stof' is not a member of 'std'
  8022. currentResources.push_back(std::stof(currentResourcesstring[i]));
  8023. ^
  8024. rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allUnits() const':
  8025. rts/Init.h:947:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  8026. for (auto const& element : valueMap)
  8027. ^
  8028. rts/Init.h:947:30: error: range-based 'for' loops are not allowed in C++98 mode
  8029. for (auto const& element : valueMap)
  8030. ^
  8031. rts/Init.h:949:16: error: request for member 'second' in 'element', which is of non-class type 'con
  8032. t int'
  8033. if (element.second.compare(0, 4, "Unit") == 0)
  8034. ^
  8035. rts/Init.h:951:30: error: request for member 'first' in 'element', which is of non-class type 'cons
  8036. int'
  8037. result.push_back(element.first);
  8038. ^
  8039. rts/Init.h: In member function 'std::vector<std::basic_string<char> > Init::allWalls() const':
  8040. rts/Init.h:961:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  8041. for (auto const& element : valueMap)
  8042. ^
  8043. rts/Init.h:961:30: error: range-based 'for' loops are not allowed in C++98 mode
  8044. for (auto const& element : valueMap)
  8045. ^
  8046. rts/Init.h:963:16: error: request for member 'second' in 'element', which is of non-class type 'con
  8047. t int'
  8048. if (element.second.compare(0, 4, "Wall") == 0)
  8049. ^
  8050. rts/Init.h:965:30: error: request for member 'first' in 'element', which is of non-class type 'cons
  8051. int'
  8052. result.push_back(element.first);
  8053. ^
  8054. In file included from rts/general/Units.h:29:0,
  8055. from rts/Game.h:3,
  8056. from rts/Run.h:31,
  8057. from rts/Run.cpp:26:
  8058. rts/Hotkeys.h: At global scope:
  8059. rts/Hotkeys.h:133:6: error: 'unordered_map' in namespace 'std' does not name a template type
  8060. std::unordered_map<Hotkey, vector<Function>> hotkeys_;
  8061. ^
  8062. rts/Hotkeys.h: In constructor 'Hotkeys::Hotkeys(std::string)':
  8063. rts/Hotkeys.h:16:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  8064. for (auto const& p : config.valueMap)
  8065. ^
  8066. rts/Hotkeys.h:16:24: error: range-based 'for' loops are not allowed in C++98 mode
  8067. for (auto const& p : config.valueMap)
  8068. ^
  8069. rts/Hotkeys.h:18:46: error: request for member 'second' in 'p', which is of non-class type 'const i
  8070. t'
  8071. vector<string> arguments = config.split(p.second, ' ');
  8072. ^
  8073. rts/Hotkeys.h:22:46: error: request for member 'first' in 'p', which is of non-class type 'const in
  8074. '
  8075. Function function = config.getFunction(p.first);
  8076. ^
  8077. rts/Hotkeys.h:23:23: warning: comparison between signed and unsigned integer expressions [-Wsign-co
  8078. pare]
  8079. for (int i = 1; i < arguments.size(); ++i)
  8080. ^
  8081. rts/Hotkeys.h:32:25: warning: comparison between signed and unsigned integer expressions [-Wsign-co
  8082. pare]
  8083. for (int i = 0; i < hotkeysstring.size(); ++i)
  8084. ^
  8085. rts/Hotkeys.h:114:24: warning: comparison between signed and unsigned integer expressions [-Wsign-c
  8086. mpare]
  8087. for (int i = 0; i < hotkeys.size(); ++i)
  8088. ^
  8089. rts/Hotkeys.h:117:11: error: 'hotkeys_' was not declared in this scope
  8090. if (hotkeys_.count(hotkey) == 0)
  8091. ^
  8092. rts/Hotkeys.h:126:7: error: 'hotkeys_' was not declared in this scope
  8093. hotkeys_[hotkey].push_back(function);
  8094. ^
  8095. In file included from rts/general/Units.h:31:0,
  8096. from rts/Game.h:3,
  8097. from rts/Run.h:31,
  8098. from rts/Run.cpp:26:
  8099. rts/general/Terrain.h: In member function 'int Terrain::findTile(f2)':
  8100. rts/general/Terrain.h:17:21: warning: comparison between signed and unsigned integer expressions [-
  8101. sign-compare]
  8102. for (int i = 0; i < objects_.size(); ++i)
  8103. ^
  8104. In file included from rts/general/Units.h:33:0,
  8105. from rts/Game.h:3,
  8106. from rts/Run.h:31,
  8107. from rts/Run.cpp:26:
  8108. rts/general/UI.h: In member function 'int UI::hovered(f2)':
  8109. rts/general/UI.h:15:21: warning: comparison between signed and unsigned integer expressions [-Wsign
  8110. compare]
  8111. for (int i = 0; i < UIElements_.size(); ++i)
  8112. ^
  8113. rts/general/UI.h: In member function 'void UI::setQuad(sf::VertexArray*)':
  8114. rts/general/UI.h:27:21: warning: comparison between signed and unsigned integer expressions [-Wsign
  8115. compare]
  8116. for (int i = 0; i < UIElements_.size(); ++i)
  8117. ^
  8118. rts/general/UI.h: In member function 'void UI::drawText()':
  8119. rts/general/UI.h:35:21: warning: comparison between signed and unsigned integer expressions [-Wsign
  8120. compare]
  8121. for (int i = 0; i < UITextElements_.size(); ++i)
  8122. ^
  8123. In file included from rts/general/Units.h:39:0,
  8124. from rts/Game.h:3,
  8125. from rts/Run.h:31,
  8126. from rts/Run.cpp:26:
  8127. rts/general/EditorAction.h: At global scope:
  8128. rts/general/EditorAction.h:40:41: warning: non-static data member initializers only available with
  8129. std=c++11 or -std=gnu++11
  8130. vector<f2> unitsDisabled_ = vector<f2>(0);
  8131. ^
  8132. rts/general/EditorAction.h:41:43: warning: non-static data member initializers only available with
  8133. std=c++11 or -std=gnu++11
  8134. vector<int> wallsDisabled_ = vector<int>(0);
  8135. ^
  8136. rts/general/EditorAction.h:42:40: warning: non-static data member initializers only available with
  8137. std=c++11 or -std=gnu++11
  8138. vector<f2> unitsEnabled_ = vector<f2>(0);
  8139. ^
  8140. rts/general/EditorAction.h:43:42: warning: non-static data member initializers only available with
  8141. std=c++11 or -std=gnu++11
  8142. vector<int> wallsEnabled_ = vector<int>(0);
  8143. ^
  8144. In file included from rts/Game.h:3:0,
  8145. from rts/Run.h:31,
  8146. from rts/Run.cpp:26:
  8147. rts/general/Units.h:85:204: error: 'function' in namespace 'std' does not name a template type
  8148. f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
  8149. 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
  8150. td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
  8151.  
  8152.  
  8153. ^
  8154. rts/general/Units.h:85:212: error: expected ',' or '...' before '<' token
  8155. f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
  8156. 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
  8157. td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
  8158.  
  8159.  
  8160. ^
  8161. rts/general/Units.h:147:7: error: 'unordered_map' in namespace 'std' does not name a template type
  8162. std::unordered_map<int, Unit*>::iterator kill(f2 unit, bool deleteWalls = false);
  8163. ^
  8164. rts/general/Units.h:218:70: error: '>>' should be '> >' within a nested template argument list
  8165. void setFogTries(const f2& center, float radius, vector<vector<float>> lines, sf::VertexArray* ve
  8166. tices);
  8167. ^
  8168. rts/general/Units.h:257:8: error: 'unordered_map' is not a member of 'std'
  8169. vector<std::unordered_map<int, Unit*>> units_;
  8170. ^
  8171. rts/general/Units.h:257:8: error: 'unordered_map' is not a member of 'std'
  8172. rts/general/Units.h:257:40: error: template argument 1 is invalid
  8173. vector<std::unordered_map<int, Unit*>> units_;
  8174. ^
  8175. rts/general/Units.h:257:40: error: template argument 2 is invalid
  8176. rts/general/Units.h:258:15: error: 'unordered_map' is not a member of 'std'
  8177. vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
  8178. ^
  8179. rts/general/Units.h:258:15: error: 'unordered_map' is not a member of 'std'
  8180. rts/general/Units.h:258:46: error: template argument 1 is invalid
  8181. vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
  8182. ^
  8183. rts/general/Units.h:258:46: error: template argument 2 is invalid
  8184. rts/general/Units.h:258:48: error: template argument 1 is invalid
  8185. vector<vector<std::unordered_map<int, Unit*>>> visibleUnits_;
  8186. ^
  8187. rts/general/Units.h:258:48: error: template argument 2 is invalid
  8188. rts/general/Units.h:264:34: error: '>>' should be '> >' within a nested template argument list
  8189. vector<vector<vector<vector<Unit*>>>> unitsGrid_;
  8190. ^
  8191. rts/general/Units.h:264:36: error: '>>' should be '> >' within a nested template argument list
  8192. vector<vector<vector<vector<Unit*>>>> unitsGrid_;
  8193. ^
  8194. rts/general/Units.h:268:23: error: '>>' should be '> >' within a nested template argument list
  8195. vector<vector<relation>> relationTable_;
  8196. ^
  8197. rts/general/Units.h:284:20: error: '>>' should be '> >' within a nested template argument list
  8198. vector<vector<Unit*>> controlGroups_;
  8199. ^
  8200. rts/general/Units.h:286:19: warning: non-static data member initializers only available with -std=c
  8201. +11 or -std=gnu++11
  8202. long IDCounter_ = 0;
  8203. ^
  8204. rts/general/Units.h:290:38: warning: non-static data member initializers only available with -std=c
  8205. +11 or -std=gnu++11
  8206. string selectedSubGroupType_ = "none";
  8207. ^
  8208. rts/general/Units.h:299:30: warning: non-static data member initializers only available with -std=c
  8209. +11 or -std=gnu++11
  8210. bool creatingSelectionBox_ = false;
  8211. ^
  8212. rts/general/Units.h:310:27: warning: non-static data member initializers only available with -std=c
  8213. +11 or -std=gnu++11
  8214. bool updatePathfinding_ = false;
  8215. ^
  8216. rts/general/Units.h:339:6: error: 'unordered_map' in namespace 'std' does not name a template type
  8217. std::unordered_map<int, Wall*> walls_;
  8218. ^
  8219. rts/general/Units.h:340:23: warning: non-static data member initializers only available with -std=c
  8220. +11 or -std=gnu++11
  8221. long wallIDCounter_ = 0;
  8222. ^
  8223. rts/general/Units.h:342:20: error: '>>' should be '> >' within a nested template argument list
  8224. vector<vector<float>> anglesSet_;
  8225. ^
  8226. rts/general/Units.h:343:20: error: '>>' should be '> >' within a nested template argument list
  8227. vector<vector<float>> anglesSetOriginal_;
  8228. ^
  8229. rts/general/Units.h:348:24: warning: non-static data member initializers only available with -std=c
  8230. +11 or -std=gnu++11
  8231. GameState gameState_ = DEFAULT;
  8232. ^
  8233. rts/general/Units.h:354:19: warning: non-static data member initializers only available with -std=c
  8234. +11 or -std=gnu++11
  8235. int editorTeam_ = 0;
  8236. ^
  8237. rts/general/Units.h:359:27: warning: non-static data member initializers only available with -std=c
  8238. +11 or -std=gnu++11
  8239. int editorActionsIndex_ = 0;
  8240. ^
  8241. rts/general/Units.h:361:23: warning: non-static data member initializers only available with -std=c
  8242. +11 or -std=gnu++11
  8243. bool abilityCursor_ = false;
  8244. ^
  8245. In file included from rts/Game.h:3:0,
  8246. from rts/Run.h:31,
  8247. from rts/Run.cpp:26:
  8248. rts/general/Units.h:85:5: error: default argument missing for parameter 9 of 'f2 Units::closestUnit
  8249. f2, float, std::vector<int>, int, f2, std::string, bool, relation, int)'
  8250. f2 closestUnit(f2 position, float radius, vector<int> teams = vector<int>(0), int currentTeam = -
  8251. 1, f2 exclude = f2(- 1, - 1), string name = "any", bool visible = false, relation rel = ANY, const
  8252. td::function<bool (Unit*, Units*)>& f = [](Unit* a, Units* b) {return true;});
  8253. ^
  8254. In file included from rts/Game.h:3:0,
  8255. from rts/Run.h:31,
  8256. from rts/Run.cpp:26:
  8257. rts/general/Units.h: In member function 'Unit* Units::getUnit(f2)':
  8258. rts/general/Units.h:91:38: error: 'units_' was not declared in this scope
  8259. Unit* getUnit(f2 unitIndex) {return units_[unitIndex.x].at(unitIndex.y);}
  8260. ^
  8261. In file included from rts/Run.cpp:26:0:
  8262. rts/Run.h: At global scope:
  8263. rts/Run.h:89:24: warning: non-static data member initializers only available with -std=c++11 or -st
  8264. =gnu++11
  8265. bool addToSelection_ = false;
  8266. ^
  8267. rts/Run.h:90:28: warning: non-static data member initializers only available with -std=c++11 or -st
  8268. =gnu++11
  8269. f2 mousePosition_ = f2(0, 0);
  8270. ^
  8271. rts/Run.h:106:34: error: '>>' should be '> >' within a nested template argument list
  8272. std::list<std::pair<Hotkey, float>> hotkeyList_;
  8273. ^
  8274. rts/Run.h:111:19: warning: non-static data member initializers only available with -std=c++11 or -s
  8275. d=gnu++11
  8276. bool mouseLeft_ = false;
  8277. ^
  8278. rts/Run.h:112:76: warning: non-static data member initializers only available with -std=c++11 or -s
  8279. d=gnu++11
  8280. sf::VertexArray miniMapVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
  8281. ^
  8282. rts/Run.h:112:51: error: expected primary-expression before '(' token
  8283. sf::VertexArray miniMapVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
  8284. ^
  8285. rts/Run.h:112:56: error: 'sf::PrimitiveType' is not a class or namespace
  8286. sf::VertexArray miniMapVertices_ = sf::VertexArray(sf::PrimitiveType::Quads);
  8287. ^
  8288. rts/Run.cpp: In constructor 'Run::Run(Game*)':
  8289. rts/Run.cpp:68:56: error: 'GameState' is not a class or namespace
  8290. game_->units_ = new Units(&renderTexture_, &texture_, GameState::DEFAULT, &window_, &mainView_);
  8291. ^
  8292. rts/Run.cpp: In member function 'void Run::mainLoop()':
  8293. rts/Run.cpp:104:94: error: in C++98 'buttons' must be initialized by constructor, not by '{...}'
  8294. std::vector<string> buttons = {"Start game", "building editor", "option3", "option4", "quit"};
  8295. ^
  8296. rts/Run.cpp:104:94: error: could not convert '{"Start game", "building editor", "option3", "option4
  8297. , "quit"}' from '<brace-enclosed initializer list>' to 'std::vector<std::basic_string<char> >'
  8298. rts/Run.cpp: In member function 'Hotkey Run::parseInputEvent(sf::Event, Menu*)':
  8299. rts/Run.cpp:122:2: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  8300. auto it = hotkeyList_.begin();
  8301. ^
  8302. rts/Run.cpp:122:7: error: 'it' does not name a type
  8303. auto it = hotkeyList_.begin();
  8304. ^
  8305. rts/Run.cpp:124:9: error: 'it' was not declared in this scope
  8306. while (it != hotkeyList_.end())
  8307. ^
  8308. rts/Run.cpp:150:35: error: 'GameState' is not a class or namespace
  8309. if (game_->units_->gameState_ == GameState::BUILDING_EDITOR)
  8310. ^
  8311. rts/Run.cpp:156:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  8312. for ( auto it = hotkeyList_.begin(); it != hotkeyList_.end(); ++it )
  8313. ^
  8314. rts/Run.cpp:156:13: error: 'it' does not name a type
  8315. for ( auto it = hotkeyList_.begin(); it != hotkeyList_.end(); ++it )
  8316. ^
  8317. rts/Run.cpp:156:39: error: expected ';' before 'it'
  8318. for ( auto it = hotkeyList_.begin(); it != hotkeyList_.end(); ++it )
  8319. ^
  8320. rts/Run.cpp:156:39: error: 'it' was not declared in this scope
  8321. rts/Run.cpp:170:30: error: 'class Hotkeys' has no member named 'hotkeys_'
  8322. if (game_->units_->hotkeys_.hotkeys_.count(hotkey) > 0)
  8323. ^
  8324. rts/Run.cpp:173:47: error: 'class Hotkeys' has no member named 'hotkeys_'
  8325. for (int i = 0; i < game_->units_->hotkeys_.hotkeys_[hotkey].size(); ++i)
  8326. ^
  8327. rts/Run.cpp:175:48: error: 'class Hotkeys' has no member named 'hotkeys_'
  8328. Function function = game_->units_->hotkeys_.hotkeys_.at(hotkey)[i];
  8329. ^
  8330. rts/Run.cpp:180:11: error: 'FunctionType' is not a class or namespace
  8331. case FunctionType::MOVE_CAMERA:
  8332. ^
  8333. rts/Run.cpp:185:11: error: 'FunctionType' is not a class or namespace
  8334. case FunctionType::SELECT:
  8335. ^
  8336. rts/Run.cpp:196:11: error: 'FunctionType' is not a class or namespace
  8337. case FunctionType::SELECT_ADD:
  8338. ^
  8339. rts/Run.cpp:208:11: error: 'FunctionType' is not a class or namespace
  8340. case FunctionType::SELECT_STOP:
  8341. ^
  8342. rts/Run.cpp:225:11: error: 'FunctionType' is not a class or namespace
  8343. case FunctionType::MENU:
  8344. ^
  8345. rts/Run.cpp:231:11: error: 'FunctionType' is not a class or namespace
  8346. case FunctionType::MOVE_CAMERA_BY_MINIMAP:
  8347. ^
  8348. rts/Run.cpp:178:12: warning: enumeration value 'NON_FUNCTION' not handled in switch [-Wswitch]
  8349. switch (function.type_)
  8350. ^
  8351. rts/Run.cpp:178:12: warning: enumeration value 'ORDER_FUNCTION' not handled in switch [-Wswitch]
  8352. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION1' not handled in switch [-Wswitch]
  8353. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION2' not handled in switch [-Wswitch]
  8354. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION3' not handled in switch [-Wswitch]
  8355. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION4' not handled in switch [-Wswitch]
  8356. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION5' not handled in switch [-Wswitch]
  8357. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION6' not handled in switch [-Wswitch]
  8358. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION7' not handled in switch [-Wswitch]
  8359. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION8' not handled in switch [-Wswitch]
  8360. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION9' not handled in switch [-Wswitch]
  8361. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION10' not handled in switch [-Wswitch]
  8362. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION11' not handled in switch [-Wswitch]
  8363. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION12' not handled in switch [-Wswitch]
  8364. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION13' not handled in switch [-Wswitch]
  8365. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION14' not handled in switch [-Wswitch]
  8366. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION15' not handled in switch [-Wswitch]
  8367. rts/Run.cpp:178:12: warning: enumeration value 'FUNCTION16' not handled in switch [-Wswitch]
  8368. rts/Run.cpp:178:12: warning: enumeration value 'CONTROL_ALL' not handled in switch [-Wswitch]
  8369. rts/Run.cpp:178:12: warning: enumeration value 'SELECT_TYPE' not handled in switch [-Wswitch]
  8370. rts/Run.cpp:178:12: warning: enumeration value 'SELECT' not handled in switch [-Wswitch]
  8371. rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA' not handled in switch [-Wswitch]
  8372. rts/Run.cpp:178:12: warning: enumeration value 'PAN_DRAG' not handled in switch [-Wswitch]
  8373. rts/Run.cpp:178:12: warning: enumeration value 'SELECT_STOP' not handled in switch [-Wswitch]
  8374. rts/Run.cpp:178:12: warning: enumeration value 'MENU' not handled in switch [-Wswitch]
  8375. rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_UP' not handled in switch [-Wswitch]
  8376. rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_LEFT' not handled in switch [-Wswitch]
  8377. rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_DOWN' not handled in switch [-Wswitch]
  8378. rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_RIGHT' not handled in switch [-Wswitch]
  8379. rts/Run.cpp:178:12: warning: enumeration value 'MOVE_CAMERA_BY_MINIMAP' not handled in switch [-Wsw
  8380. tch]
  8381. rts/Run.cpp:178:12: warning: enumeration value 'DESELECT_UNITCARD' not handled in switch [-Wswitch]
  8382. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_SELECTION' not handled in switch [-Wswitc
  8383. ]
  8384. rts/Run.cpp:178:12: warning: enumeration value 'SELECT_UNITCARD' not handled in switch [-Wswitch]
  8385. rts/Run.cpp:178:12: warning: enumeration value 'SELECTGROUP_UNITCARD' not handled in switch [-Wswit
  8386. h]
  8387. rts/Run.cpp:178:12: warning: enumeration value 'DESELECTGROUP_UNITCARD' not handled in switch [-Wsw
  8388. tch]
  8389. rts/Run.cpp:178:12: warning: enumeration value 'SELECT_ADD' not handled in switch [-Wswitch]
  8390. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP1' not handled in switch [-Wswi
  8391. ch]
  8392. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP2' not handled in switch [-Wswi
  8393. ch]
  8394. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP3' not handled in switch [-Wswi
  8395. ch]
  8396. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP4' not handled in switch [-Wswi
  8397. ch]
  8398. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP5' not handled in switch [-Wswi
  8399. ch]
  8400. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP6' not handled in switch [-Wswi
  8401. ch]
  8402. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP7' not handled in switch [-Wswi
  8403. ch]
  8404. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP8' not handled in switch [-Wswi
  8405. ch]
  8406. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP9' not handled in switch [-Wswi
  8407. ch]
  8408. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP10' not handled in switch [-Wsw
  8409. tch]
  8410. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP11' not handled in switch [-Wsw
  8411. tch]
  8412. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP12' not handled in switch [-Wsw
  8413. tch]
  8414. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP13' not handled in switch [-Wsw
  8415. tch]
  8416. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP14' not handled in switch [-Wsw
  8417. tch]
  8418. rts/Run.cpp:178:12: warning: enumeration value 'CREATE_CONTROL_GROUP15' not handled in switch [-Wsw
  8419. tch]
  8420. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP1' not handled in switch [-Wswi
  8421. ch]
  8422. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP2' not handled in switch [-Wswi
  8423. ch]
  8424. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP3' not handled in switch [-Wswi
  8425. ch]
  8426. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP4' not handled in switch [-Wswi
  8427. ch]
  8428. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP5' not handled in switch [-Wswi
  8429. ch]
  8430. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP6' not handled in switch [-Wswi
  8431. ch]
  8432. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP7' not handled in switch [-Wswi
  8433. ch]
  8434. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP8' not handled in switch [-Wswi
  8435. ch]
  8436. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP9' not handled in switch [-Wswi
  8437. ch]
  8438. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP10' not handled in switch [-Wsw
  8439. tch]
  8440. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP11' not handled in switch [-Wsw
  8441. tch]
  8442. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP12' not handled in switch [-Wsw
  8443. tch]
  8444. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP13' not handled in switch [-Wsw
  8445. tch]
  8446. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP14' not handled in switch [-Wsw
  8447. tch]
  8448. rts/Run.cpp:178:12: warning: enumeration value 'RECALL_CONTROL_GROUP15' not handled in switch [-Wsw
  8449. tch]
  8450. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP1' not handled in switch [-W
  8451. witch]
  8452. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP2' not handled in switch [-W
  8453. witch]
  8454. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP3' not handled in switch [-W
  8455. witch]
  8456. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP4' not handled in switch [-W
  8457. witch]
  8458. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP5' not handled in switch [-W
  8459. witch]
  8460. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP6' not handled in switch [-W
  8461. witch]
  8462. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP7' not handled in switch [-W
  8463. witch]
  8464. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP8' not handled in switch [-W
  8465. witch]
  8466. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP9' not handled in switch [-W
  8467. witch]
  8468. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP10' not handled in switch [-
  8469. switch]
  8470. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP11' not handled in switch [-
  8471. switch]
  8472. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP12' not handled in switch [-
  8473. switch]
  8474. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP13' not handled in switch [-
  8475. switch]
  8476. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP14' not handled in switch [-
  8477. switch]
  8478. rts/Run.cpp:178:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP15' not handled in switch [-
  8479. switch]
  8480. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP1' not handled in switch [-Wswi
  8481. ch]
  8482. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP2' not handled in switch [-Wswi
  8483. ch]
  8484. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP3' not handled in switch [-Wswi
  8485. ch]
  8486. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP4' not handled in switch [-Wswi
  8487. ch]
  8488. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP5' not handled in switch [-Wswi
  8489. ch]
  8490. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP6' not handled in switch [-Wswi
  8491. ch]
  8492. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP7' not handled in switch [-Wswi
  8493. ch]
  8494. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP8' not handled in switch [-Wswi
  8495. ch]
  8496. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP9' not handled in switch [-Wswi
  8497. ch]
  8498. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP10' not handled in switch [-Wsw
  8499. tch]
  8500. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP11' not handled in switch [-Wsw
  8501. tch]
  8502. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP12' not handled in switch [-Wsw
  8503. tch]
  8504. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP13' not handled in switch [-Wsw
  8505. tch]
  8506. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP14' not handled in switch [-Wsw
  8507. tch]
  8508. rts/Run.cpp:178:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP15' not handled in switch [-Wsw
  8509. tch]
  8510. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION1' not handled in switch [-Wswitch]
  8511. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION2' not handled in switch [-Wswitch]
  8512. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION3' not handled in switch [-Wswitch]
  8513. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION4' not handled in switch [-Wswitch]
  8514. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION5' not handled in switch [-Wswitch]
  8515. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION6' not handled in switch [-Wswitch]
  8516. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION7' not handled in switch [-Wswitch]
  8517. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION8' not handled in switch [-Wswitch]
  8518. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION9' not handled in switch [-Wswitch]
  8519. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION10' not handled in switch [-Wswitch]
  8520. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION11' not handled in switch [-Wswitch]
  8521. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION12' not handled in switch [-Wswitch]
  8522. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION13' not handled in switch [-Wswitch]
  8523. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION14' not handled in switch [-Wswitch]
  8524. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION15' not handled in switch [-Wswitch]
  8525. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_FUNCTION16' not handled in switch [-Wswitch]
  8526. rts/Run.cpp:178:12: warning: enumeration value 'QUEU_ORDER' not handled in switch [-Wswitch]
  8527. rts/Run.cpp:178:12: warning: enumeration value 'CHANGE_SUBSELECTION' not handled in switch [-Wswitc
  8528. ]
  8529. rts/Run.cpp:178:12: warning: enumeration value 'EDGEPAN' not handled in switch [-Wswitch]
  8530. rts/Run.cpp:178:12: warning: enumeration value 'MOUSE_ENTERED' not handled in switch [-Wswitch]
  8531. rts/Run.cpp:178:12: warning: enumeration value 'COMMAND_CARD_COUNTROL' not handled in switch [-Wswi
  8532. ch]
  8533. rts/Run.cpp:178:12: warning: enumeration value 'DELETE' not handled in switch [-Wswitch]
  8534. rts/Run.cpp:178:12: warning: enumeration value 'SAVE' not handled in switch [-Wswitch]
  8535. rts/Run.cpp:178:12: warning: enumeration value 'UNDO' not handled in switch [-Wswitch]
  8536. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION1' not handled in switch [-Wswitch]
  8537. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION2' not handled in switch [-Wswitch]
  8538. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION3' not handled in switch [-Wswitch]
  8539. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION4' not handled in switch [-Wswitch]
  8540. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION5' not handled in switch [-Wswitch]
  8541. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION6' not handled in switch [-Wswitch]
  8542. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION7' not handled in switch [-Wswitch]
  8543. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION8' not handled in switch [-Wswitch]
  8544. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION9' not handled in switch [-Wswitch]
  8545. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION10' not handled in switch [-Wswitch]
  8546. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION11' not handled in switch [-Wswitch]
  8547. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION12' not handled in switch [-Wswitch]
  8548. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION13' not handled in switch [-Wswitch]
  8549. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION14' not handled in switch [-Wswitch]
  8550. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION15' not handled in switch [-Wswitch]
  8551. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_FUNCTION16' not handled in switch [-Wswitch]
  8552. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION1' not handled in switch [-Wswitc
  8553. ]
  8554. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION2' not handled in switch [-Wswitc
  8555. ]
  8556. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION3' not handled in switch [-Wswitc
  8557. ]
  8558. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION4' not handled in switch [-Wswitc
  8559. ]
  8560. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION5' not handled in switch [-Wswitc
  8561. ]
  8562. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION6' not handled in switch [-Wswitc
  8563. ]
  8564. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION7' not handled in switch [-Wswitc
  8565. ]
  8566. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION8' not handled in switch [-Wswitc
  8567. ]
  8568. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION9' not handled in switch [-Wswitc
  8569. ]
  8570. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION10' not handled in switch [-Wswit
  8571. h]
  8572. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION11' not handled in switch [-Wswit
  8573. h]
  8574. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION12' not handled in switch [-Wswit
  8575. h]
  8576. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION13' not handled in switch [-Wswit
  8577. h]
  8578. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION14' not handled in switch [-Wswit
  8579. h]
  8580. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION15' not handled in switch [-Wswit
  8581. h]
  8582. rts/Run.cpp:178:12: warning: enumeration value 'SLOW_QUEU_FUNCTION16' not handled in switch [-Wswit
  8583. h]
  8584. rts/Run.cpp:178:12: warning: enumeration value 'COMPLETE_ORDER' not handled in switch [-Wswitch]
  8585. rts/Run.cpp:178:12: warning: enumeration value 'COMMAND_CARD_CLICKED' not handled in switch [-Wswit
  8586. h]
  8587. rts/Run.cpp:178:12: warning: enumeration value 'SAVE_MAP' not handled in switch [-Wswitch]
  8588. rts/Run.cpp:178:12: warning: enumeration value 'REDO' not handled in switch [-Wswitch]
  8589. rts/Run.cpp: In member function 'void Run::parseInputRealtime()':
  8590. rts/Run.cpp:260:30: error: 'class Hotkeys' has no member named 'hotkeys_'
  8591. if (game_->units_->hotkeys_.hotkeys_.count(hotkey) > 0)
  8592. ^
  8593. rts/Run.cpp:262:47: error: 'class Hotkeys' has no member named 'hotkeys_'
  8594. for (int i = 0; i < game_->units_->hotkeys_.hotkeys_[hotkey].size(); ++i)
  8595. ^
  8596. rts/Run.cpp:264:48: error: 'class Hotkeys' has no member named 'hotkeys_'
  8597. Function function = game_->units_->hotkeys_.hotkeys_.at(hotkey)[i];
  8598. ^
  8599. rts/Run.cpp:269:11: error: 'FunctionType' is not a class or namespace
  8600. case FunctionType::PAN_DRAG:
  8601. ^
  8602. rts/Run.cpp:278:11: error: 'FunctionType' is not a class or namespace
  8603. case FunctionType::MOVE_CAMERA_UP:
  8604. ^
  8605. rts/Run.cpp:283:11: error: 'FunctionType' is not a class or namespace
  8606. case FunctionType::MOVE_CAMERA_LEFT:
  8607. ^
  8608. rts/Run.cpp:288:11: error: 'FunctionType' is not a class or namespace
  8609. case FunctionType::MOVE_CAMERA_DOWN:
  8610. ^
  8611. rts/Run.cpp:293:11: error: 'FunctionType' is not a class or namespace
  8612. case FunctionType::MOVE_CAMERA_RIGHT:
  8613. ^
  8614. rts/Run.cpp:267:12: warning: enumeration value 'NON_FUNCTION' not handled in switch [-Wswitch]
  8615. switch (function.type_)
  8616. ^
  8617. rts/Run.cpp:267:12: warning: enumeration value 'ORDER_FUNCTION' not handled in switch [-Wswitch]
  8618. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION1' not handled in switch [-Wswitch]
  8619. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION2' not handled in switch [-Wswitch]
  8620. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION3' not handled in switch [-Wswitch]
  8621. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION4' not handled in switch [-Wswitch]
  8622. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION5' not handled in switch [-Wswitch]
  8623. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION6' not handled in switch [-Wswitch]
  8624. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION7' not handled in switch [-Wswitch]
  8625. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION8' not handled in switch [-Wswitch]
  8626. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION9' not handled in switch [-Wswitch]
  8627. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION10' not handled in switch [-Wswitch]
  8628. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION11' not handled in switch [-Wswitch]
  8629. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION12' not handled in switch [-Wswitch]
  8630. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION13' not handled in switch [-Wswitch]
  8631. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION14' not handled in switch [-Wswitch]
  8632. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION15' not handled in switch [-Wswitch]
  8633. rts/Run.cpp:267:12: warning: enumeration value 'FUNCTION16' not handled in switch [-Wswitch]
  8634. rts/Run.cpp:267:12: warning: enumeration value 'CONTROL_ALL' not handled in switch [-Wswitch]
  8635. rts/Run.cpp:267:12: warning: enumeration value 'SELECT_TYPE' not handled in switch [-Wswitch]
  8636. rts/Run.cpp:267:12: warning: enumeration value 'SELECT' not handled in switch [-Wswitch]
  8637. rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA' not handled in switch [-Wswitch]
  8638. rts/Run.cpp:267:12: warning: enumeration value 'PAN_DRAG' not handled in switch [-Wswitch]
  8639. rts/Run.cpp:267:12: warning: enumeration value 'SELECT_STOP' not handled in switch [-Wswitch]
  8640. rts/Run.cpp:267:12: warning: enumeration value 'MENU' not handled in switch [-Wswitch]
  8641. rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_UP' not handled in switch [-Wswitch]
  8642. rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_LEFT' not handled in switch [-Wswitch]
  8643. rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_DOWN' not handled in switch [-Wswitch]
  8644. rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_RIGHT' not handled in switch [-Wswitch]
  8645. rts/Run.cpp:267:12: warning: enumeration value 'MOVE_CAMERA_BY_MINIMAP' not handled in switch [-Wsw
  8646. tch]
  8647. rts/Run.cpp:267:12: warning: enumeration value 'DESELECT_UNITCARD' not handled in switch [-Wswitch]
  8648. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_SELECTION' not handled in switch [-Wswitc
  8649. ]
  8650. rts/Run.cpp:267:12: warning: enumeration value 'SELECT_UNITCARD' not handled in switch [-Wswitch]
  8651. rts/Run.cpp:267:12: warning: enumeration value 'SELECTGROUP_UNITCARD' not handled in switch [-Wswit
  8652. h]
  8653. rts/Run.cpp:267:12: warning: enumeration value 'DESELECTGROUP_UNITCARD' not handled in switch [-Wsw
  8654. tch]
  8655. rts/Run.cpp:267:12: warning: enumeration value 'SELECT_ADD' not handled in switch [-Wswitch]
  8656. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP1' not handled in switch [-Wswi
  8657. ch]
  8658. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP2' not handled in switch [-Wswi
  8659. ch]
  8660. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP3' not handled in switch [-Wswi
  8661. ch]
  8662. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP4' not handled in switch [-Wswi
  8663. ch]
  8664. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP5' not handled in switch [-Wswi
  8665. ch]
  8666. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP6' not handled in switch [-Wswi
  8667. ch]
  8668. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP7' not handled in switch [-Wswi
  8669. ch]
  8670. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP8' not handled in switch [-Wswi
  8671. ch]
  8672. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP9' not handled in switch [-Wswi
  8673. ch]
  8674. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP10' not handled in switch [-Wsw
  8675. tch]
  8676. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP11' not handled in switch [-Wsw
  8677. tch]
  8678. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP12' not handled in switch [-Wsw
  8679. tch]
  8680. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP13' not handled in switch [-Wsw
  8681. tch]
  8682. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP14' not handled in switch [-Wsw
  8683. tch]
  8684. rts/Run.cpp:267:12: warning: enumeration value 'CREATE_CONTROL_GROUP15' not handled in switch [-Wsw
  8685. tch]
  8686. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP1' not handled in switch [-Wswi
  8687. ch]
  8688. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP2' not handled in switch [-Wswi
  8689. ch]
  8690. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP3' not handled in switch [-Wswi
  8691. ch]
  8692. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP4' not handled in switch [-Wswi
  8693. ch]
  8694. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP5' not handled in switch [-Wswi
  8695. ch]
  8696. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP6' not handled in switch [-Wswi
  8697. ch]
  8698. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP7' not handled in switch [-Wswi
  8699. ch]
  8700. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP8' not handled in switch [-Wswi
  8701. ch]
  8702. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP9' not handled in switch [-Wswi
  8703. ch]
  8704. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP10' not handled in switch [-Wsw
  8705. tch]
  8706. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP11' not handled in switch [-Wsw
  8707. tch]
  8708. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP12' not handled in switch [-Wsw
  8709. tch]
  8710. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP13' not handled in switch [-Wsw
  8711. tch]
  8712. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP14' not handled in switch [-Wsw
  8713. tch]
  8714. rts/Run.cpp:267:12: warning: enumeration value 'RECALL_CONTROL_GROUP15' not handled in switch [-Wsw
  8715. tch]
  8716. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP1' not handled in switch [-W
  8717. witch]
  8718. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP2' not handled in switch [-W
  8719. witch]
  8720. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP3' not handled in switch [-W
  8721. witch]
  8722. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP4' not handled in switch [-W
  8723. witch]
  8724. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP5' not handled in switch [-W
  8725. witch]
  8726. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP6' not handled in switch [-W
  8727. witch]
  8728. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP7' not handled in switch [-W
  8729. witch]
  8730. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP8' not handled in switch [-W
  8731. witch]
  8732. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP9' not handled in switch [-W
  8733. witch]
  8734. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP10' not handled in switch [-
  8735. switch]
  8736. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP11' not handled in switch [-
  8737. switch]
  8738. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP12' not handled in switch [-
  8739. switch]
  8740. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP13' not handled in switch [-
  8741. switch]
  8742. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP14' not handled in switch [-
  8743. switch]
  8744. rts/Run.cpp:267:12: warning: enumeration value 'CENTER_ON_CONTROL_GROUP15' not handled in switch [-
  8745. switch]
  8746. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP1' not handled in switch [-Wswi
  8747. ch]
  8748. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP2' not handled in switch [-Wswi
  8749. ch]
  8750. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP3' not handled in switch [-Wswi
  8751. ch]
  8752. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP4' not handled in switch [-Wswi
  8753. ch]
  8754. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP5' not handled in switch [-Wswi
  8755. ch]
  8756. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP6' not handled in switch [-Wswi
  8757. ch]
  8758. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP7' not handled in switch [-Wswi
  8759. ch]
  8760. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP8' not handled in switch [-Wswi
  8761. ch]
  8762. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP9' not handled in switch [-Wswi
  8763. ch]
  8764. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP10' not handled in switch [-Wsw
  8765. tch]
  8766. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP11' not handled in switch [-Wsw
  8767. tch]
  8768. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP12' not handled in switch [-Wsw
  8769. tch]
  8770. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP13' not handled in switch [-Wsw
  8771. tch]
  8772. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP14' not handled in switch [-Wsw
  8773. tch]
  8774. rts/Run.cpp:267:12: warning: enumeration value 'ADD_TO_CONTROL_GROUP15' not handled in switch [-Wsw
  8775. tch]
  8776. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION1' not handled in switch [-Wswitch]
  8777. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION2' not handled in switch [-Wswitch]
  8778. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION3' not handled in switch [-Wswitch]
  8779. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION4' not handled in switch [-Wswitch]
  8780. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION5' not handled in switch [-Wswitch]
  8781. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION6' not handled in switch [-Wswitch]
  8782. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION7' not handled in switch [-Wswitch]
  8783. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION8' not handled in switch [-Wswitch]
  8784. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION9' not handled in switch [-Wswitch]
  8785. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION10' not handled in switch [-Wswitch]
  8786. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION11' not handled in switch [-Wswitch]
  8787. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION12' not handled in switch [-Wswitch]
  8788. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION13' not handled in switch [-Wswitch]
  8789. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION14' not handled in switch [-Wswitch]
  8790. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION15' not handled in switch [-Wswitch]
  8791. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_FUNCTION16' not handled in switch [-Wswitch]
  8792. rts/Run.cpp:267:12: warning: enumeration value 'QUEU_ORDER' not handled in switch [-Wswitch]
  8793. rts/Run.cpp:267:12: warning: enumeration value 'CHANGE_SUBSELECTION' not handled in switch [-Wswitc
  8794. ]
  8795. rts/Run.cpp:267:12: warning: enumeration value 'EDGEPAN' not handled in switch [-Wswitch]
  8796. rts/Run.cpp:267:12: warning: enumeration value 'MOUSE_ENTERED' not handled in switch [-Wswitch]
  8797. rts/Run.cpp:267:12: warning: enumeration value 'COMMAND_CARD_COUNTROL' not handled in switch [-Wswi
  8798. ch]
  8799. rts/Run.cpp:267:12: warning: enumeration value 'DELETE' not handled in switch [-Wswitch]
  8800. rts/Run.cpp:267:12: warning: enumeration value 'SAVE' not handled in switch [-Wswitch]
  8801. rts/Run.cpp:267:12: warning: enumeration value 'UNDO' not handled in switch [-Wswitch]
  8802. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION1' not handled in switch [-Wswitch]
  8803. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION2' not handled in switch [-Wswitch]
  8804. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION3' not handled in switch [-Wswitch]
  8805. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION4' not handled in switch [-Wswitch]
  8806. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION5' not handled in switch [-Wswitch]
  8807. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION6' not handled in switch [-Wswitch]
  8808. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION7' not handled in switch [-Wswitch]
  8809. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION8' not handled in switch [-Wswitch]
  8810. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION9' not handled in switch [-Wswitch]
  8811. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION10' not handled in switch [-Wswitch]
  8812. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION11' not handled in switch [-Wswitch]
  8813. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION12' not handled in switch [-Wswitch]
  8814. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION13' not handled in switch [-Wswitch]
  8815. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION14' not handled in switch [-Wswitch]
  8816. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION15' not handled in switch [-Wswitch]
  8817. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_FUNCTION16' not handled in switch [-Wswitch]
  8818. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION1' not handled in switch [-Wswitc
  8819. ]
  8820. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION2' not handled in switch [-Wswitc
  8821. ]
  8822. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION3' not handled in switch [-Wswitc
  8823. ]
  8824. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION4' not handled in switch [-Wswitc
  8825. ]
  8826. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION5' not handled in switch [-Wswitc
  8827. ]
  8828. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION6' not handled in switch [-Wswitc
  8829. ]
  8830. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION7' not handled in switch [-Wswitc
  8831. ]
  8832. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION8' not handled in switch [-Wswitc
  8833. ]
  8834. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION9' not handled in switch [-Wswitc
  8835. ]
  8836. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION10' not handled in switch [-Wswit
  8837. h]
  8838. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION11' not handled in switch [-Wswit
  8839. h]
  8840. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION12' not handled in switch [-Wswit
  8841. h]
  8842. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION13' not handled in switch [-Wswit
  8843. h]
  8844. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION14' not handled in switch [-Wswit
  8845. h]
  8846. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION15' not handled in switch [-Wswit
  8847. h]
  8848. rts/Run.cpp:267:12: warning: enumeration value 'SLOW_QUEU_FUNCTION16' not handled in switch [-Wswit
  8849. h]
  8850. rts/Run.cpp:267:12: warning: enumeration value 'COMPLETE_ORDER' not handled in switch [-Wswitch]
  8851. rts/Run.cpp:267:12: warning: enumeration value 'COMMAND_CARD_CLICKED' not handled in switch [-Wswit
  8852. h]
  8853. rts/Run.cpp:267:12: warning: enumeration value 'SAVE_MAP' not handled in switch [-Wswitch]
  8854. rts/Run.cpp:267:12: warning: enumeration value 'REDO' not handled in switch [-Wswitch]
  8855. rts/Run.cpp: In member function 'void Run::gameLoop(Menu*)':
  8856. rts/Run.cpp:318:57: error: 'GameState' is not a class or namespace
  8857. game_->units_ = new Units(&renderTexture_, &texture_, GameState::DEFAULT, &window_, &mainView_);
  8858. ^
  8859. rts/Run.cpp:322:57: error: 'GameState' is not a class or namespace
  8860. game_->units_ = new Units(&renderTexture_, &texture_, GameState::BUILDING_EDITOR, &window_, &mai
  8861. View_);
  8862. ^
  8863. rts/Run.cpp:368:21: error: 'to_string' is not a member of 'std'
  8864. text_.setString (std::to_string(framerate));
  8865. ^
  8866. rts/Run.cpp:357:8: warning: unused variable 'currentTeam' [-Wunused-variable]
  8867. int currentTeam = game_->units_->currentTeam_;
  8868. ^
  8869. rts/Run.cpp: In member function 'void Run::drawBoxFromPoints(f2, f2)':
  8870. rts/Run.cpp:453:38: warning: extended initializer lists only available with -std=c++11 or -std=gnu+
  8871. 11
  8872. createLineBetweenPoints(startPoint, {endPoint.x, startPoint.y}, 3, blackBox).setQuad(&vertices_);
  8873. ^
  8874. rts/Run.cpp:454:38: warning: extended initializer lists only available with -std=c++11 or -std=gnu+
  8875. 11
  8876. createLineBetweenPoints(startPoint, {startPoint.x, endPoint.y}, 3, blackBox).setQuad(&vertices_);
  8877. ^
  8878. rts/Run.cpp:455:36: warning: extended initializer lists only available with -std=c++11 or -std=gnu+
  8879. 11
  8880. createLineBetweenPoints(endPoint, {endPoint.x, startPoint.y}, 3, blackBox).setQuad(&vertices_);
  8881. ^
  8882. rts/Run.cpp:456:36: warning: extended initializer lists only available with -std=c++11 or -std=gnu+
  8883. 11
  8884. createLineBetweenPoints(endPoint, {startPoint.x, endPoint.y}, 3, blackBox).setQuad(&vertices_);
  8885. ^
  8886. rts/Run.cpp:450:8: warning: unused variable 'width' [-Wunused-variable]
  8887. float width = startPoint.x - endPoint.x;
  8888. ^
  8889. rts/Run.cpp:451:8: warning: unused variable 'height' [-Wunused-variable]
  8890. float height = startPoint.y - endPoint.y;
  8891. ^
  8892. rts/Run.cpp: In member function 'void Run::setMiniMapQuads(sf::VertexArray*)':
  8893. rts/Run.cpp:557:16: error: 'unordered_map' is not a member of 'std'
  8894. vector<vector<std::unordered_map<int, Unit*>>>* units = &game_->units_->visibleUnits_;
  8895. ^
  8896. rts/Run.cpp:557:16: error: 'unordered_map' is not a member of 'std'
  8897. rts/Run.cpp:557:47: error: template argument 1 is invalid
  8898. vector<vector<std::unordered_map<int, Unit*>>>* units = &game_->units_->visibleUnits_;
  8899. ^
  8900. rts/Run.cpp:557:47: error: template argument 2 is invalid
  8901. rts/Run.cpp:557:50: error: 'units' was not declared in this scope
  8902. vector<vector<std::unordered_map<int, Unit*>>>* units = &game_->units_->visibleUnits_;
  8903. ^
  8904. rts/Run.cpp:557:74: error: 'class Units' has no member named 'visibleUnits_'
  8905. vector<vector<std::unordered_map<int, Unit*>>>* units = &game_->units_->visibleUnits_;
  8906. ^
  8907. rts/Run.cpp:557:74: error: an assignment cannot appear in a constant-expression
  8908. rts/Run.cpp:557:74: error: template argument 1 is invalid
  8909. rts/Run.cpp:557:74: error: template argument 2 is invalid
  8910. rts/Run.cpp:562:8: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
  8911. for (auto const& element : (*units)[playerTeam][team])
  8912. ^
  8913. rts/Run.cpp:562:30: error: range-based 'for' loops are not allowed in C++98 mode
  8914. for (auto const& element : (*units)[playerTeam][team])
  8915. ^
  8916. rts/Run.cpp:564:25: error: request for member 'second' in 'element', which is of non-class type 'co
  8917. st int'
  8918. Unit* unit = element.second;
  8919. ^
  8920. rts/Run.cpp:566:59: error: 'relation' is not a class or namespace
  8921. if (game_->units_->relationTable_[playerTeam][team] == relation::CONTROL)
  8922. ^
  8923. rts/Run.cpp:570:59: error: 'relation' is not a class or namespace
  8924. if (game_->units_->relationTable_[playerTeam][team] == relation::ENEMY)
  8925. ^
  8926. rts/Run.cpp:574:59: error: 'relation' is not a class or namespace
  8927. if (game_->units_->relationTable_[playerTeam][team] == relation::FRIEND)
  8928. ^
  8929. rts/Run.cpp:578:59: error: 'relation' is not a class or namespace
  8930. if (game_->units_->relationTable_[playerTeam][team] == relation::NEUTRAL)
  8931. ^
  8932. In file included from rts/general/Unit.h:35:0,
  8933. from rts/Init.h:38,
  8934. from rts/general/Units.h:27,
  8935. from rts/Game.h:3,
  8936. from rts/Run.h:31,
  8937. from rts/Run.cpp:26:
  8938. supportClasses/Pathfinding.h: In instantiation of 'void PriorityQueue<T, Number>::put(T, Number) [w
  8939. th T = f2; Number = float]':
  8940. supportClasses/Pathfinding.h:419:24: required from here
  8941. supportClasses/Pathfinding.h:36:5: error: 'class std::priority_queue<std::pair<float, f2>, std::vec
  8942. or<std::pair<float, f2>, std::allocator<std::pair<float, f2> > >, std::greater<std::pair<float, f2>
  8943. > >' has no member named 'emplace'
  8944. elements.emplace(priority, item);
  8945. ^
  8946. In file included from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  8947. e/c++/bits/stl_algobase.h:65:0,
  8948. from C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/inclu
  8949. e/c++/vector:60,
  8950. from supportClasses/Rect.h:8,
  8951. from Menu/Button.h:3,
  8952. from Menu/Menu.h:2,
  8953. from rts/Run.h:30,
  8954. from rts/Run.cpp:26:
  8955. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  8956. r_base_types.h: In instantiation of 'struct std::iterator_traits<f2>':
  8957. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  8958. h:1262:24: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _
  8959. nputIterator, std::__false_type) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>]'
  8960. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_vector
  8961. h:413:55: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const a
  8962. locator_type&) [with _InputIterator = f2; _Tp = f2; _Alloc = std::allocator<f2>; std::vector<_Tp, _
  8963. lloc>::allocator_type = std::allocator<f2>]'
  8964. supportClasses/Pathfinding.h:394:23: required from here
  8965. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  8966. r_base_types.h:165:53: error: no type named 'iterator_category' in 'class f2'
  8967. typedef typename _Iterator::iterator_category iterator_category;
  8968. ^
  8969. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  8970. r_base_types.h:166:53: error: no type named 'value_type' in 'class f2'
  8971. typedef typename _Iterator::value_type value_type;
  8972. ^
  8973. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  8974. r_base_types.h:167:53: error: no type named 'difference_type' in 'class f2'
  8975. typedef typename _Iterator::difference_type difference_type;
  8976. ^
  8977. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  8978. r_base_types.h:168:53: error: no type named 'pointer' in 'class f2'
  8979. typedef typename _Iterator::pointer pointer;
  8980. ^
  8981. C:/mingw-w64/i686-4.9.2-posix-dwarf-rt_v4-rev4/mingw32/i686-w64-mingw32/include/c++/bits/stl_iterat
  8982. r_base_types.h:169:53: error: no type named 'reference' in 'class f2'
  8983. typedef typename _Iterator::reference reference;
  8984. ^
  8985. In file included from rts/general/Units.h:27:0,
  8986. from rts/Game.h:3,
  8987. from rts/Run.h:31,
  8988. from rts/Run.cpp:26:
  8989. rts/Init.h: In member function 'float Init::getfloat(const string&) const':
  8990. rts/Init.h:604:2: warning: control reaches end of non-void function [-Wreturn-type]
  8991. }
  8992. ^
  8993. rts/Run.cpp: In member function 'Hotkey Run::parseInputEvent(sf::Event, Menu*)':
  8994. rts/Run.cpp:245:1: warning: control reaches end of non-void function [-Wreturn-type]
  8995. }
  8996. ^
  8997. make: *** [debug] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement