Zeta 11 Posted September 17, 2014 Share Posted September 17, 2014 Hi metin2dev i have a problem when compile dev: check _server.h:8: error: expected template-name before '<' token check _server.h:8: error: expected `{' before '<' token check_server.h:8: error: expected unqualified-id before '<' token check_server.h line 8: class CCheckServer : public singleton <CCheckServer> #ifndef _M2_CHECK_SERVER_KEY_H_ #define _M2_CHECK_SERVER_KEY_H_ #include <string> #include <vector> #include "CheckServerKey.h" class CCheckServer : public singleton <CCheckServer> { public: CCheckServer() : m_bValid(FALSE) {} FORCEINLINE void AddServerKey(const char* pServerKey) { m_vKey.push_back(pServerKey); } FORCEINLINE BOOL CheckIP(const char* pIP) { m_bValid = FALSE; // 디파인 안걸리면 체크 안함 #ifndef _USE_SERVER_KEY_ m_bValid = TRUE; return m_bValid; #endif for (UINT i = 0; i < m_vKey.size(); i++) { // 하나라도 맞는 서버키가 있으면 ok std::string errorString; if (CheckServerKey(m_vKey[i].c_str(), pIP, "", errorString)) { m_bValid = TRUE; break; } } return m_bValid; } FORCEINLINE BOOL IsValid() const { return m_bValid; } private: std::vector<std::string> m_vKey; BOOL m_bValid; }; #endif // #ifndef _M2_CHECK_SERVER_KEY_H_ Link to comment Share on other sites More sharing options...
Zeta 11 Posted September 18, 2014 Author Share Posted September 18, 2014 up Link to comment Share on other sites More sharing options...
Adrian1428 31 Posted September 19, 2014 Share Posted September 19, 2014 try this class CCheckServer : public singleton CCheckServer Link to comment Share on other sites More sharing options...
Think 117 Posted September 19, 2014 Share Posted September 19, 2014 Or just delete all references to this since it's useless. 1 Link to comment Share on other sites More sharing options...
RatCatcher 77 Posted September 26, 2014 Share Posted September 26, 2014 Delete those calls to CheckServer, it is useless anyway. Enough is enough Link to comment Share on other sites More sharing options...
scrabbyyy 20 Posted October 11, 2015 Share Posted October 11, 2015 how can i delete checkserver? i gotta errors pls help Error 4 error C1083: Cannot open include file: 'CheckServerKey.h': No such file or directory (main.cpp) c:\users\xxxxxx\desktop\server\game\src\check_server.h 6 1 gameError 3 error C1083: Cannot open include file: 'CheckServerKey.h': No such file or directory (config.cpp) c:\users\xxxxxx\desktop\server\game\src\check_server.h 6 1 gameError 2 error C1083: Cannot open include file: 'CheckServerKey.h': No such file or directory (check_server.cpp) c:\users\xxxxxx\desktop\server\game\src\check_server.h 6 1 game Link to comment Share on other sites More sharing options...
revengertmt 50 Posted October 13, 2015 Share Posted October 13, 2015 can help me????? ../../../Extern/include/boost/system/error_code.hpp:222: error: undefined reference to 'boost::system::generic_category()' ../../../Extern/include/boost/system/error_code.hpp:223: error: undefined reference to 'boost::system::generic_category()' ../../../Extern/include/boost/system/error_code.hpp:224: error: undefined reference to 'boost::system::system_category()' collect2: error: ld returned 1 exit status gmake: *** [../game_r65730_striped] Error 1 gmake: *** Waiting for unfinished jobs.... ../../../Extern/include/boost/system/error_code.hpp:222: error: undefined reference to 'boost::system::generic_category()' ../../../Extern/include/boost/system/error_code.hpp:223: error: undefined reference to 'boost::system::generic_category()' ../../../Extern/include/boost/system/error_code.hpp:224: error: undefined reference to 'boost::system::system_category()' collect2: error: ld returned 1 exit status gmake: *** [../game_r65730_32] Error 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now