Yardım Boss Damage Ranking de sıkıntı (Vatansever Filesinden Söküyorum)

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

Tugian2Mt2shop

Tugian2-Modern PVP
MT Üye
Mesaj
576
Çözümler
6
Beğeni
469
Puan
839
Ticaret Puanı
0
Derlerken hata:
Genişlet Daralt Kopyala
In file included from char_battle.cpp:42:
BossDamageRanking.h:31:32: error: use of 'auto' in parameter declaration only available with '-std=c++14' or '-std=gnu++14'
   31 |         bool operator < (const auto& a) const {
      |                                ^~~~
In file included from input_db.cpp:51:
BossDamageRanking.h:31:32: error: use of 'auto' in parameter declaration only available with '-std=c++14' or '-std=gnu++14'
   31 |         bool operator < (const auto& a) const {
      |                                ^~~~
In file included from cmd_general.cpp:42:
BossDamageRanking.h:31:32: error: use of 'auto' in parameter declaration only available with '-std=c++14' or '-std=gnu++14'
   31 |         bool operator < (const auto& a) const {
      |                                ^~~~
BossDamageRanking.h:64:9: error: 'SetReturnTime' function uses 'auto' type specifier without trailing return type
   64 |         auto    SetReturnTime(const WORD val) { m_Info.wReturnMin = val; }
      |         ^~~~
BossDamageRanking.h:64:9: error: 'SetReturnTime' function uses 'auto' type specifier without trailing return type
   64 |         auto    SetReturnTime(const WORD val) { m_Info.wReturnMin = val; }
      |         ^~~~
BossDamageRanking.h:64:9: error: 'SetReturnTime' function uses 'auto' type specifier without trailing return type
   64 |         auto    SetReturnTime(const WORD val) { m_Info.wReturnMin = val; }
      |         ^~~~
In file included from char.cpp:65:
BossDamageRanking.h:31:32: error: use of 'auto' in parameter declaration only available with '-std=c++14' or '-std=gnu++14'
   31 |         bool operator < (const auto& a) const {
      |                                ^~~~
BossDamageRanking.h:64:9: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
BossDamageRanking.h:64:9: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
BossDamageRanking.h:64:9: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
BossDamageRanking.h:64:9: error: 'SetReturnTime' function uses 'auto' type specifier without trailing return type
   64 |         auto    SetReturnTime(const WORD val) { m_Info.wReturnMin = val; }
      |         ^~~~
BossDamageRanking.h:66:9: error: 'SetIsSpawn' function uses 'auto' type specifier without trailing return type
   66 |         auto    SetIsSpawn(const bool val) { m_Info.bIsSpawn = val; }
      |         ^~~~
BossDamageRanking.h:66:9: error: 'SetIsSpawn' function uses 'auto' type specifier without trailing return type
   66 |         auto    SetIsSpawn(const bool val) { m_Info.bIsSpawn = val; }
      |         ^~~~
BossDamageRanking.h:66:9: error: 'SetIsSpawn' function uses 'auto' type specifier without trailing return type
   66 |         auto    SetIsSpawn(const bool val) { m_Info.bIsSpawn = val; }
      |         ^~~~
BossDamageRanking.h:66:9: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
BossDamageRanking.h:66:9: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
BossDamageRanking.h:64:9: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
BossDamageRanking.h:66:9: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
BossDamageRanking.h: In member function 'bool BossDamageInfo::SPlayerInfo::operator<(const int&) const':
BossDamageRanking.h:32:33: error: request for member 'dwDamage' in 'a', which is of non-class type 'const int'
   32 |             return dwDamage > a.dwDamage;
      |                                 ^~~~~~~~
BossDamageRanking.h: In member function 'bool BossDamageInfo::SPlayerInfo::operator<(const int&) const':
BossDamageRanking.h:32:33: error: request for member 'dwDamage' in 'a', which is of non-class type 'const int'
   32 |             return dwDamage > a.dwDamage;
      |                                 ^~~~~~~~
BossDamageRanking.h:66:9: error: 'SetIsSpawn' function uses 'auto' type specifier without trailing return type
   66 |         auto    SetIsSpawn(const bool val) { m_Info.bIsSpawn = val; }
      |         ^~~~
BossDamageRanking.h: In member function 'bool BossDamageInfo::SPlayerInfo::operator<(const int&) const':
BossDamageRanking.h:32:33: error: request for member 'dwDamage' in 'a', which is of non-class type 'const int'
   32 |             return dwDamage > a.dwDamage;
      |                                 ^~~~~~~~
BossDamageRanking.h:66:9: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
BossDamageRanking.h: In member function 'bool BossDamageInfo::SPlayerInfo::operator<(const int&) const':
BossDamageRanking.h:32:33: error: request for member 'dwDamage' in 'a', which is of non-class type 'const int'
   32 |             return dwDamage > a.dwDamage;
      |                                 ^~~~~~~~
gmake: *** [Makefile:126: OBJDIR/cmd_general.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [Makefile:126: OBJDIR/input_db.o] Error 1
gmake: *** [Makefile:125: OBJDIR/char_battle.o] Error 1
gmake: *** [Makefile:125: OBJDIR/char.o] Error 1

Dostlar Vatansever filesinden Söküyorum acaba sıkıntı ne yardımcı olabilirmisiniz?
 
Son düzenleme:
Hata kodunda aslında problemi çok net anlatmış. C++14 istiyor min. Fakat tahminimce o files c++20 olabilir.
 
auto olan yerleri uygun veritipleri ile değiştir. Eğer bunu yapmak istemiyorsan filesinin c++ sürümünü yükseltmen lazım
 
Geri
Üst