• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Problem przy kompilowaniu

gameover99097

Banned User
Joined
Nov 19, 2010
Messages
270
Reaction score
4
Witam
Otóż kompiluje rev 3884 w raz z anty pushem by xampp i wywala mi błąd
Code:
Kompilator: Default compiler
Building Makefile: "E:\Czyste trunki\trunk.r3884\dev-cpp\Makefile.win"
Wykonywanie  make...
mingw32-make -f "E:\Czyste trunki\trunk.r3884\dev-cpp\Makefile.win" all
g++.exe -c ../game.cpp -o obj//game.o -I"E:/Stian's Repack Dev-Cpp 0.2, 64bit/Stian's Repack Dev-Cpp 0.2, 64bit/include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

../game.cpp: In member function 'bool Game::playerMoveItem(uint32_t, const Position&, uint16_t, int16_t, const Position&, uint8_t)':
../game.cpp:1544: error: expected initializer before '}' token

../game.cpp: At global scope:
../game.cpp:1545: error: expected unqualified-id before 'if'
../game.cpp:1548: error: expected unqualified-id before 'if'
../game.cpp:1557: error: 'int32_t floor' redeclared as different kind of symbol
e:\stian's repack dev-cpp 0.2, 64bit\stian's repack dev-cpp 0.2, 64bit\bin\../lib/gcc/mingw32/4.4.0/../../../../include/math.h:159: error: previous declaration of 'double floor(double)'
../game.cpp:1558: error: expected unqualified-id before 'while'
../game.cpp:1568: error: expected unqualified-id before 'if'
../game.cpp:1572: error: 'toCylinder' was not declared in this scope
../game.cpp:1572: error: 'index' was not declared in this scope
../game.cpp:1572: error: 'item' was not declared in this scope
../game.cpp:1572: error: 'count' was not declared in this scope
../game.cpp:1572: error: 'flags' was not declared in this scope
../game.cpp:1573: error: expected unqualified-id before 'if'
mingw32-make: *** [obj//game.o] Error 1

Wykonanie zakończone

Najlepsze ,że te rzeczy które są błędne wgl są nie ruszane i nie są z kodu xamppa tylko standardowy z tfs.
 
Przecież kompilator Ci dokładnie napisał gdzie są błędy więc o co cho?
@down

Nie trzeba się znać na kodowaniu tylko na cpp :ninja:
 
Last edited:
i co ja mam sobie z nimi zrobić? jak to są w kodzie tfsa? nie znam się na kodowaniu , tylko sobie kompilowałem i dawałem gotowe kody.
@edit
użyłem rev 3777 i po return dodałem '}' i pyka a tu nie ; d
 
Last edited:
Back
Top