Problema Compilare sursa

Aici găsiţi problemele rezolvate.
Deconectat
Avatar utilizator
mariusdrg95
Nivel 3
Nivel 3
Mesaje: 307
Membru din: 13 Noi 2017
Localitate: Constanta
Status: Sunt bine mersi
Regat: Jinno
Mulțumiri acordate: 27
Mulțumiri primite: 3

Problema Compilare sursa

Mesajde mariusdrg95 » 14 Iun 2018, 17:37

*Problemă: Compilare sursa
Tipologie server: Pvm Mediu
*Resursă folosită: svf neleus
*ServerFiles utilizat: Neleus / Sky
*Syserr:
gmake: Warning: File `char.h' has modification time 8303 s in the future
compile BattleArena.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile char_change_empire.cpp
In file included from char.cpp:70:
offlineshop_config.h:19:7: warning: no newline at end of file
char.cpp:7687: warning: this decimal constant is unsigned only in ISO C90
compile char_horse.cpp
compile char_item.cpp
compile char_manager.cpp
compile char_quickslot.cpp
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:165: warning: too few arguments for format
char_change_empire.cpp:165: warning: too few arguments for format
compile char_resist.cpp
compile char_skill.cpp
compile char_state.cpp
compile PetSystem.cpp
compile cmd.cpp
char.cpp: In member function 'void CHARACTER::OpenMyOfflineShop(const char*, TSh opItemTable*, BYTE, BYTE)':
char.cpp:4396: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long long int'
char.cpp:4396: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long long int'
compile cmd_emotion.cpp
char.cpp: At global scope:
char.cpp:5407: error: expected constructor, destructor, or type conversion befor e '->' token
char.cpp:5409: error: expected unqualified-id before 'if'
char.cpp:5416: error: expected unqualified-id before 'if'
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYT E, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of d ata type
char_item.cpp:666: warning: comparison is always false due to limited range of d ata 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:5141: warning: comparison between signed and unsigned integer expr essions
char_item.cpp:1708: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5211: warning: unused variable 'wCell'
char_item.cpp:5212: warning: unused variable 'window_type'
char_item.cpp:5213: warning: unused variable 'wDestCell'
char_item.cpp:5214: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6289: warning: array subscript has type 'char'
compile cmd_general.cpp
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TIt emPos&, const TItemPos&)':
char_item.cpp:7721: warning: unused variable 'itemType'
char_item.cpp:7722: warning: unused variable 'itemSubType'
compile cmd_gm.cpp
gmake: *** [OBJDIR/char.o] Error 1
gmake: *** Waiting for unfinished jobs....
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYT E, int) const':
char_item.cpp:679: warning: control reaches end of non-void function
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_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
cmd_gm.cpp:2154:9: warning: multi-character character constant
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3964: warning: NULL used in arithmetic
cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:881: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:881: warning: 'y' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4006: warning: 'n' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4780: warning: 'cell' may be used uninitialized in this function
cmd_general.cpp: In function 'void do_shop_update_item(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1548: warning: comparison is always false due to limited range o f data type
cmd_general.cpp:1552: warning: comparison is always false due to limited range o f data type
cmd_general.cpp:1557: warning: comparison is always false due to limited range o f data type
cmd_general.cpp: In function 'void do_shop_refresh_items(CHARACTER*, const char* , int, int)':
cmd_general.cpp:1751: warning: operation on 'col' may be undefined
cmd_general.cpp:1740: warning: unused variable 'c'
cmd_general.cpp: In function 'void do_shop_delete(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1827: warning: 'id' may be used uninitialized in this function
cmd_general.cpp:1844: warning: 'id' may be used uninitialized in this function
cmd_general.cpp: In function 'void do_shop_yang(CHARACTER*, const char*, int, in t)':
cmd_general.cpp:1360: warning: 'gold' may be used uninitialized in this function
cmd_general.cpp: In function 'bool GetGift(CHARACTER*, DWORD, bool)':
cmd_general.cpp:1061: warning: 'vnum' may be used uninitialized in this function
cmd_general.cpp: In function 'void do_gift_get(CHARACTER*, const char*, int, int )':
cmd_general.cpp:1176: warning: 'id' may be used uninitialized in this function
cmd_general.cpp: In function 'void do_shop_update_item(CHARACTER*, const char*, int, int)':
cmd_general.cpp:1407: warning: 'shop_id' may be used uninitialized in this funct ion
cmd_general.cpp:1450: warning: 'item_id' may be used uninitialized in this funct ion
cmd_general.cpp:1452: warning: 'price' may be used uninitialized in this functio n
cmd_general.cpp:1468: warning: 'item_id' may be used uninitialized in this funct ion
cmd_general.cpp:1545: warning: 'display_pos' may be used uninitialized in this f unction
cmd_general.cpp:1550: warning: 'pos' may be used uninitialized in this function
cmd_general.cpp:1555: warning: 'window_type' may be used uninitialized in this f unction
cmd_general.cpp:1564: warning: 'price' may be used uninitialized in this functio n
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6422: warning: 'pBuff' may be used uninitialized in this function

Poză: -
*Detalii suplimentare: Am sursa asta editata de cei de la host cu limita de yang scoasa si shop offline by great.
Ei au compilat-o fara probleme, eu incerc sa o compilez si nu reusesc. Solutii?

Deconectat
Avatar utilizator
mariusdrg95
Nivel 3
Nivel 3
Mesaje: 307
Membru din: 13 Noi 2017
Localitate: Constanta
Status: Sunt bine mersi
Regat: Jinno
Mulțumiri acordate: 27
Mulțumiri primite: 3

Re: Problema Compilare sursa

Mesajde mariusdrg95 » 14 Iun 2018, 19:12

Cer T/C. Am rezolvat

Deconectat
Avatar utilizator
Diaconu
Membru Club
Membru Club
Mesaje: 542
Membru din: 07 Aug 2013
Localitate: Tulcea
Reputație: Membru Club (10 oct - 10 noi)
Nume anterior: [BAN]Diaconu
Status: C#
Server Metin2: tph2.org
Regat: Jinno
Mulțumiri acordate: 1
Mulțumiri primite: 17
Contact:

Re: Problema Compilare sursa

Mesajde Diaconu » 18 Iun 2018, 11:28

Mutat in Probleme rezolvate si las rezolvarea aici:
(acolo sunt doar warning-uri nu incurca cu nimic, daca vrei le scoti foarte usor sau le repari pentru a le scoate intri in:
/usr/src/sursa/game/src apoi deschizi Makefile cauti CFLAGS si adaugi -w asa faci si in /usr/src/sursa/db/src)
M-am nascut in 99
La 14 ani, maicamea a plecat de acasa
Prin Italia, nu avea bani, trebuia sa ne creasca
La 15 ani, am dat si prima bataie dura
Inconjurat de prieteni naspa ce ma alimentau cu ura
La 16 ani, incercam sa combin fete
Iar la 19 deja imi murise 4 prieteni.


Înapoi la “Probleme rezolvate”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: sk1per și 35 vizitatori