Eroare compilare sursa (serenity)

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
Metin2Rampage
Utilizator interzis !

Utilizator interzis !
Mesaje: 107
Membru din: 17 Feb 2016, 13:04
Server: Niciunul momentan.
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 3  
 Contact:
Medalii

Salut am si eu eroarea asta cand compilez sursa oare de la ce o fii?
char_change_empire.cpp: In member function 'int CHARACTER::ChangeEmpire(BYTE)':
char_change_empire.cpp:29: warning: too few arguments for format
char_change_empire.cpp:29: warning: too few arguments for format
char_change_empire.cpp:89: warning: too few arguments for format
char_change_empire.cpp:89: warning: too few arguments for format
char_change_empire.cpp: In member function 'DWORD CHARACTER::GetAID() const':
char_change_empire.cpp:163: warning: too few arguments for format
char_change_empire.cpp:163: warning: too few arguments for format
compile PetSystem.cpp
compile cmd.cpp
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
compile cmd_emotion.cpp
compile cmd_general.cpp
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of data type
char_item.cpp:666: warning: comparison is always false due to limited range of data type
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2426: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2430: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2446: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2473: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2481: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5127: warning: comparison between signed and unsigned integer expressions
char_item.cpp:1709: warning: unused variable 'bDestInven'
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5197: warning: unused variable 'wCell'
char_item.cpp:5198: warning: unused variable 'window_type'
char_item.cpp:5199: warning: unused variable 'wDestCell'
char_item.cpp:5200: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6227: warning: array subscript has type 'char'
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7624: warning: unused variable 'itemType'
char_item.cpp:7625: warning: unused variable 'itemSubType'
compile cmd_gm.cpp
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:679: warning: control reaches end of non-void function
/usr/local/include/boost/functional/hash/extensions.hpp: In member function 'size_t boost::hash<T>::operator()(const T&) const [with T = VID]':
/usr/local/include/boost/unordered/detail/buckets.hpp:599: instantiated from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>, T = VID, SizeT = unsigned int]'
/usr/local/include/boost/unordered/detail/table.hpp:758: instantiated from 'size_t boost::unordered::detail::table<Types>::hash(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
/usr/local/include/boost/unordered/detail/table.hpp:784: instantiated from 'boost::unordered::iterator_detail::iterator<typename Types::node> boost::unordered::detail::table<Types>::find_node(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
/usr/local/include/boost/unordered/unordered_map.hpp:1212: instantiated from 'typename boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const K&) [with K = VID, T = unsigned int, H = boost::hash<VID>, P = std::equal_to<VID>, A = std::allocator<std::pair<const VID, unsigned int> >]'
char_skill.cpp:3537: instantiated from here
/usr/local/include/boost/functional/hash/extensions.hpp:269: error: no matching function for call to 'hash_value(const VID&)'
gmake: *** [OBJDIR/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....
cmd_gm.cpp:2109:9: warning: multi-character character constant
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6355: warning: 'pBuff' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3919: warning: NULL used in arithmetic
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4735: warning: 'cell' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3961: warning: 'n' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
Daca stie cineva va rog sa imi raspundeti dar nu abureli..
Skype : mihai.costin662 pentru support php / html.
Creez forumuri de gen : http://clubtech.ro/ la pretul de 25e psf / paypal / bancar.
Pentru mai multe informatii add me skype mihai.costin662.
No hate :).
Afișează semnătura
Avatar utilizator
Bgd
Nivel 2

Nivel 2
Mesaje: 269
Membru din: 13 Sep 2013, 11:52
Aprecieri: 170  
Mulţumiri: 160  
Discord: Copiază ID
Medalii

char_skill.cpp:3537: instantiated from here
/usr/local/include/boost/functional/hash/extensions.hpp:269: error: no matching function for call to 'hash_value(const VID&)'

tind sa cred ca tine de boost, incearca cu alt include, sau alt boost.
Avatar utilizator
Metin2Rampage
Utilizator interzis !

Utilizator interzis !
Mesaje: 107
Membru din: 17 Feb 2016, 13:04
Server: Niciunul momentan.
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 3  
 Contact:
Medalii

De unde ca majoritatea au si liniile care sunt scrise de exemplu
1 Eroare
Si daca copiez si alea imi da mai multe erori..
Inca un exemplu https://gcc.gnu.org/onlinedocs/gcc-4.6. ... ource.html
Asa sunt aproape toate..
Skype : mihai.costin662 pentru support php / html.
Creez forumuri de gen : http://clubtech.ro/ la pretul de 25e psf / paypal / bancar.
Pentru mai multe informatii add me skype mihai.costin662.
No hate :).
Afișează semnătura
Avatar utilizator
Metin2Rampage
Utilizator interzis !

Utilizator interzis !
Mesaje: 107
Membru din: 17 Feb 2016, 13:04
Server: Niciunul momentan.
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 3  
 Contact:
Medalii

Am rezolvat cu erorile alea cu tables.hpp acum imi da altceva
compile BattleArena.cpp
compile FSM.cpp
In file included from /usr/local/include/boost/unordered_map.hpp:16,
from char.h:4,
from BattleArena.cpp:6:
/usr/local/include/boost/unordered/unordered_map.hpp:18:43: warning: no newline at end of file
compile MarkConvert.cpp
In file included from BattleArena.cpp:6:
char.h:423: error: ISO C++ forbids declaration of 'unordered_map' with no type
char.h:423: error: invalid use of '::'
char.h:423: error: expected ';' before '<' token
char.h:1488: error: ISO C++ forbids declaration of 'unordered_map' with no type
char.h:1488: error: invalid use of '::'
char.h:1488: error: expected ';' before '<' token
compile MarkImage.cpp
In file included from BattleArena.cpp:9:
questmanager.h:237: error: ISO C++ forbids declaration of 'unordered_map' with no type
questmanager.h:237: error: typedef name may not be a nested-name-specifier
questmanager.h:237: error: expected ';' before '<' token
questmanager.h:238: error: ISO C++ forbids declaration of 'unordered_map' with no type
questmanager.h:238: error: typedef name may not be a nested-name-specifier
questmanager.h:238: error: expected ';' before '<' token
questmanager.h:240: error: 'THashMapQuestName' does not name a type
questmanager.h:241: error: 'THashMapQuestStartScript' does not name a type
gmake: *** [OBJDIR/BattleArena.o] Error 1
gmake: *** Waiting for unfinished jobs....
Skype : mihai.costin662 pentru support php / html.
Creez forumuri de gen : http://clubtech.ro/ la pretul de 25e psf / paypal / bancar.
Pentru mai multe informatii add me skype mihai.costin662.
No hate :).
Afișează semnătura
Avatar utilizator
L.a.D l Catalin
Nivel 6

Nivel 6
Mesaje: 1078
Membru din: 15 Sep 2014, 18:27
Server: Freakz Metin2
Regat: Jinno
Aprecieri: 15  
Mulţumiri: 132  
 Contact:
Medalii

Subiect inactiv de peste 3 zile. Arhivat.
[center]VAND CONT STEAM 112 GAMES[/center]
Afișează semnătura
Închis

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 53 vizitatori