1. In file included from ShipDefense.cpp:18:
  2. ShipDefense.h:186:7: error: 'time_t' in namespace 'std' does not name a type; did you mean 'time_put'?
  3. 186 | std::time_t GetStartTime() const { return m_lStartTime; }
  4. | ^~~~~~
  5. | time_put
  6. ShipDefense.h:216:7: error: 'time_t' in namespace 'std' does not name a type; did you mean 'time_put'?
  7. 216 | std::time_t m_lStartTime;
  8. | ^~~~~~
  9. | time_put
  10. ShipDefense.cpp: In function 'long int LaserEffectEvent(LPEVENT, long int)':
  11. ShipDefense.cpp:197:15: error: 'random_device' in namespace 'std' does not name a type
  12. 197 | static std::random_device RandomDevice;
  13. | ^~~~~~~~~~~~~
  14. ShipDefense.cpp:198:15: error: 'mt19937' in namespace 'std' does not name a type
  15. 198 | static std::mt19937 Generate(RandomDevice());
  16. | ^~~~~~~
  17. ShipDefense.cpp:199:15: error: 'uniform_real_distribution' in namespace 'std' does not name a template type; did you mean 'uniform_int_distribution'?
  18. 199 | static std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
  19. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  20. | uniform_int_distribution
  21. ShipDefense.cpp:215:36: error: 'Generate' was not declared in this scope
  22. 215 | if (static_cast<UINT>(Distribute(Generate)) <= uiSpawnProbability)
  23. | ^~~~~~~~
  24. ShipDefense.cpp:215:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
  25. 215 | if (static_cast<UINT>(Distribute(Generate)) <= uiSpawnProbability)
  26. | ^~~~~~~~~~
  27. | CAttribute
  28. ShipDefense.cpp: In function 'long int SpawnEvent(LPEVENT, long int)':
  29. ShipDefense.cpp:343:14: error: 'random_device' in namespace 'std' does not name a type
  30. 343 | static std::random_device RandomDevice;
  31. | ^~~~~~~~~~~~~
  32. ShipDefense.cpp:344:14: error: 'mt19937' in namespace 'std' does not name a type
  33. 344 | static std::mt19937 Generate(RandomDevice());
  34. | ^~~~~~~
  35. ShipDefense.cpp:345:14: error: 'uniform_real_distribution' in namespace 'std' does not name a template type; did you mean 'uniform_int_distribution'?
  36. 345 | static std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
  37. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  38. | uniform_int_distribution
  39. ShipDefense.cpp:377:36: error: 'Generate' was not declared in this scope
  40. 377 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
  41. | ^~~~~~~~
  42. ShipDefense.cpp:377:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
  43. 377 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
  44. | ^~~~~~~~~~
  45. | CAttribute
  46. ShipDefense.cpp:380:36: error: 'Generate' was not declared in this scope
  47. 380 | if (static_cast<UINT>(Distribute(Generate)) <= 30) // 3%
  48. | ^~~~~~~~
  49. ShipDefense.cpp:380:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
  50. 380 | if (static_cast<UINT>(Distribute(Generate)) <= 30) // 3%
  51. | ^~~~~~~~~~
  52. | CAttribute
  53. ShipDefense.cpp:406:36: error: 'Generate' was not declared in this scope
  54. 406 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
  55. | ^~~~~~~~
  56. ShipDefense.cpp:406:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
  57. 406 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
  58. | ^~~~~~~~~~
  59. | CAttribute
  60. ShipDefense.cpp:409:36: error: 'Generate' was not declared in this scope
  61. 409 | if (static_cast<UINT>(Distribute(Generate)) <= 40) // 4%
  62. | ^~~~~~~~
  63. ShipDefense.cpp:409:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
  64. 409 | if (static_cast<UINT>(Distribute(Generate)) <= 40) // 4%
  65. | ^~~~~~~~~~
  66. | CAttribute
  67. ShipDefense.cpp:435:36: error: 'Generate' was not declared in this scope
  68. 435 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
  69. | ^~~~~~~~
  70. ShipDefense.cpp:435:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
  71. 435 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
  72. | ^~~~~~~~~~
  73. | CAttribute
  74. ShipDefense.cpp:438:36: error: 'Generate' was not declared in this scope
  75. 438 | if (static_cast<UINT>(Distribute(Generate)) <= 50) // 5%
  76. | ^~~~~~~~
  77. ShipDefense.cpp:438:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
  78. 438 | if (static_cast<UINT>(Distribute(Generate)) <= 50) // 5%
  79. | ^~~~~~~~~~
  80. | CAttribute
  81. ShipDefense.cpp: In constructor 'CShipDefense::CShipDefense(long int, DWORD)':
  82. ShipDefense.cpp:479:2: error: 'm_lStartTime' was not declared in this scope
  83. 479 | m_lStartTime = 0;
  84. | ^~~~~~~~~~~~
  85. ShipDefense.cpp: In member function 'virtual void CShipDefense::Destroy()':
  86. ShipDefense.cpp:504:2: error: 'm_lStartTime' was not declared in this scope
  87. 504 | m_lStartTime = 0;
  88. | ^~~~~~~~~~~~
  89. ShipDefense.cpp: In member function 'void CShipDefense::Start()':
  90. ShipDefense.cpp:1022:2: error: 'm_lStartTime' was not declared in this scope
  91. 1022 | m_lStartTime = std::time(nullptr);
  92. | ^~~~~~~~~~~~
  93. ShipDefense.cpp: In member function 'bool CShipDefense::PrepareDeck()':
  94. ShipDefense.cpp:1058:3: error: 'm_lStartTime' was not declared in this scope
  95. 1058 | m_lStartTime = std::time(nullptr);
  96. | ^~~~~~~~~~~~
  97. [OK] Compiling: questlua_shipdefense_mgr.cpp
  98. gmake: *** [Makefile:111: .obj/ShipDefense.o] Error 1
  99. gmake: *** Waiting for unfinished jobs....
  100. In file included from questlua_shipdefense_mgr.cpp:21:
  101. ShipDefense.h:186:7: error: 'time_t' in namespace 'std' does not name a type; did you mean 'time_put'?
  102. 186 | std::time_t GetStartTime() const { return m_lStartTime; }
  103. | ^~~~~~
  104. | time_put
  105. ShipDefense.h:216:7: error: 'time_t' in namespace 'std' does not name a type; did you mean 'time_put'?
  106. 216 | std::time_t m_lStartTime;
  107. | ^~~~~~
  108. | time_put
  109. gmake: *** [Makefile:111: .obj/questlua_shipdefense_mgr.o] Error 1