Jump to content

chmkar

Member
  • Posts

    1
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by chmkar

  1. @ OwsapCan you help me solve this error

    compiling ShipDefense.cpp
    In file included from ShipDefense.cpp:18:
    ShipDefense.h:188:7: error: 'time_t' in namespace 'std' does not name a type
      std::time_t GetStartTime() const { return m_lStartTime; }
           ^~~~~~
    ShipDefense.h:188:2: note: suggested alternative: 'time_put'
      std::time_t GetStartTime() const { return m_lStartTime; }
      ^~~
      time_put
    ShipDefense.h:218:7: error: 'time_t' in namespace 'std' does not name a type
      std::time_t m_lStartTime;
           ^~~~~~
    ShipDefense.h:218:2: note: suggested alternative: 'time_put'
      std::time_t m_lStartTime;
      ^~~
      time_put
    ShipDefense.cpp: In constructor 'CShipDefense::CShipDefense(long int, DWORD)':
    ShipDefense.cpp:480:2: error: 'm_lStartTime' was not declared in this scope
      m_lStartTime = 0;
      ^~~~~~~~~~~~
    ShipDefense.cpp:480:2: note: suggested alternative: 'm_byState'
      m_lStartTime = 0;
      ^~~~~~~~~~~~
      m_byState
    ShipDefense.cpp: In member function 'virtual void CShipDefense::Destroy()':
    ShipDefense.cpp:505:2: error: 'm_lStartTime' was not declared in this scope
      m_lStartTime = 0;
      ^~~~~~~~~~~~
    ShipDefense.cpp:505:2: note: suggested alternative: 'm_byState'
      m_lStartTime = 0;
      ^~~~~~~~~~~~
      m_byState
    ShipDefense.cpp: In member function 'void CShipDefense::Notice(LPCHARACTER, bool, const char*, ...)':
    ShipDefense.cpp:602:7: warning: unused variable 'iLen' [-Wunused-variable]
       int iLen = vsnprintf(szBuf, sizeof(szBuf), c_pszLocaleText, pszArgs);
           ^~~~
    ShipDefense.cpp: In member function 'void CShipDefense::Start()':
    ShipDefense.cpp:1023:2: error: 'm_lStartTime' was not declared in this scope
      m_lStartTime = std::time(nullptr);
      ^~~~~~~~~~~~
    ShipDefense.cpp:1023:2: note: suggested alternative: 'm_byState'
      m_lStartTime = std::time(nullptr);
      ^~~~~~~~~~~~
      m_byState
    ShipDefense.cpp: In member function 'bool CShipDefense::PrepareDeck()':
    ShipDefense.cpp:1059:3: error: 'm_lStartTime' was not declared in this scope
       m_lStartTime = std::time(nullptr);
       ^~~~~~~~~~~~
    ShipDefense.cpp:1059:3: note: suggested alternative: 'm_byState'
       m_lStartTime = std::time(nullptr);
       ^~~~~~~~~~~~
       m_byState
    ShipDefense.cpp: In member function 'void CShipDefense::JumpAll(ShipDefense::EJumpTo)':
    ShipDefense.cpp:1301:9: warning: enumeration value 'JUMP_MAX' not handled in switch [-Wswitch]
      switch (eJumpTo)

     

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.