Çözüldü Db compile hatası

Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

atatune

Üye
Üye
Mesaj
16
Çözümler
2
Beğeni
2
Puan
43
Ticaret Puanı
0
Bir Battle-Pass sistemi entegre etmeye çalışıyorum, DB Compile sırasında bu hata mesajını alıyorum. düşüncem tanımlanan yapının bulunduğu dosya import edilmediği için elemanları kullanamıyor ama (sanırım) tanımlanmış dosyayı (tables.h) import edince de sorun düzelmiyor. Farklı bir çözüm yolu olduğunu düşünüyorum. (aynı elemanların kullanımı gamecompile sırasında sorun çıkarmıyor.)

HATA MESAJI:
Genişlet Daralt Kopyala
In file included from NetBase.cpp:In file included from LoginData.cpp:3:
In file included from 4./ClientManager.h:250:59: error: unknown type name 'TPlayerBattlePassMission'
  250 |         void QUERY_SAVE_BATTLE_PASS(CPeer* peer, DWORD dwHandle, TPlayMain.cpp:5:
./ClientManager.h:250:59: error: unknown type name 'TPlayerBattlePassMission'
e  :
rBattlePassMission* battlePass);
      |                                                                  ^
compile ClientManager.cpp
./ClientManager.hIn file included from :251:59: error: unknown type name 'TBattlePassRegisterRanking'
  251 |         void QUERY_REGISTER_RANKING(CPeer* peer, DWORD dwHandle, TBattlePassRegisterRanking* pRanking);
      |                                                                  ^
250 | DBManager.cpp:3./ClientManager.h:250:59: error: unknown type name 'TPlayerBattlePassMission'
  250 |         void QUERY_SAVE_BATTLE_PAS:
./ClientManager.h:250:59: error: unknown type name 'TPlayerBattlePassMission'
S  250 |         void QUERY_SAVE_BATTLE_PASS(CPeer* peer, DWORD dwHandle, TPlayerBattlePassMission* battlePass);
      |                                                                  ^
(CPeer* peer, DWORD dw        void QUERY_SAVE_BATTLE_PASS(CPeer* peer, DWORD dwHandle, TPlayerBattlePassMission* battlePass);
      |                                                                  ^
Handle, TPlayerBattlePassMission* battlePass);
      |                                                                  ^
./ClientManager.h:251:59: error: unknown type name 'TBattlePassRegisterRanking'
  251 |         void QUERY_REGISTER_RANKING(CPeer* peer, DWORD dwHandle, TBattlePassRegisterRanking* pRanking);
      |                                                                  ^
compile ClientManagerPlayer.cpp
In file included from ./ClientManager.h:251:59: error: unknown type name 'TBattlePassRegisterRanking'
  251 |         void QUERY_REGISTER_RANKING(CPeer* peer, DWORD dwHandle, TBattlePassRegisterRanking* pRanking);
      |                                                                  ^
Cache.cpp./ClientManager.h:251:59: error: unknown type name 'TBattlePassRegisterRanking'
  251 |         void QUERY_REGISTER_RANKING(CPeer* peer, DWORD dwHandle, TBattlePassRegisterRanking* pRanking);
      |                                                                  ^
:6:
./ClientManager.h:250compile ClientManagerLogin.cpp
:./ClientManager.h:454:14: error: use of undeclared identifier 'TBattlePassRanking'
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                     ^
./ClientManager.h:454:34: error: expected expression
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                                         ^
59./ClientManager.h::454./ClientManager.h:454:14: error: use of undeclared identifier 'TBattlePassRanking'
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                     ^
:14: error: use of undeclared identifier 'TBattlePassRanking'
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                     ^
./ClientManager.h./ClientManager.h:454:34: error: expected expression
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                                         ^
:454:34: error: expected expression
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                                         ^
 compile ClientManagerBoot.cpp
./ClientManager.h:error: 454:14: error: use of undeclared identifier 'TBattlePassRanking'
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                     ^
./ClientManager.h:454:34: error: expected expression
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                                         ^
4 errors generated4 errors generated.
.
gmake: *** [Makefile:58: .obj/LoginData.o] Error 1
gmake: *** Waiting for unfinished jobs....
unknown type name 'TPlayerBattlePassMission'
  250 |         void QUERY_SAVE_BATTLE_PASS(CPeer* peer, DWORD dwHandle, TPlayerBattlePassMission* battlePass);
      |                                                                  ^
gmake: *** [Makefile:58: .obj/NetBase.o] Error 1
./ClientManager.h:251:59: error: unknown type name 'TBattlePassRegisterRanking'
  251 |         void QUERY_REGISTER_RANKING(CPeer* peer, DWORD dwHandle, TBattlePassRegisterRanking* pRanking);
      |                                                                  ^
4 errors generated.
gmake: *** [Makefile:58: .obj/DBManager.o] Error 1
4 errors generated.
gmake: *** [Makefile:58: .obj/Main.o] Error 1
./ClientManager.h:454:14: error: use of undeclared identifier 'TBattlePassRanking'
  454 |         stdIn file included from ClientManager.cpp:9:
./ClientManager.h:250:59: error: unknown type name 'TPlayerBattlePassMission'
  250 |         void QUERY_SAVE_BATTLE_PASS(CPeer* peer, DWORD dwHandle, TPlayerBattlePassMission* battlePass);
      |                                                                  ^
::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                     ^
./ClientManager.h:454:34: error: expected expression
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                                         ^
./ClientManager.h:251:59: In file included from ClientManagerPlayer.cpp:4:
./ClientManager.h:250:59: error: unknown type name 'TPlayerBattlePassMission'
  250 |         void QUERY_SAVE_BATTLE_PASS(CPeer* peer,4error: unknown type name 'TBattlePassRegisterRanking'
  251 |         void QUERY_REGISTER_RANKING(CPeer* peer, DWORD dwHandle, TBattlePassRegisterRanking* pRanking);
      |                                                                  ^
 DWORD dwHandle, TPlayerBattlePassMission* battlePass);
      |                                                                  ^
./ClientManager.h:251:59: error: unknown type name 'TBattlePassRegisterRanking'
  251 |         void QUERY_REGISTER_RANKING(CPeer* peer, DWORD dwHandle, TBattlePassRegisterRanking* pRanking);
      |                                                                  ^
 errors generated.
gmake: *** [Makefile:58: .obj/Cache.o] Error 1
./ClientManager.h:454:14: error: use of undeclared identifier 'TBattlePassRanking'
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                     ^
./ClientManager.h:454:34: error: expected expression
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                                         ^
./ClientManager.h:454:14: error: use of undeclared identifier 'TBattlePassRanking'
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                     ^
./ClientManager.h:454:34: error: expected expression
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                                         ^
ClientManagerPlayer.cpp:165:12: error: no member named 'dwBattlePassEndTime' in 'SPlayerTable'
  165 |                 , pkTab->dwBattlePassEndTime
      |                   ~~~~~  ^
In file included from ClientManagerLogin.cpp:4:
./ClientManager.h:250:59: error: unknown type name 'TPlayerBattlePassMission'
  250 |         void QUERY_SAVE_BATTLE_PASS(CPeer* peer, DWORD dwHandle, TPlayerBattlePassMission* battlePass);
      |                                                                  ^
./ClientManager.h:251:59: error: unknown type name 'TBattlePassRegisterRanking'
  251 |         void QUERY_REGISTER_RANKING(CPeer* peer, DWORD dwHandle, TBattlePassRegisterRanking* pRanking);
      |                                                                  ^
ClientManagerPlayer.cpp:381:5: error: expected ')'
  381 |                                 GetTablePostfix(), packet->player_id);
      |                                 ^
ClientManagerPlayer.cpp:371:11: note: to match this '('
  371 |                 snprintf(queryStr, sizeof(queryStr),
      |                         ^
ClientManagerPlayer.cpp:544:23: error: no member named 'dwBattlePassEndTime' in 'SPlayerTable'
  544 |         str_to_number(pkTab->dwBattlePassEndTime, row[col++]);
      |                       ~~~~~  ^
ClientManagerPlayer.cpp:813:3: error: unknown type name 'TPlayerBattlePassMission'
  813 |                 TPlayerBattlePassMission pbpTable = { 0 };
      |                 ^
ClientManagerPlayer.cpp:817:99: error: use of undeclared identifier 'TPlayerBattlePassMission'
  817 |                 peer->EncodeHeader(HEADER_DG_BATTLE_PASS_LOAD, dwHandle, sizeof(DWORD) + sizeof(DWORD) + sizeof(TPlayerBattlePassMission) * dwCount);
      |                                                                                                                 ^
ClientManagerPlayer.cpp:817:22: error: use of undeclared identifier 'HEADER_DG_BATTLE_PASS_LOAD'; did you mean 'RESULT_BATTLE_PASS_LOAD'?
  817 |                 peer->EncodeHeader(HEADER_DG_BATTLE_PASS_LOAD, dwHandle, sizeof(DWORD) + sizeof(DWORD) + sizeof(TPlayerBattlePassMission) * dwCount);
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                    RESULT_BATTLE_PASS_LOAD
ClientManagerPlayer.cpp:806:22: note: 'RESULT_BATTLE_PASS_LOAD' declared here
  806 | void CClientManager::RESULT_BATTLE_PASS_LOAD(CPeer* peer, MYSQL_RES* pRes, DWORD dwHandle, DWORD dwRealPID)
      |                      ^
./ClientManager.h:454:14: error: use of undeclared identifier 'TBattlePassRanking'
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                     ^In file included from ClientManagerBoot.cpp:4:
./ClientManager.h:250:59: error: unknown type name 'TPlayerBattlePassMission'

  250 |         void QUERY_SAVE_BATTLE_PASS(CPeer* peer, DWORD dwHandle, TPlayerBattlePassMission* battlePass);
      |                                                                  ^
./ClientManager.h:454:34: error: expected expression
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                                         ^
./ClientManager.h:251:59: error: unknown type name 'TBattlePassRegisterRanking'
  251 |         void QUERY_REGISTER_RANKING(CPeer* peer, DWORD dwHandle, TBattlePassRegisterRanking* pRanking);
      |                                                                  ^
ClientManagerPlayer.cpp:820:34: error: use of undeclared identifier 'TPlayerBattlePassMission'
  820 |                 peer->Encode(&pbpTable, sizeof(TPlayerBattlePassMission) * dwCount);
      |                                                ^
ClientManagerPlayer.cpp:824:21: error: use of undeclared identifier 'TPlayerBattlePassMission'
  824 |         static std::vector<TPlayerBattlePassMission> s_mission;
      |                            ^
ClientManagerPlayer.cpp:832:3: error: unknown type name 'TPlayerBattlePassMission'
  832 |                 TPlayerBattlePassMission& r = s_mission[i];
      |                 ^
ClientManagerPlayer.cpp:848:98: error: use of undeclared identifier 'TPlayerBattlePassMission'
  848 |         peer->EncodeHeader(HEADER_DG_BATTLE_PASS_LOAD, dwHandle, sizeof(DWORD) + sizeof(DWORD) + sizeof(TPlayerBattlePassMission) * dwCount);
      |                                                                                                         ^
ClientManagerPlayer.cpp:848:21: error: use of undeclared identifier 'HEADER_DG_BATTLE_PASS_LOAD'; did you mean 'RESULT_BATTLE_PASS_LOAD'?
  848 |         peer->EncodeHeader(HEADER_DG_BATTLE_PASS_LOAD, dwHandle, sizeof(DWORD) + sizeof(DWORD) + sizeof(TPlayerBattlePassMission) * dwCount);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                            RESULT_BATTLE_PASS_LOAD
ClientManagerPlayer.cpp:806:22: note: 'RESULT_BATTLE_PASS_LOAD' declared here
  806 | void CClientManager::RESULT_BATTLE_PASS_LOAD(CPeer* peer, MYSQL_RES* pRes, DWORD dwHandle, DWORD dwRealPID)
      |                      ^
ClientManagerPlayer.cpp:851:37: error: use of undeclared identifier 'TPlayerBattlePassMission'
  851 |         peer->Encode(&s_mission[0], sizeof(TPlayerBattlePassMission) * dwCount);
      |                                            ^
ClientManagerPlayer.cpp:854:74: error: unknown type name 'TPlayerBattlePassMission'
  854 | void CClientManager::QUERY_SAVE_BATTLE_PASS(CPeer* peer, DWORD dwHandle, TPlayerBattlePassMission* battlePass)
      |                                                                          ^
ClientManagerPlayer.cpp:891:3: error: use of undeclared identifier 'TBattlePassRanking'; did you mean 'LoadBattlePassRanking'?
  891 |                 TBattlePassRanking* ranking = new TBattlePassRanking;
      |                 ^~~~~~~~~~~~~~~~~~
      |                 LoadBattlePassRanking
ClientManagerPlayer.cpp:871:22: note: 'LoadBattlePassRanking' declared here
  871 | bool CClientManager::LoadBattlePassRanking()
      |                      ^
ClientManagerPlayer.cpp:891:3: error: reference to non-static member function must be called; did you mean to call it with no arguments?
  891 |                 TBattlePassRanking* ranking = new TBattlePassRanking;
      |                 ^~~~~~~~~~~~~~~~~~
      |                                   ()
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake: *** [Makefile:58: .obj/ClientManagerPlayer.o] Error 1
./ClientManager.h:454:14: error: use of undeclared identifier 'TBattlePassRanking'
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                     ^
./ClientManager.h:454:34: error: expected expression
  454 |         std::vector<TBattlePassRanking *> m_vec_battlePassRanking;
      |                                         ^
4 errors generated.
gmake: *** [Makefile:58: .obj/ClientManagerLogin.o] Error 1
ClientManager.cpp:2728:9: error: use of undeclared identifier 'HEADER_GD_SAVE_BATTLE_PASS'
 2728 |                         case HEADER_GD_SAVE_BATTLE_PASS:
      |                              ^
ClientManager.cpp:2729:45: error: use of undeclared identifier 'TPlayerBattlePassMission'
 2729 |                                 QUERY_SAVE_BATTLE_PASS(peer, dwHandle, (TPlayerBattlePassMission *)data);
      |                                                                         ^
ClientManager.cpp:2729:71: error: expected expression
 2729 |                                 QUERY_SAVE_BATTLE_PASS(peer, dwHandle, (TPlayerBattlePassMission *)data);
      |                                                                                                   ^
ClientManager.cpp:2732:9: error: use of undeclared identifier 'HEADER_GD_REGISTER_BP_RANKING'
 2732 |                         case HEADER_GD_REGISTER_BP_RANKING:
      |                              ^
ClientManager.cpp:2733:45: error: use of undeclared identifier 'TBattlePassRegisterRanking'
 2733 |                                 QUERY_REGISTER_RANKING(peer, dwHandle, (TBattlePassRegisterRanking *)data);
      |                                                                         ^
ClientManager.cpp:2733:73: error: expected expression
 2733 |                                 QUERY_REGISTER_RANKING(peer, dwHandle, (TBattlePassRegisterRanking *)data);
      |                                                                                                     ^
ClientManager.cpp:2736:9: error: use of undeclared identifier 'HEADER_GD_BATTLE_PASS_RANKING'
 2736 |                         case HEADER_GD_BATTLE_PASS_RANKING:
      |                              ^
4 errors generated.
gmake: *** [Makefile:58: .obj/ClientManagerBoot.o] Error 1
11 errors generated.
gmake: *** [Makefile:58: .obj/ClientManager.o] Error 1

tables.h dosyasını da ek kısmına bıraktım.
 

Dosya Eklentileri

özelden veya dc den anydesk verir misin. dc: .nyami.

/edit.
lengh ve tables service yi görmediği için builde hata alınıyor. düzenlenedi. iyi çalışamalar.
nyami anydesk'ten bağlanıp halletti. tahmin ettiğim gibi import sorunuymuş, birkaç yere gerekli dosyaları import edince düzeldi. kendisine teşekkür ederim.
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst