Eroare compilare sursa

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
xAspekt
Nou Venit

Nou Venit
Mesaje: 43
Membru din: 07 Apr 2014, 18:45
Aprecieri: 0
Mulţumiri: 0
 Contact:
Medalii

Salut. Am luat o sursa de pe net, nu am modificat nimic dar cand ii dau compilare imi apar erorile astea.

Cod: Selectaţi tot

compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.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
compile char_horse.cpp
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char.cpp:25:
shop_manager.h:40:7: warning: no newline at end of file
compile char_item.cpp
In file included from char.cpp:62:
PetSystem.h:163:31: warning: no newline at end of file
char.cpp:7219: warning: this decimal constant is unsigned only in ISO C90
char.cpp:7227:2: warning: no newline at end of file
compile char_manager.cpp
compile char_quickslot.cpp
In file included from char_item.cpp:47:
belt_inventory_helper.h:108:42: warning: no newline at end of file
compile char_resist.cpp
compile char_skill.cpp
compile char_state.cpp
compile PetSystem.cpp
compile cmd.cpp
In file included from PetSystem.cpp:8:
PetSystem.h:163:31: warning: char_state.cpp: In member function 'virtual void CH      ARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
compile cmd_emotion.cpp
In file included from char_item.cpp:47:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHe      lper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned inte      ger expressions
no newline at end of file
PetSystem.cpp:637:2: warning: no newline at end of file
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:2385: warning: format '%d' expects type 'int', but argument 6 has       type 'long int'
char_item.cpp:2389: warning: format '%d' expects type 'int', but argument 6 has       type 'long int'
char_item.cpp:2401: warning: format '%d' expects type 'int', but argument 5 has       type 'long int'
char_item.cpp:2405: warning: format '%d' expects type 'int', but argument 5 has       type 'long int'
char_item.cpp:2432: warning: format '%d' expects type 'int', but argument 6 has       type 'long int'
char_item.cpp:2440: warning: format '%d' expects type 'int', but argument 5 has       type 'long int'
compile cmd_general.cpp
char_item.cpp:5089: warning: comparison between signed and unsigned integer expr      essions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5161: warning: unused variable 'wDestCell'
char_item.cpp:5162: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6162: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(C      Item*)':
char_item.cpp:6226: warning: comparison between signed and unsigned integer expr      essions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromIte      m(CItem*)':
char_item.cpp:6238: warning: comparison between signed and unsigned integer expr      essions
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TIt      emPos&, const TItemPos&)':
char_item.cpp:7424: warning: unused variable 'itemType'
char_item.cpp:7425: warning: unused variable 'itemSubType'
compile cmd_gm.cpp
compile cmd_oxevent.cpp
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
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)      ':
char.cpp:3088: warning: comparison between signed and unsigned integer expressio      ns
{standard input}: Assembler messages:
{standard input}:13741: Warning: end of file not at end of a line; newline inser      ted
{standard input}:15524: Error: unknown pseudo-op: `.lb'
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Makefile:127: recipe for target 'OBJDIR/char_skill.o' failed
gmake: *** [OBJDIR/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Makefile:127: recipe for target 'OBJDIR/char_item.o' failed
gmake: *** [OBJDIR/char_item.o] Error 1
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Makefile:127: recipe for target 'OBJDIR/char.o' failed
gmake: *** [OBJDIR/char.o] Error 1
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3935: warning: NULL used in arithmetic
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'
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4357: 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:3977: 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
Avatar utilizator
mank2105
Nou Venit

Nou Venit
Mesaje: 11
Membru din: 26 Dec 2014, 17:20
Aprecieri: 0
Mulţumiri: 0
Medalii

ai sters ce era in .obj inaite de compilare
Avatar utilizator
xAspekt
Nou Venit

Nou Venit
Mesaje: 43
Membru din: 07 Apr 2014, 18:45
Aprecieri: 0
Mulţumiri: 0
 Contact:
Medalii

da
Închis
Răspunsuri
4
Vizualizări
424
Răspunsuri
2
Vizualizări
138
Răspunsuri
1
Vizualizări
169
Răspunsuri
10
Vizualizări
690

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

  • Informaţie