- In file included from ShipDefense.cpp:18:
- ShipDefense.h:186:7: error: 'time_t' in namespace 'std' does not name a type; did you mean 'time_put'?
- 186 | std::time_t GetStartTime() const { return m_lStartTime; }
- | ^~~~~~
- | time_put
- ShipDefense.h:216:7: error: 'time_t' in namespace 'std' does not name a type; did you mean 'time_put'?
- 216 | std::time_t m_lStartTime;
- | ^~~~~~
- | time_put
- ShipDefense.cpp: In function 'long int LaserEffectEvent(LPEVENT, long int)':
- ShipDefense.cpp:197:15: error: 'random_device' in namespace 'std' does not name a type
- 197 | static std::random_device RandomDevice;
- | ^~~~~~~~~~~~~
- ShipDefense.cpp:198:15: error: 'mt19937' in namespace 'std' does not name a type
- 198 | static std::mt19937 Generate(RandomDevice());
- | ^~~~~~~
- ShipDefense.cpp:199:15: error: 'uniform_real_distribution' in namespace 'std' does not name a template type; did you mean 'uniform_int_distribution'?
- 199 | static std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- | uniform_int_distribution
- ShipDefense.cpp:215:36: error: 'Generate' was not declared in this scope
- 215 | if (static_cast<UINT>(Distribute(Generate)) <= uiSpawnProbability)
- | ^~~~~~~~
- ShipDefense.cpp:215:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
- 215 | if (static_cast<UINT>(Distribute(Generate)) <= uiSpawnProbability)
- | ^~~~~~~~~~
- | CAttribute
- ShipDefense.cpp: In function 'long int SpawnEvent(LPEVENT, long int)':
- ShipDefense.cpp:343:14: error: 'random_device' in namespace 'std' does not name a type
- 343 | static std::random_device RandomDevice;
- | ^~~~~~~~~~~~~
- ShipDefense.cpp:344:14: error: 'mt19937' in namespace 'std' does not name a type
- 344 | static std::mt19937 Generate(RandomDevice());
- | ^~~~~~~
- ShipDefense.cpp:345:14: error: 'uniform_real_distribution' in namespace 'std' does not name a template type; did you mean 'uniform_int_distribution'?
- 345 | static std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- | uniform_int_distribution
- ShipDefense.cpp:377:36: error: 'Generate' was not declared in this scope
- 377 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
- | ^~~~~~~~
- ShipDefense.cpp:377:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
- 377 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
- | ^~~~~~~~~~
- | CAttribute
- ShipDefense.cpp:380:36: error: 'Generate' was not declared in this scope
- 380 | if (static_cast<UINT>(Distribute(Generate)) <= 30) // 3%
- | ^~~~~~~~
- ShipDefense.cpp:380:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
- 380 | if (static_cast<UINT>(Distribute(Generate)) <= 30) // 3%
- | ^~~~~~~~~~
- | CAttribute
- ShipDefense.cpp:406:36: error: 'Generate' was not declared in this scope
- 406 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
- | ^~~~~~~~
- ShipDefense.cpp:406:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
- 406 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
- | ^~~~~~~~~~
- | CAttribute
- ShipDefense.cpp:409:36: error: 'Generate' was not declared in this scope
- 409 | if (static_cast<UINT>(Distribute(Generate)) <= 40) // 4%
- | ^~~~~~~~
- ShipDefense.cpp:409:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
- 409 | if (static_cast<UINT>(Distribute(Generate)) <= 40) // 4%
- | ^~~~~~~~~~
- | CAttribute
- ShipDefense.cpp:435:36: error: 'Generate' was not declared in this scope
- 435 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
- | ^~~~~~~~
- ShipDefense.cpp:435:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
- 435 | if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
- | ^~~~~~~~~~
- | CAttribute
- ShipDefense.cpp:438:36: error: 'Generate' was not declared in this scope
- 438 | if (static_cast<UINT>(Distribute(Generate)) <= 50) // 5%
- | ^~~~~~~~
- ShipDefense.cpp:438:25: error: 'Distribute' was not declared in this scope; did you mean 'CAttribute'?
- 438 | if (static_cast<UINT>(Distribute(Generate)) <= 50) // 5%
- | ^~~~~~~~~~
- | CAttribute
- ShipDefense.cpp: In constructor 'CShipDefense::CShipDefense(long int, DWORD)':
- ShipDefense.cpp:479:2: error: 'm_lStartTime' was not declared in this scope
- 479 | m_lStartTime = 0;
- | ^~~~~~~~~~~~
- ShipDefense.cpp: In member function 'virtual void CShipDefense::Destroy()':
- ShipDefense.cpp:504:2: error: 'm_lStartTime' was not declared in this scope
- 504 | m_lStartTime = 0;
- | ^~~~~~~~~~~~
- ShipDefense.cpp: In member function 'void CShipDefense::Start()':
- ShipDefense.cpp:1022:2: error: 'm_lStartTime' was not declared in this scope
- 1022 | m_lStartTime = std::time(nullptr);
- | ^~~~~~~~~~~~
- ShipDefense.cpp: In member function 'bool CShipDefense::PrepareDeck()':
- ShipDefense.cpp:1058:3: error: 'm_lStartTime' was not declared in this scope
- 1058 | m_lStartTime = std::time(nullptr);
- | ^~~~~~~~~~~~
- [OK] Compiling: questlua_shipdefense_mgr.cpp
- gmake: *** [Makefile:111: .obj/ShipDefense.o] Error 1
- gmake: *** Waiting for unfinished jobs....
- In file included from questlua_shipdefense_mgr.cpp:21:
- ShipDefense.h:186:7: error: 'time_t' in namespace 'std' does not name a type; did you mean 'time_put'?
- 186 | std::time_t GetStartTime() const { return m_lStartTime; }
- | ^~~~~~
- | time_put
- ShipDefense.h:216:7: error: 'time_t' in namespace 'std' does not name a type; did you mean 'time_put'?
- 216 | std::time_t m_lStartTime;
- | ^~~~~~
- | time_put
- gmake: *** [Makefile:111: .obj/questlua_shipdefense_mgr.o] Error 1