- Mesaj
- 576
- Çözümler
- 6
- Beğeni
- 469
- Puan
- 839
- Ticaret Puanı
- 0
Derlerken hata:
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: