Jump to content
×
×
  • Create New...
  • 0

c++ source problem


Zeta

Question

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

6 answers to this question

Recommended Posts

  • 0

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    game
Error    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    game
Error    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

  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.