Yardım Game,de build hatası

Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

CalvinGiorgio

Kurumsal Üye
Kurumsal Üye
Üye
Mesaj
687
Çözümler
14
Beğeni
93
Puan
539
Ticaret Puanı
0
C++:
input_db.cpp: In member function 'void CInputDB::EventManager(const char*)':
input_db.cpp:3664:68: error: no matching function for call to 'CHARACTER_MANAGER::SetEventStatus(const WORD&, const bool&, const int&, char [25])'
 3664 |   chrMngr.SetEventStatus(eventID, eventStatus, endTime, endTimeText);
      |                                                                    ^
In file included from input_db.cpp:7:
char_manager.h:143:9: note: candidate: 'void CHARACTER_MANAGER::SetEventStatus(WORD, bool, int)'
  143 |  void   SetEventStatus(const WORD eventID, const bool eventStatus, const int endTime);
      |         ^~~~~~~~~~~~~~
char_manager.h:143:9: note:   candidate expects 3 arguments, 4 provided
compiling item_manager.cpp
gmake[1]: *** [Makefile:191: .obj/input_db.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
input_p2p.cpp: In member function 'void CInputP2P::BossArena(const char*)':
input_p2p.cpp:387:23: warning: unused variable 'p' [-Wunused-variable]
  387 |  TPacketGGBossArena * p = (TPacketGGBossArena *) c_pData;
      |                       ^
input_p2p.cpp: In member function 'void CInputP2P::FateRoulette(const char*)':
input_p2p.cpp:405:26: warning: unused variable 'p' [-Wunused-variable]
  405 |  TPacketGGFateRoulette * p = (TPacketGGFateRoulette *) c_pData;
      |                          ^
input_main.cpp: In member function 'int CInputMain::Chat(LPCHARACTER, const char*, size_t)':
input_main.cpp:993:7: warning: unused variable 'rebornlvl' [-Wunused-variable]
  993 |   int rebornlvl = ch->GetReborn() > 0 ? rebornLv[ch->GetReborn()] : rebornLv[0];
      |       ^~~~~~~~~
In file included from item.cpp:17:
item.h: In constructor 'CItem::CItem(DWORD)':
item.h:343:9: warning: 'CItem::m_dwTransmutation' will be initialized after [-Wreorder]
  343 |  DWORD  m_dwTransmutation;
      |         ^~~~~~~~~~~~~~~~~
item.h:336:8: warning:   'bool CItem::is_basic' [-Wreorder]
  336 |  bool  is_basic;
      |        ^~~~~~~~
item.cpp:32:1: warning:   when initialized here [-Wreorder]
   32 | CItem::CItem(DWORD dwVnum)
      | ^~~~~
item_manager.cpp: In member function 'bool ITEM_MANAGER::GetDropPct(LPCHARACTER, LPCHARACTER, int&, int&)':
item_manager.cpp:1087:27: warning: operation on 'extraDrop' may be undefined [-Wsequence-point]
 1087 |  int extraDrop = extraDrop+=CPrivManager::instance().GetPriv(pkKiller, PRIV_ITEM_DROP)+(pkKiller->IsEquipUniqueItem(UNIQUE_ITEM_DOUBLE_ITEM) ? 100 : 0);
      |                  ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
item_manager.cpp:1087:27: warning: 'extraDrop' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1087 |  int extraDrop = extraDrop+=CPrivManager::instance().GetPriv(pkKiller, PRIV_ITEM_DROP)+(pkKiller->IsEquipUniqueItem(UNIQUE_ITEM_DOUBLE_ITEM) ? 100 : 0);
      |                  ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
input_main.cpp: In member function 'void CInputMain::ItemShop(LPCHARACTER, const char*)':
input_main.cpp:4778:14: warning: 'snprintf' argument 4 overlaps destination object 'szQuery2' [-Wrestrict]
 4778 |      snprintf(szQuery2, sizeof(szQuery2), "%s WHERE itemshop_item.status = 1 ORDER BY itemshop_item.sell_count DESC LIMIT 0, 100;", szQuery2);
      |      ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
input_main.cpp:4727:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
 4727 |   char szQuery2[2048];
      |        ^~~~~~~~
input_main.cpp:4763:15: warning: 'snprintf' argument 4 overlaps destination object 'szQuery2' [-Wrestrict]
 4763 |       snprintf(szQuery2, sizeof(szQuery2), "%s WHERE %s", szQuery2, newStr.c_str());
      |       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
input_main.cpp:4727:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
 4727 |   char szQuery2[2048];
      |        ^~~~~~~~
input_main.cpp:4780:14: warning: 'snprintf' argument 4 overlaps destination object 'szQuery2' [-Wrestrict]
 4780 |      snprintf(szQuery2, sizeof(szQuery2), "%s AND itemshop_item.status = 1;", szQuery2);
      |      ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
input_main.cpp:4727:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
 4727 |   char szQuery2[2048];
      |        ^~~~~~~~
gmake[1]: Leaving directory '/usr/src/game/Server/game/src'

Bunla aldığımız zaman hata çıkıyor
 
Öncelikle aldığınız hatanın mantığını anlamanız için incelemenizi öneririm;
Linkleri görebilmek için giriş yap veya kayıt ol.


Aslında error zaten açıklamayı yapmış, SetEventStatus çağırıyorsunuz fakat compiler bu fonksiyonu kullanamıyor çünkü çağırdığınız yerde fonksiyona 4 arg tanımlı fakat chrmngr içerisinde sadece 3 arg tanımlı dolayısıyla bu fonksiyonu input_db'de bu haliyle çağıramazsınız, ya çağırdığınız yeri düzeltin ya da fonksiyonu genişletin, saygılar.
 
Öncelikle aldığınız hatanın mantığını anlamanız için incelemenizi öneririm;
Linkleri görebilmek için giriş yap veya kayıt ol.


Aslında error zaten açıklamayı yapmış, SetEventStatus çağırıyorsunuz fakat compiler bu fonksiyonu kullanamıyor çünkü çağırdığınız yerde fonksiyona 4 arg tanımlı fakat chrmngr içerisinde sadece 3 arg tanımlı dolayısıyla bu fonksiyonu input_db'de bu haliyle çağıramazsınız, ya çağırdığınız yeri düzeltin ya da fonksiyonu genişletin, saygılar.
sitedeki açıklamaları okudum inceledim fakat bir bağlantı kuramadım yani anlamadım diyebilirim. Tam olarak bana kodlar üzerinden anlatım ile yapabilirseniz daha öğretici olur benim için.

Linkleri görebilmek için giriş yap veya kayıt ol.
 
sitedeki açıklamaları okudum inceledim fakat bir bağlantı kuramadım yani anlamadım diyebilirim. Tam olarak bana kodlar üzerinden anlatım ile yapabilirseniz daha öğretici olur benim için.

Linkleri görebilmek için giriş yap veya kayıt ol.
daha basit bir dille anlatayım. senin eklediğin seteventstatus kodunda 4 argüman var. argüman dediğimiz şu.
seteventstatus(int arg1, int arg2, int arg3, int arg4)
ama input dbdeki kod bu kodu çağırırken arg4 ü çağırmıyor bu yüzden de hata veriyor. şimdi burada 2 seçeneğin var. ya input managerdeki kodu arg4 e uyarlayacaksın. ya da eklediğin(veya söktüğün) sistemin sana vermiş olduğu seteventstatus kodunu kullanıcaksın.
 
Vallaha uyarlayabilicek kapasiteye sahip değilim çok anlamıyorum ve öğrenmeye çalışıyorum. Uyarlamayı bilmiyorum zaten ben sökmedim sistemi paylaşmışlar ancak her şeyi eksiksiz olarak ekledim. Yani kopya çektim açıkçası zenaris filesinin kodlarına bakıyorum bire bir herşeyi aynı tespit edemiyorum ve çözemiyorum
 
Vallaha uyarlayabilicek kapasiteye sahip değilim çok anlamıyorum ve öğrenmeye çalışıyorum. Uyarlamayı bilmiyorum zaten ben sökmedim sistemi paylaşmışlar ancak her şeyi eksiksiz olarak ekledim. Yani kopya çektim açıkçası zenaris filesinin kodlarına bakıyorum bire bir herşeyi aynı tespit edemiyorum ve çözemiyorum
seteventstatus kısmını zenaristen alsana kodları ordan aldıysan
 
seteventstatus kısmını zenaristen alsana kodları ordan aldıysan
Sanırım o hatayı çözdüm ancak db build alırken böyle bir hata çıkıyor


Kod:
linking ../game_r41037
gmake[1]: warning:  Clock skew detected.  Your build may be incomplete.
gmake[1]: Leaving directory '/usr/src/game/Server/game/src'
gmake -C game/src symlink
gmake[1]: Entering directory '/usr/src/game/Server/game/src'
gmake[1]: Leaving directory '/usr/src/game/Server/game/src'
# gmake -C game/src strip
gmake -C db/src dep
gmake[1]: Entering directory '/usr/src/game/Server/db/src'
Note: gcc autodepend is autodetected, so target dep skipped
gmake[1]: Leaving directory '/usr/src/game/Server/db/src'
gmake -C db/src clean
gmake[1]: Entering directory '/usr/src/game/Server/db/src'
gmake[1]: Leaving directory '/usr/src/game/Server/db/src'
gmake -C db/src
gmake[1]: Entering directory '/usr/src/game/Server/db/src'
gmake[1]: Warning: File '../../common/tables.h' has modification time 3044 s in the future
compiling Config.cpp
compiling NetBase.cpp
compiling Peer.cpp
compiling PeerBase.cpp
compiling Main.cpp
compiling Lock.cpp
compiling DBManager.cpp
compiling Cache.cpp
compiling LoginData.cpp
compiling ClientManager.cpp
compiling ClientManagerPlayer.cpp
compiling ClientManagerLogin.cpp
compiling ClientManagerBoot.cpp
compiling ClientManagerParty.cpp
compiling ClientManagerGuild.cpp
ClientManager.cpp:4831:10: fatal error: buffer_manager.h: No such file or directory
 4831 | #include "buffer_manager.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[1]: *** [Makefile:105: .obj/ClientManager.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
In file included from Cache.cpp:6:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from Main.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from LoginData.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from NetBase.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from DBManager.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerPlayer.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
gmake[1]: *** [Makefile:105: .obj/Cache.o] Error 1
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerLogin.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/Main.o] Error 1
gmake[1]: *** [Makefile:107: .obj/LoginData.o] Error 1
gmake[1]: *** [Makefile:105: .obj/NetBase.o] Error 1
In file included from ClientManagerBoot.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
gmake[1]: *** [Makefile:105: .obj/DBManager.o] Error 1
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerGuild.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerParty.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:105: .obj/ClientManagerLogin.o] Error 1
gmake[1]: *** [Makefile:105: .obj/ClientManagerParty.o] Error 1
gmake[1]: *** [Makefile:105: .obj/ClientManagerPlayer.o] Error 1
gmake[1]: *** [Makefile:105: .obj/ClientManagerGuild.o] Error 1
gmake[1]: *** [Makefile:105: .obj/ClientManagerBoot.o] Error 1
gmake[1]: Leaving directory '/usr/src/game/Server/db/src'
gmake: *** [Makefile:117: all] Error 2
 
Sanırım o hatayı çözdüm ancak db build alırken böyle bir hata çıkıyor


Kod:
linking ../game_r41037
gmake[1]: warning:  Clock skew detected.  Your build may be incomplete.
gmake[1]: Leaving directory '/usr/src/game/Server/game/src'
gmake -C game/src symlink
gmake[1]: Entering directory '/usr/src/game/Server/game/src'
gmake[1]: Leaving directory '/usr/src/game/Server/game/src'
# gmake -C game/src strip
gmake -C db/src dep
gmake[1]: Entering directory '/usr/src/game/Server/db/src'
Note: gcc autodepend is autodetected, so target dep skipped
gmake[1]: Leaving directory '/usr/src/game/Server/db/src'
gmake -C db/src clean
gmake[1]: Entering directory '/usr/src/game/Server/db/src'
gmake[1]: Leaving directory '/usr/src/game/Server/db/src'
gmake -C db/src
gmake[1]: Entering directory '/usr/src/game/Server/db/src'
gmake[1]: Warning: File '../../common/tables.h' has modification time 3044 s in the future
compiling Config.cpp
compiling NetBase.cpp
compiling Peer.cpp
compiling PeerBase.cpp
compiling Main.cpp
compiling Lock.cpp
compiling DBManager.cpp
compiling Cache.cpp
compiling LoginData.cpp
compiling ClientManager.cpp
compiling ClientManagerPlayer.cpp
compiling ClientManagerLogin.cpp
compiling ClientManagerBoot.cpp
compiling ClientManagerParty.cpp
compiling ClientManagerGuild.cpp
ClientManager.cpp:4831:10: fatal error: buffer_manager.h: No such file or directory
 4831 | #include "buffer_manager.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[1]: *** [Makefile:105: .obj/ClientManager.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
In file included from Cache.cpp:6:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from Main.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from LoginData.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from NetBase.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from DBManager.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerPlayer.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
gmake[1]: *** [Makefile:105: .obj/Cache.o] Error 1
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerLogin.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/Main.o] Error 1
gmake[1]: *** [Makefile:107: .obj/LoginData.o] Error 1
gmake[1]: *** [Makefile:105: .obj/NetBase.o] Error 1
In file included from ClientManagerBoot.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
gmake[1]: *** [Makefile:105: .obj/DBManager.o] Error 1
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerGuild.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerParty.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:105: .obj/ClientManagerLogin.o] Error 1
gmake[1]: *** [Makefile:105: .obj/ClientManagerParty.o] Error 1
gmake[1]: *** [Makefile:105: .obj/ClientManagerPlayer.o] Error 1
gmake[1]: *** [Makefile:105: .obj/ClientManagerGuild.o] Error 1
gmake[1]: *** [Makefile:105: .obj/ClientManagerBoot.o] Error 1
gmake[1]: Leaving directory '/usr/src/game/Server/db/src'
gmake: *** [Makefile:117: all] Error 2
buffer manager dosyasını al söktüğün srcden. önceki hatayı nasıl çözdüğünüde belirtebilirsin
 
buffer manager dosyasını al söktüğün srcden. önceki hatayı nasıl çözdüğünüde belirtebilirsin
dediğin gibi zenaristen aldım çözüldü sorun ama olayı anladın mı diye sorarsan anlamadım. idmana gidiyorum gelince dediğin gibi yaparım ona göre olup olmaması ile ilgili bilgi geçerim teşekkür ederim hasancım <3
 
buffer manager dosyasını al söktüğün srcden. önceki hatayı nasıl çözdüğünüde belirtebilirsin
dediğin gibi buffer_manager.h alıp değiştirdim ancak aşağıdaki hatalar çıktı
Kod:
gmake[1]: Entering directory '/usr/src/game/Server/game/src'
compiling BattleArena.cpp
In file included from char_manager.h:8,
                 from BattleArena.cpp:6:
buffer_manager.h:13:41: error: 'utils' was not declared in this scope; did you mean 'utimes'?
   13 |   template<typename T, std::enable_if_t<utils::IsRawV<T>>* = nullptr>
      |                                         ^~~~~
      |                                         utimes
buffer_manager.h:13:56: error: template argument 1 is invalid
   13 |   template<typename T, std::enable_if_t<utils::IsRawV<T>>* = nullptr>
      |                                                        ^~
buffer_manager.h:17:41: error: 'utils' was not declared in this scope; did you mean 'utimes'?
   17 |   template<typename C, std::enable_if_t<utils::IsContiguousV<C>>* = nullptr>
      |                                         ^~~~~
      |                                         utimes
buffer_manager.h:17:63: error: template argument 1 is invalid
   17 |   template<typename C, std::enable_if_t<utils::IsContiguousV<C>>* = nullptr>
      |                                                               ^~
buffer_manager.h:18:8: error: 'template<class C, <declaration error> > void TEMP_BUFFER::write(const C&)' cannot be overloaded with 'template<class T, <declaration error> > void TEMP_BUFFER::write(const T&)'
   18 |   void write(const C& v) {
      |        ^~~~~
buffer_manager.h:14:8: note: previous declaration 'template<class T, <declaration error> > void TEMP_BUFFER::write(const T&)'
   14 |   void write(const T& c_pvData) {
      |        ^~~~~
gmake[1]: *** [Makefile:190: .obj/BattleArena.o] Error 1
gmake[1]: Leaving directory '/usr/src/game/Server/game/src'
gmake: *** [Makefile:111: all] Error 2
 
dediğin gibi buffer_manager.h alıp değiştirdim ancak aşağıdaki hatalar çıktı
Kod:
gmake[1]: Entering directory '/usr/src/game/Server/game/src'
compiling BattleArena.cpp
In file included from char_manager.h:8,
                 from BattleArena.cpp:6:
buffer_manager.h:13:41: error: 'utils' was not declared in this scope; did you mean 'utimes'?
   13 |   template<typename T, std::enable_if_t<utils::IsRawV<T>>* = nullptr>
      |                                         ^~~~~
      |                                         utimes
buffer_manager.h:13:56: error: template argument 1 is invalid
   13 |   template<typename T, std::enable_if_t<utils::IsRawV<T>>* = nullptr>
      |                                                        ^~
buffer_manager.h:17:41: error: 'utils' was not declared in this scope; did you mean 'utimes'?
   17 |   template<typename C, std::enable_if_t<utils::IsContiguousV<C>>* = nullptr>
      |                                         ^~~~~
      |                                         utimes
buffer_manager.h:17:63: error: template argument 1 is invalid
   17 |   template<typename C, std::enable_if_t<utils::IsContiguousV<C>>* = nullptr>
      |                                                               ^~
buffer_manager.h:18:8: error: 'template<class C, <declaration error> > void TEMP_BUFFER::write(const C&)' cannot be overloaded with 'template<class T, <declaration error> > void TEMP_BUFFER::write(const T&)'
   18 |   void write(const C& v) {
      |        ^~~~~
buffer_manager.h:14:8: note: previous declaration 'template<class T, <declaration error> > void TEMP_BUFFER::write(const T&)'
   14 |   void write(const T& c_pvData) {
      |        ^~~~~
gmake[1]: *** [Makefile:190: .obj/BattleArena.o] Error 1
gmake[1]: Leaving directory '/usr/src/game/Server/game/src'
gmake: *** [Makefile:111: all] Error 2
buffer manageri gameye değil dbye atacaksın. db makefileyede eklemeyi unutma
 
buffer manageri gameye değil dbye atacaksın. db makefileyede eklemeyi unutma
yanlış anlamadım inşallah.
buffer_manager.h dosyasını alıp db klasörüne atıyoruz ve makefile dosyasıan ekliyoruz.
game dosyasında olan buffer_manager.h dosyasını hiç değiştirmiyoruz doğru mu anladım ?
 
yanlış anlamadım inşallah.
buffer_manager.h dosyasını alıp db klasörüne atıyoruz ve makefile dosyasıan ekliyoruz.
game dosyasında olan buffer_manager.h dosyasını hiç değiştirmiyoruz doğru mu anladım ?
buffer manager cpp ve .h dosyaları db klasöründe olcak gamede olmayacak

makefileyede sadece cppyi ekleyeceksin headeri değil
 
buffer manager cpp ve .h dosyaları db klasöründe olcak gamede olmayacak

makefileyede sadece cppyi ekleyeceksin headeri değil
dediğin şekilde game den alıp db aktardım makefile ekledim artık kendimi şu sistemi eklerken gerizekalı gibi hissetmeye başladım


Kod:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from Main.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
compiling ClientManagerEventFlag.cpp
In file included from Cache.cpp:6:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
compiling Marriage.cpp
In file included from NetBase.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
compiling Monarch.cpp
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from LoginData.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
In file included from ClientManagerPlayer.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.h:200:46: error: template argument 4 is invalid
compiling BlockCountry.cpp
In file included from ClientManager.cpp:10:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
gmake[1]: *** [Makefile:107: .obj/Cache.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: *** [Makefile:107: .obj/DBManager.o] Error 1
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerBoot.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/NetBase.o] Error 1
gmake[1]: *** [Makefile:107: .obj/Main.o] Error 1
gmake[1]: *** [Makefile:107: .obj/LoginData.o] Error 1
In file included from ClientManagerGuild.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerParty.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerLogin.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/ClientManagerPlayer.o] Error 1
In file included from GuildManager.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from PrivManager.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
gmake[1]: *** [Makefile:107: .obj/ClientManagerLogin.o] Error 1
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
gmake[1]: *** [Makefile:107: .obj/ClientManagerGuild.o] Error 1
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/ClientManagerParty.o] Error 1
In file included from MoneyLog.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::ProcessPackets(CPeer*)':
ClientManager.cpp:3116:8: error: 'HEADER_GD_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_GD_ELECT_MONARCH'?
 3116 |   case HEADER_GD_EVENT_MANAGER:
      |        ^~~~~~~~~~~~~~~~~~~~~~~
      |        HEADER_GD_ELECT_MONARCH
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.cpp: In function 'bool IsDontHaveEndTimeEvent(BYTE)':
ClientManager.cpp:4836:8: error: 'EMPIRE_WAR_EVENT' was not declared in this scope
 4836 |   case EMPIRE_WAR_EVENT:
      |        ^~~~~~~~~~~~~~~~
ClientManager.cpp:4837:8: error: 'TOURNAMENT_EVENT' was not declared in this scope
 4837 |   case TOURNAMENT_EVENT:
      |        ^~~~~~~~~~~~~~~~
In file included from ItemAwardManager.cpp:7:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.cpp: In member function 'void CClientManager::RecvEventManagerPacket(const char*)':
ClientManager.cpp:4847:18: error: 'EVENT_MANAGER_UPDATE' was not declared in this scope
 4847 |  if (subIndex == EVENT_MANAGER_UPDATE)
      |                  ^~~~~~~~~~~~~~~~~~~~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerEventFlag.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.cpp:4849:23: error: 'EVENT_MANAGER_REMOVE_EVENT' was not declared in this scope
 4849 |  else if (subIndex == EVENT_MANAGER_REMOVE_EVENT)
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.cpp:4854:22: error: request for member 'size' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4854 |   if (m_EventManager.size())
      |                      ^~~~
gmake[1]: *** [Makefile:107: .obj/ClientManagerBoot.o] Error 1
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.cpp:4856:34: error: request for member 'begin' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4856 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                  ^~~~~
ClientManager.cpp:4856:64: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4856 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                                                ^~~
ClientManager.cpp:4860:6: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 4860 |      TEventManagerData& eventPtr = it->second[j];
      |      ^~~~~~~~~~~~~~~~~
      |      m_EventManager
ClientManager.cpp:4860:25: error: 'eventPtr' was not declared in this scope
 4860 |      TEventManagerData& eventPtr = it->second[j];
      |                         ^~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::UpdateEventManager()':
ClientManager.cpp:4879:33: error: request for member 'find' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4879 |  const auto it = m_EventManager.find(vKey.tm_mday);
      |                                 ^~~~
ClientManager.cpp:4880:27: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4880 |  if (it != m_EventManager.end())
      |                           ^~~
ClientManager.cpp:4886:5: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 4886 |     TEventManagerData& pData = it->second[j];
      |     ^~~~~~~~~~~~~~~~~
      |     m_EventManager
In file included from Marriage.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.cpp:4886:24: error: 'pData' was not declared in this scope
 4886 |     TEventManagerData& pData = it->second[j];
      |                        ^~~~~
ClientManager.cpp:4905:28: error: 'EVENT_MANAGER_EVENT_STATUS' was not declared in this scope
 4905 |      const BYTE subIndex = EVENT_MANAGER_EVENT_STATUS;
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
ClientManager.cpp:4911:20: error: 'HEADER_DG_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_DG_ELECT_MONARCH'?
 4911 |      ForwardPacket(HEADER_DG_EVENT_MANAGER, buf.read_peek(), buf.size());
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
      |                    HEADER_DG_ELECT_MONARCH
ClientManager.cpp: At global scope:
ClientManager.cpp:4918:25: error: 'TEventManagerData' does not name a type
 4918 | bool SortWithTime(const TEventManagerData& a, const TEventManagerData& b)
      |                         ^~~~~~~~~~~~~~~~~
gmake[1]: *** [Makefile:108: .obj/PrivManager.o] Error 1
ClientManager.cpp:4918:53: error: 'TEventManagerData' does not name a type
 4918 | bool SortWithTime(const TEventManagerData& a, const TEventManagerData& b)
      |                                                     ^~~~~~~~~~~~~~~~~
ClientManager.cpp: In function 'bool SortWithTime(const int&, const int&)':
ClientManager.cpp:4920:12: error: request for member 'startTime' in 'a', which is of non-class type 'const int'
 4920 |  return (a.startTime < b.startTime);
      |            ^~~~~~~~~
gmake[1]: *** [Makefile:109: .obj/MoneyLog.o] Error 1
ClientManager.cpp:4920:26: error: request for member 'startTime' in 'b', which is of non-class type 'const int'
 4920 |  return (a.startTime < b.startTime);
      |                          ^~~~~~~~~
ClientManager.cpp: In member function 'bool CClientManager::InitializeEventManager(bool)':
ClientManager.cpp:4924:17: error: request for member 'clear' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4924 |  m_EventManager.clear();
      |                 ^~~~~
ClientManager.cpp:4938:4: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 4938 |    TEventManagerData p;
      |    ^~~~~~~~~~~~~~~~~
      |    m_EventManager
ClientManager.cpp:4939:18: error: 'p' was not declared in this scope
 4939 |    str_to_number(p.eventID, row[col++]);
      |                  ^
ClientManager.cpp:4965:36: error: request for member 'find' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4965 |     const auto it = m_EventManager.find(vEventStartKey.tm_mday);
      |                                    ^~~~
ClientManager.cpp:4966:30: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4966 |     if (it != m_EventManager.end())
      |                              ^~~
ClientManager.cpp:4970:35: error: template argument 2 is invalid
 4970 |      std::vector<TEventManagerData> m_vec;
      |                                   ^
ClientManager.cpp:4971:12: error: request for member 'emplace_back' in 'm_vec', which is of non-class type 'int'
 4971 |      m_vec.emplace_back(p);
      |            ^~~~~~~~~~~~
ClientManager.cpp:4972:21: error: request for member 'emplace' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4972 |      m_EventManager.emplace(vEventStartKey.tm_mday, m_vec);
      |                     ^~~~~~~
ClientManager.cpp:4977:36: error: request for member 'find' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4977 |     const auto it = m_EventManager.find(vEventEndKey.tm_mday);
      |                                    ^~~~
ClientManager.cpp:4978:30: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4978 |     if (it != m_EventManager.end())
      |                              ^~~
ClientManager.cpp:4982:35: error: template argument 2 is invalid
 4982 |      std::vector<TEventManagerData> m_vec;
      |                                   ^
ClientManager.cpp:4983:12: error: request for member 'emplace_back' in 'm_vec', which is of non-class type 'int'
 4983 |      m_vec.emplace_back(p);
      |            ^~~~~~~~~~~~
ClientManager.cpp:4984:21: error: request for member 'emplace' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4984 |      m_EventManager.emplace(vEventEndKey.tm_mday, m_vec);
      |                     ^~~~~~~
ClientManager.cpp:4988:22: error: request for member 'size' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4988 |   if (m_EventManager.size())
      |                      ^~~~
ClientManager.cpp:4990:34: error: request for member 'begin' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4990 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                  ^~~~~
ClientManager.cpp:4990:64: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4990 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                                                ^~~
ClientManager.cpp: In member function 'void CClientManager::SendEventData(CPeer*, bool)':
ClientManager.cpp:5000:24: error: 'EVENT_MANAGER_LOAD' was not declared in this scope
 5000 |  const BYTE subIndex = EVENT_MANAGER_LOAD;
      |                        ^~~~~~~~~~~~~~~~~~
ClientManager.cpp:5001:39: error: request for member 'size' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 5001 |  const BYTE dayCount = m_EventManager.size();
      |                                       ^~~~
ClientManager.cpp:5007:19: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
 5007 |  for (const auto& [dayIndex, dayData] : m_EventManager)
      |                   ^
ClientManager.cpp:5007:41: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
 5007 |  for (const auto& [dayIndex, dayData] : m_EventManager)
      |                                         ^~~~~~~~~~~~~~
      |                                         std::begin
In file included from /usr/local/lib/gcc10/include/c++/string:54,
                 from ../../../Extern/include/msl/utils.h:18,
                 from ../../common/utils.h:1,
                 from stdafx.h:16,
                 from ClientManager.cpp:2:
/usr/local/lib/gcc10/include/c++/bits/range_access.h:108:37: note: 'std::begin' declared here
  108 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
      |                                     ^~~~~
ClientManager.cpp:5007:41: error: 'end' was not declared in this scope; did you mean 'std::end'?
 5007 |  for (const auto& [dayIndex, dayData] : m_EventManager)
      |                                         ^~~~~~~~~~~~~~
      |                                         std::end
In file included from /usr/local/lib/gcc10/include/c++/string:54,
                 from ../../../Extern/include/msl/utils.h:18,
                 from ../../common/utils.h:1,
                 from stdafx.h:16,
                 from ClientManager.cpp:2:
/usr/local/lib/gcc10/include/c++/bits/range_access.h:110:37: note: 'std::end' declared here
  110 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
      |                                     ^~~
ClientManager.cpp:5013:53: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 5013 |    buf.write(dayData.data(), dayEventCount * sizeof(TEventManagerData));
      |                                                     ^~~~~~~~~~~~~~~~~
      |                                                     m_EventManager
ClientManager.cpp:5018:24: error: 'HEADER_DG_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_DG_ELECT_MONARCH'?
 5018 |   pkPeer->EncodeHeader(HEADER_DG_EVENT_MANAGER, 0, buf.size());
      |                        ^~~~~~~~~~~~~~~~~~~~~~~
      |                        HEADER_DG_ELECT_MONARCH
ClientManager.cpp:5022:17: error: 'HEADER_DG_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_DG_ELECT_MONARCH'?
 5022 |   ForwardPacket(HEADER_DG_EVENT_MANAGER, buf.read_peek(), buf.size());
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
      |                 HEADER_DG_ELECT_MONARCH
gmake[1]: *** [Makefile:106: .obj/GuildManager.o] Error 1
gmake[1]: *** [Makefile:106: .obj/ClientManagerEventFlag.o] Error 1
gmake[1]: *** [Makefile:106: .obj/ItemAwardManager.o] Error 1
gmake[1]: *** [Makefile:106: .obj/Marriage.o] Error 1
gmake[1]: *** [Makefile:106: .obj/ClientManager.o] Error 1
gmake[1]: Leaving directory '/usr/src/game/Server/db/src'
gmake: *** [Makefile:117: all] Error 2
 
dediğin şekilde game den alıp db aktardım makefile ekledim artık kendimi şu sistemi eklerken gerizekalı gibi hissetmeye başladım


Kod:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from Main.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
compiling ClientManagerEventFlag.cpp
In file included from Cache.cpp:6:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
compiling Marriage.cpp
In file included from NetBase.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
compiling Monarch.cpp
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from LoginData.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
In file included from ClientManagerPlayer.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.h:200:46: error: template argument 4 is invalid
compiling BlockCountry.cpp
In file included from ClientManager.cpp:10:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
gmake[1]: *** [Makefile:107: .obj/Cache.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: *** [Makefile:107: .obj/DBManager.o] Error 1
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerBoot.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/NetBase.o] Error 1
gmake[1]: *** [Makefile:107: .obj/Main.o] Error 1
gmake[1]: *** [Makefile:107: .obj/LoginData.o] Error 1
In file included from ClientManagerGuild.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerParty.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerLogin.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/ClientManagerPlayer.o] Error 1
In file included from GuildManager.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from PrivManager.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
gmake[1]: *** [Makefile:107: .obj/ClientManagerLogin.o] Error 1
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
gmake[1]: *** [Makefile:107: .obj/ClientManagerGuild.o] Error 1
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/ClientManagerParty.o] Error 1
In file included from MoneyLog.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::ProcessPackets(CPeer*)':
ClientManager.cpp:3116:8: error: 'HEADER_GD_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_GD_ELECT_MONARCH'?
 3116 |   case HEADER_GD_EVENT_MANAGER:
      |        ^~~~~~~~~~~~~~~~~~~~~~~
      |        HEADER_GD_ELECT_MONARCH
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.cpp: In function 'bool IsDontHaveEndTimeEvent(BYTE)':
ClientManager.cpp:4836:8: error: 'EMPIRE_WAR_EVENT' was not declared in this scope
 4836 |   case EMPIRE_WAR_EVENT:
      |        ^~~~~~~~~~~~~~~~
ClientManager.cpp:4837:8: error: 'TOURNAMENT_EVENT' was not declared in this scope
 4837 |   case TOURNAMENT_EVENT:
      |        ^~~~~~~~~~~~~~~~
In file included from ItemAwardManager.cpp:7:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.cpp: In member function 'void CClientManager::RecvEventManagerPacket(const char*)':
ClientManager.cpp:4847:18: error: 'EVENT_MANAGER_UPDATE' was not declared in this scope
 4847 |  if (subIndex == EVENT_MANAGER_UPDATE)
      |                  ^~~~~~~~~~~~~~~~~~~~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerEventFlag.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.cpp:4849:23: error: 'EVENT_MANAGER_REMOVE_EVENT' was not declared in this scope
 4849 |  else if (subIndex == EVENT_MANAGER_REMOVE_EVENT)
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.cpp:4854:22: error: request for member 'size' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4854 |   if (m_EventManager.size())
      |                      ^~~~
gmake[1]: *** [Makefile:107: .obj/ClientManagerBoot.o] Error 1
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.cpp:4856:34: error: request for member 'begin' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4856 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                  ^~~~~
ClientManager.cpp:4856:64: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4856 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                                                ^~~
ClientManager.cpp:4860:6: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 4860 |      TEventManagerData& eventPtr = it->second[j];
      |      ^~~~~~~~~~~~~~~~~
      |      m_EventManager
ClientManager.cpp:4860:25: error: 'eventPtr' was not declared in this scope
 4860 |      TEventManagerData& eventPtr = it->second[j];
      |                         ^~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::UpdateEventManager()':
ClientManager.cpp:4879:33: error: request for member 'find' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4879 |  const auto it = m_EventManager.find(vKey.tm_mday);
      |                                 ^~~~
ClientManager.cpp:4880:27: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4880 |  if (it != m_EventManager.end())
      |                           ^~~
ClientManager.cpp:4886:5: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 4886 |     TEventManagerData& pData = it->second[j];
      |     ^~~~~~~~~~~~~~~~~
      |     m_EventManager
In file included from Marriage.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.cpp:4886:24: error: 'pData' was not declared in this scope
 4886 |     TEventManagerData& pData = it->second[j];
      |                        ^~~~~
ClientManager.cpp:4905:28: error: 'EVENT_MANAGER_EVENT_STATUS' was not declared in this scope
 4905 |      const BYTE subIndex = EVENT_MANAGER_EVENT_STATUS;
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
ClientManager.cpp:4911:20: error: 'HEADER_DG_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_DG_ELECT_MONARCH'?
 4911 |      ForwardPacket(HEADER_DG_EVENT_MANAGER, buf.read_peek(), buf.size());
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
      |                    HEADER_DG_ELECT_MONARCH
ClientManager.cpp: At global scope:
ClientManager.cpp:4918:25: error: 'TEventManagerData' does not name a type
 4918 | bool SortWithTime(const TEventManagerData& a, const TEventManagerData& b)
      |                         ^~~~~~~~~~~~~~~~~
gmake[1]: *** [Makefile:108: .obj/PrivManager.o] Error 1
ClientManager.cpp:4918:53: error: 'TEventManagerData' does not name a type
 4918 | bool SortWithTime(const TEventManagerData& a, const TEventManagerData& b)
      |                                                     ^~~~~~~~~~~~~~~~~
ClientManager.cpp: In function 'bool SortWithTime(const int&, const int&)':
ClientManager.cpp:4920:12: error: request for member 'startTime' in 'a', which is of non-class type 'const int'
 4920 |  return (a.startTime < b.startTime);
      |            ^~~~~~~~~
gmake[1]: *** [Makefile:109: .obj/MoneyLog.o] Error 1
ClientManager.cpp:4920:26: error: request for member 'startTime' in 'b', which is of non-class type 'const int'
 4920 |  return (a.startTime < b.startTime);
      |                          ^~~~~~~~~
ClientManager.cpp: In member function 'bool CClientManager::InitializeEventManager(bool)':
ClientManager.cpp:4924:17: error: request for member 'clear' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4924 |  m_EventManager.clear();
      |                 ^~~~~
ClientManager.cpp:4938:4: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 4938 |    TEventManagerData p;
      |    ^~~~~~~~~~~~~~~~~
      |    m_EventManager
ClientManager.cpp:4939:18: error: 'p' was not declared in this scope
 4939 |    str_to_number(p.eventID, row[col++]);
      |                  ^
ClientManager.cpp:4965:36: error: request for member 'find' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4965 |     const auto it = m_EventManager.find(vEventStartKey.tm_mday);
      |                                    ^~~~
ClientManager.cpp:4966:30: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4966 |     if (it != m_EventManager.end())
      |                              ^~~
ClientManager.cpp:4970:35: error: template argument 2 is invalid
 4970 |      std::vector<TEventManagerData> m_vec;
      |                                   ^
ClientManager.cpp:4971:12: error: request for member 'emplace_back' in 'm_vec', which is of non-class type 'int'
 4971 |      m_vec.emplace_back(p);
      |            ^~~~~~~~~~~~
ClientManager.cpp:4972:21: error: request for member 'emplace' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4972 |      m_EventManager.emplace(vEventStartKey.tm_mday, m_vec);
      |                     ^~~~~~~
ClientManager.cpp:4977:36: error: request for member 'find' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4977 |     const auto it = m_EventManager.find(vEventEndKey.tm_mday);
      |                                    ^~~~
ClientManager.cpp:4978:30: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4978 |     if (it != m_EventManager.end())
      |                              ^~~
ClientManager.cpp:4982:35: error: template argument 2 is invalid
 4982 |      std::vector<TEventManagerData> m_vec;
      |                                   ^
ClientManager.cpp:4983:12: error: request for member 'emplace_back' in 'm_vec', which is of non-class type 'int'
 4983 |      m_vec.emplace_back(p);
      |            ^~~~~~~~~~~~
ClientManager.cpp:4984:21: error: request for member 'emplace' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4984 |      m_EventManager.emplace(vEventEndKey.tm_mday, m_vec);
      |                     ^~~~~~~
ClientManager.cpp:4988:22: error: request for member 'size' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4988 |   if (m_EventManager.size())
      |                      ^~~~
ClientManager.cpp:4990:34: error: request for member 'begin' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4990 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                  ^~~~~
ClientManager.cpp:4990:64: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4990 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                                                ^~~
ClientManager.cpp: In member function 'void CClientManager::SendEventData(CPeer*, bool)':
ClientManager.cpp:5000:24: error: 'EVENT_MANAGER_LOAD' was not declared in this scope
 5000 |  const BYTE subIndex = EVENT_MANAGER_LOAD;
      |                        ^~~~~~~~~~~~~~~~~~
ClientManager.cpp:5001:39: error: request for member 'size' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 5001 |  const BYTE dayCount = m_EventManager.size();
      |                                       ^~~~
ClientManager.cpp:5007:19: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
 5007 |  for (const auto& [dayIndex, dayData] : m_EventManager)
      |                   ^
ClientManager.cpp:5007:41: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
 5007 |  for (const auto& [dayIndex, dayData] : m_EventManager)
      |                                         ^~~~~~~~~~~~~~
      |                                         std::begin
In file included from /usr/local/lib/gcc10/include/c++/string:54,
                 from ../../../Extern/include/msl/utils.h:18,
                 from ../../common/utils.h:1,
                 from stdafx.h:16,
                 from ClientManager.cpp:2:
/usr/local/lib/gcc10/include/c++/bits/range_access.h:108:37: note: 'std::begin' declared here
  108 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
      |                                     ^~~~~
ClientManager.cpp:5007:41: error: 'end' was not declared in this scope; did you mean 'std::end'?
 5007 |  for (const auto& [dayIndex, dayData] : m_EventManager)
      |                                         ^~~~~~~~~~~~~~
      |                                         std::end
In file included from /usr/local/lib/gcc10/include/c++/string:54,
                 from ../../../Extern/include/msl/utils.h:18,
                 from ../../common/utils.h:1,
                 from stdafx.h:16,
                 from ClientManager.cpp:2:
/usr/local/lib/gcc10/include/c++/bits/range_access.h:110:37: note: 'std::end' declared here
  110 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
      |                                     ^~~
ClientManager.cpp:5013:53: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 5013 |    buf.write(dayData.data(), dayEventCount * sizeof(TEventManagerData));
      |                                                     ^~~~~~~~~~~~~~~~~
      |                                                     m_EventManager
ClientManager.cpp:5018:24: error: 'HEADER_DG_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_DG_ELECT_MONARCH'?
 5018 |   pkPeer->EncodeHeader(HEADER_DG_EVENT_MANAGER, 0, buf.size());
      |                        ^~~~~~~~~~~~~~~~~~~~~~~
      |                        HEADER_DG_ELECT_MONARCH
ClientManager.cpp:5022:17: error: 'HEADER_DG_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_DG_ELECT_MONARCH'?
 5022 |   ForwardPacket(HEADER_DG_EVENT_MANAGER, buf.read_peek(), buf.size());
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
      |                 HEADER_DG_ELECT_MONARCH
gmake[1]: *** [Makefile:106: .obj/GuildManager.o] Error 1
gmake[1]: *** [Makefile:106: .obj/ClientManagerEventFlag.o] Error 1
gmake[1]: *** [Makefile:106: .obj/ItemAwardManager.o] Error 1
gmake[1]: *** [Makefile:106: .obj/Marriage.o] Error 1
gmake[1]: *** [Makefile:106: .obj/ClientManager.o] Error 1
gmake[1]: Leaving directory '/usr/src/game/Server/db/src'
gmake: *** [Makefile:117: all] Error 2
estağfurullah ama eklemeyi eksik yapmışsın ya da eklemeyi yaptığın dosyaların bazıları service.h dosyasını görmüyor gibi. önce eklemelerini sonra da ekleme yaptığın dosyaların service.h ı görüp görmediğini kontrol et
 
estağfurullah ama eklemeyi eksik yapmışsın ya da eklemeyi yaptığın dosyaların bazıları service.h dosyasını görmüyor gibi. önce eklemelerini sonra da ekleme yaptığın dosyaların service.h ı görüp görmediğini kontrol et
tek tek kontrol ettim eklemeler doğru eksik yapmamışım yaptığım dosyaların yani eklediklerimin service.h yi görüp görmediğini nasıl anlayabilirim
 
tek tek kontrol ettim eklemeler doğru eksik yapmamışım yaptığım dosyaların yani eklediklerimin service.h yi görüp görmediğini nasıl anlayabilirim
hata aldığın dosyalara

#include "../../common/service.h" ekleyip dene
 
hata aldığın dosyalara

#include "../../common/service.h" ekleyip dene
dediğin şekilde ekledim denedim aşağıdaki sonuç çıktı


Kod:
In file included from NetBase.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
compiling PrivManager.cpp
compiling MoneyLog.cpp
compiling ItemAwardManager.cpp
gmake[1]: *** [Makefile:107: .obj/NetBase.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
In file included from Cache.cpp:6:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from Main.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from LoginData.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
In file included from DBManager.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerLogin.cpp:5:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/Cache.o] Error 1
In file included from ClientManager.cpp:10:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
gmake[1]: *** [Makefile:107: .obj/DBManager.o] Error 1
In file included from ClientManagerParty.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
gmake[1]: *** [Makefile:107: .obj/LoginData.o] Error 1
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerPlayer.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
In file included from ClientManagerGuild.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from ClientManagerBoot.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:107: .obj/ClientManagerLogin.o] Error 1
gmake[1]: *** [Makefile:107: .obj/Main.o] Error 1
In file included from GuildManager.cpp:4:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
gmake[1]: *** [Makefile:106: .obj/ClientManagerGuild.o] Error 1
gmake[1]: *** [Makefile:106: .obj/ClientManagerParty.o] Error 1
gmake[1]: *** [Makefile:108: .obj/ClientManagerPlayer.o] Error 1
In file included from ItemAwardManager.cpp:7:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.cpp: In member function 'void CClientManager::ProcessPackets(CPeer*)':
ClientManager.cpp:3116:8: error: 'HEADER_GD_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_GD_ELECT_MONARCH'?
 3116 |   case HEADER_GD_EVENT_MANAGER:
      |        ^~~~~~~~~~~~~~~~~~~~~~~
      |        HEADER_GD_ELECT_MONARCH
In file included from PrivManager.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
In file included from MoneyLog.cpp:3:
ClientManager.h:200:29: error: 'TEventManagerData' was not declared in this scope
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                             ^~~~~~~~~~~~~~~~~
ClientManager.h:200:29: error: template argument 1 is invalid
ClientManager.h:200:29: error: template argument 2 is invalid
ClientManager.h:200:46: error: template argument 2 is invalid
  200 |  std::map<BYTE, std::vector<TEventManagerData>> m_EventManager;
      |                                              ^~
ClientManager.h:200:46: error: template argument 4 is invalid
ClientManager.cpp: In function 'bool IsDontHaveEndTimeEvent(BYTE)':
ClientManager.cpp:4836:8: error: 'EMPIRE_WAR_EVENT' was not declared in this scope
 4836 |   case EMPIRE_WAR_EVENT:
      |        ^~~~~~~~~~~~~~~~
ClientManager.cpp:4837:8: error: 'TOURNAMENT_EVENT' was not declared in this scope
 4837 |   case TOURNAMENT_EVENT:
      |        ^~~~~~~~~~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::RecvEventManagerPacket(const char*)':
ClientManager.cpp:4847:18: error: 'EVENT_MANAGER_UPDATE' was not declared in this scope
 4847 |  if (subIndex == EVENT_MANAGER_UPDATE)
      |                  ^~~~~~~~~~~~~~~~~~~~
gmake[1]: *** [Makefile:106: .obj/ClientManagerBoot.o] Error 1
ClientManager.cpp:4849:23: error: 'EVENT_MANAGER_REMOVE_EVENT' was not declared in this scope
 4849 |  else if (subIndex == EVENT_MANAGER_REMOVE_EVENT)
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
ClientManager.cpp:4854:22: error: request for member 'size' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4854 |   if (m_EventManager.size())
      |                      ^~~~
ClientManager.cpp:4856:34: error: request for member 'begin' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4856 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                  ^~~~~
ClientManager.cpp:4856:64: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4856 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                                                ^~~
ClientManager.cpp:4860:6: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 4860 |      TEventManagerData& eventPtr = it->second[j];
      |      ^~~~~~~~~~~~~~~~~
      |      m_EventManager
ClientManager.cpp:4860:25: error: 'eventPtr' was not declared in this scope
 4860 |      TEventManagerData& eventPtr = it->second[j];
      |                         ^~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::UpdateEventManager()':
ClientManager.cpp:4879:33: error: request for member 'find' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4879 |  const auto it = m_EventManager.find(vKey.tm_mday);
      |                                 ^~~~
ClientManager.cpp:4880:27: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4880 |  if (it != m_EventManager.end())
      |                           ^~~
ClientManager.cpp:4886:5: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 4886 |     TEventManagerData& pData = it->second[j];
      |     ^~~~~~~~~~~~~~~~~
      |     m_EventManager
ClientManager.cpp:4886:24: error: 'pData' was not declared in this scope
 4886 |     TEventManagerData& pData = it->second[j];
      |                        ^~~~~
ClientManager.cpp:4905:28: error: 'EVENT_MANAGER_EVENT_STATUS' was not declared in this scope
 4905 |      const BYTE subIndex = EVENT_MANAGER_EVENT_STATUS;
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
ClientManager.cpp:4911:20: error: 'HEADER_DG_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_DG_ELECT_MONARCH'?
 4911 |      ForwardPacket(HEADER_DG_EVENT_MANAGER, buf.read_peek(), buf.size());
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
      |                    HEADER_DG_ELECT_MONARCH
gmake[1]: *** [Makefile:106: .obj/MoneyLog.o] Error 1
ClientManager.cpp: At global scope:
ClientManager.cpp:4918:25: error: 'TEventManagerData' does not name a type
 4918 | bool SortWithTime(const TEventManagerData& a, const TEventManagerData& b)
      |                         ^~~~~~~~~~~~~~~~~
ClientManager.cpp:4918:53: error: 'TEventManagerData' does not name a type
 4918 | bool SortWithTime(const TEventManagerData& a, const TEventManagerData& b)
      |                                                     ^~~~~~~~~~~~~~~~~
ClientManager.cpp: In function 'bool SortWithTime(const int&, const int&)':
ClientManager.cpp:4920:12: error: request for member 'startTime' in 'a', which is of non-class type 'const int'
 4920 |  return (a.startTime < b.startTime);
      |            ^~~~~~~~~
ClientManager.cpp:4920:26: error: request for member 'startTime' in 'b', which is of non-class type 'const int'
 4920 |  return (a.startTime < b.startTime);
      |                          ^~~~~~~~~
ClientManager.cpp: In member function 'bool CClientManager::InitializeEventManager(bool)':
ClientManager.cpp:4924:17: error: request for member 'clear' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4924 |  m_EventManager.clear();
      |                 ^~~~~
gmake[1]: *** [Makefile:106: .obj/GuildManager.o] Error 1
gmake[1]: *** [Makefile:106: .obj/PrivManager.o] Error 1
gmake[1]: *** [Makefile:106: .obj/ItemAwardManager.o] Error 1
ClientManager.cpp:4938:4: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 4938 |    TEventManagerData p;
      |    ^~~~~~~~~~~~~~~~~
      |    m_EventManager
ClientManager.cpp:4939:18: error: 'p' was not declared in this scope
 4939 |    str_to_number(p.eventID, row[col++]);
      |                  ^
ClientManager.cpp:4965:36: error: request for member 'find' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4965 |     const auto it = m_EventManager.find(vEventStartKey.tm_mday);
      |                                    ^~~~
ClientManager.cpp:4966:30: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4966 |     if (it != m_EventManager.end())
      |                              ^~~
ClientManager.cpp:4970:35: error: template argument 2 is invalid
 4970 |      std::vector<TEventManagerData> m_vec;
      |                                   ^
ClientManager.cpp:4971:12: error: request for member 'emplace_back' in 'm_vec', which is of non-class type 'int'
 4971 |      m_vec.emplace_back(p);
      |            ^~~~~~~~~~~~
ClientManager.cpp:4972:21: error: request for member 'emplace' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4972 |      m_EventManager.emplace(vEventStartKey.tm_mday, m_vec);
      |                     ^~~~~~~
ClientManager.cpp:4977:36: error: request for member 'find' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4977 |     const auto it = m_EventManager.find(vEventEndKey.tm_mday);
      |                                    ^~~~
ClientManager.cpp:4978:30: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4978 |     if (it != m_EventManager.end())
      |                              ^~~
ClientManager.cpp:4982:35: error: template argument 2 is invalid
 4982 |      std::vector<TEventManagerData> m_vec;
      |                                   ^
ClientManager.cpp:4983:12: error: request for member 'emplace_back' in 'm_vec', which is of non-class type 'int'
 4983 |      m_vec.emplace_back(p);
      |            ^~~~~~~~~~~~
ClientManager.cpp:4984:21: error: request for member 'emplace' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4984 |      m_EventManager.emplace(vEventEndKey.tm_mday, m_vec);
      |                     ^~~~~~~
ClientManager.cpp:4988:22: error: request for member 'size' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4988 |   if (m_EventManager.size())
      |                      ^~~~
ClientManager.cpp:4990:34: error: request for member 'begin' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4990 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                  ^~~~~
ClientManager.cpp:4990:64: error: request for member 'end' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 4990 |    for (auto it = m_EventManager.begin(); it != m_EventManager.end(); ++it)
      |                                                                ^~~
ClientManager.cpp: In member function 'void CClientManager::SendEventData(CPeer*, bool)':
ClientManager.cpp:5000:24: error: 'EVENT_MANAGER_LOAD' was not declared in this scope
 5000 |  const BYTE subIndex = EVENT_MANAGER_LOAD;
      |                        ^~~~~~~~~~~~~~~~~~
ClientManager.cpp:5001:39: error: request for member 'size' in '((CClientManager*)this)->CClientManager::m_EventManager', which is of non-class type 'int'
 5001 |  const BYTE dayCount = m_EventManager.size();
      |                                       ^~~~
ClientManager.cpp:5007:19: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
 5007 |  for (const auto& [dayIndex, dayData] : m_EventManager)
      |                   ^
ClientManager.cpp:5007:41: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
 5007 |  for (const auto& [dayIndex, dayData] : m_EventManager)
      |                                         ^~~~~~~~~~~~~~
      |                                         std::begin
In file included from /usr/local/lib/gcc10/include/c++/string:54,
                 from ../../../Extern/include/msl/utils.h:18,
                 from ../../common/utils.h:1,
                 from stdafx.h:16,
                 from ClientManager.cpp:2:
/usr/local/lib/gcc10/include/c++/bits/range_access.h:108:37: note: 'std::begin' declared here
  108 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
      |                                     ^~~~~
ClientManager.cpp:5007:41: error: 'end' was not declared in this scope; did you mean 'std::end'?
 5007 |  for (const auto& [dayIndex, dayData] : m_EventManager)
      |                                         ^~~~~~~~~~~~~~
      |                                         std::end
In file included from /usr/local/lib/gcc10/include/c++/string:54,
                 from ../../../Extern/include/msl/utils.h:18,
                 from ../../common/utils.h:1,
                 from stdafx.h:16,
                 from ClientManager.cpp:2:
/usr/local/lib/gcc10/include/c++/bits/range_access.h:110:37: note: 'std::end' declared here
  110 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
      |                                     ^~~
ClientManager.cpp:5013:53: error: 'TEventManagerData' was not declared in this scope; did you mean 'm_EventManager'?
 5013 |    buf.write(dayData.data(), dayEventCount * sizeof(TEventManagerData));
      |                                                     ^~~~~~~~~~~~~~~~~
      |                                                     m_EventManager
ClientManager.cpp:5018:24: error: 'HEADER_DG_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_DG_ELECT_MONARCH'?
 5018 |   pkPeer->EncodeHeader(HEADER_DG_EVENT_MANAGER, 0, buf.size());
      |                        ^~~~~~~~~~~~~~~~~~~~~~~
      |                        HEADER_DG_ELECT_MONARCH
ClientManager.cpp:5022:17: error: 'HEADER_DG_EVENT_MANAGER' was not declared in this scope; did you mean 'HEADER_DG_ELECT_MONARCH'?
 5022 |   ForwardPacket(HEADER_DG_EVENT_MANAGER, buf.read_peek(), buf.size());
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
      |                 HEADER_DG_ELECT_MONARCH
gmake[1]: *** [Makefile:106: .obj/ClientManager.o] Error 1
 
clientmanagereventflag dosyasını yeni mi çektin? onu makefileye ekledin mi?
 
Geri
Üst