Jump to content

c++ source problem


Recommended Posts

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

  • 1 year later...

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.