Jump to content
  • 0

Compilation sources Meley


Link

Question

Bonjour à tous,

 

En voulant implanter l'instance de Meley je me suis retrouver la fin de ma compilation bloqué au niveau de mon main.cpp, après quelques recherche et des résultats nul je décide donc d'ouvrir ma demande d'aide.

 

Mon erreur :

main.cpp: In function 'int main(int, char**)':
main.cpp:588: error: 'MeleyLair_manager' was not declared in this scope
main.cpp: At global scope:
main.cpp:596: error: expected unqualified-id before 'if'
main.cpp:606: error: expected unqualified-id before 'while'
main.cpp:608: error: expected constructor, destructor, or type conversion before    '(' token
main.cpp:609: error: expected constructor, destructor, or type conversion before    '=' token
main.cpp:610: error: expected constructor, destructor, or type conversion before    '=' token
main.cpp:612: error: expected unqualified-id before 'if'
gmake: *** [Makefile:130: OBJDIR/main.o] Error 1

 

En espérant trouver de l'aide, je remercie d'avance la ou les personnes qui ce dévoueront.

 

Cordialement Link.

Edited by Link (see edit history)
Link to post

6 answers to this question

Recommended Posts

  • 0
#ifdef __MELEY_LAIR_DUNGEON__
		MeleyLair_manager.Initialize();
#endif
	}

	// Client PackageCrypt

	//TODO : make it config
	const std::string strPackageCryptInfoDir = "package/";
	if( !desc_manager.LoadClientPackageCryptInfo( strPackageCryptInfoDir.c_str() ) )
	{
		sys_err("Failed to Load ClientPackageCryptInfo File(%s)", strPackageCryptInfoDir.c_str());
	}

#if defined (__FreeBSD__) && defined(__FILEMONITOR__)
	PFN_FileChangeListener pPackageNotifyFunc =  &(DESC_MANAGER::NotifyClientPackageFileChanged);
	//FileMonitorFreeBSD::Instance().AddWatch( strPackageCryptInfoName, pPackageNotifyFunc );
#endif

	while (idle());

	sys_log(0, "<shutdown> Starting...");
	g_bShutdown = true;
	g_bNoMoreClient = true;

	if (g_bAuthServer)
	{
		DBManager::instance().FlushBilling(true);

		int iLimit = DBManager::instance().CountQuery() / 50;
		int i = 0;

		do
		{
			DWORD dwCount = DBManager::instance().CountQuery();
			sys_log(0, "Queries %u", dwCount);

			if (dwCount == 0)
				break;

			usleep(500000);

			if (++i >= iLimit)
				if (dwCount == DBManager::instance().CountQuery())
					break;
		} while (1);
	}

 

Link to post
Guest
This topic is now closed to further replies.


×
×
  • 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.