Ir para conteúdo

Tutorial De Compilação Para Otserv!


Posts Recomendados

Obtive muitos erros :S

 

ai o log!

 

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Cris.CRISTIAN\Desktop\CTF\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Cris.CRISTIAN\Desktop\CTF\Makefile.win" all
g++.exe -c ../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/actions.cpp -o ../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/actions.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/others/boost_1_33_1"  -I"C:/Dev-Cpp/others/lua-5.1/include"  -D__EXCEPTION_TRACER__ -D__USE_MYSQL__  

g++.exe -c ../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/admin.cpp -o ../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/admin.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/others/boost_1_33_1"  -I"C:/Dev-Cpp/others/lua-5.1/include"  -D__EXCEPTION_TRACER__ -D__USE_MYSQL__  

In file included from ../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/admin.cpp:24:
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:25:26: boost/asio.hpp: No such file or directory
In file included from ../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/admin.cpp:24:
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:58: error: `boost::asio' has not been declared
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:58: error: expected `;' before '(' token

../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:83: error: `boost::asio' has not been declared
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:83: error: expected `)' before '&' token

../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:103: error: `boost::asio' has not been declared
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:103: error: ISO C++ forbids declaration of `socket' with no type
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:103: error: expected `;' before '&' token
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:105: error: expected `;' before "void"
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:113: error: `boost::system' has not been declared
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:113: error: expected `,' or `...' before '&' token
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:113: error: ISO C++ forbids declaration of `error_code' with no type
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:114: error: `boost::system' has not been declared
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:114: error: expected `,' or `...' before '&' token
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:114: error: ISO C++ forbids declaration of `error_code' with no type
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:116: error: `boost::system' has not been declared
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:116: error: expected `,' or `...' before '&' token
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:116: error: ISO C++ forbids declaration of `error_code' with no type
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:118: error: `boost::system' has not been declared
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:118: error: expected `,' or `...' before '&' token
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:118: error: ISO C++ forbids declaration of `error_code' with no type
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:119: error: `boost::system' has not been declared
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:119: error: expected `,' or `...' before '&' token
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:119: error: ISO C++ forbids declaration of `error_code' with no type
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:128: error: `boost::asio' has not been declared

../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:128: error: ISO C++ forbids declaration of `socket' with no type
../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/connection.h:128: error: expected `;' before "m_socket"

make.exe: *** [../OpenTibia_SVN_08.10.2007/OpenTibia_SVN_08.10.2007/admin.o] Error 1

Execution terminated

Editado por Icepotter
Link para o comentário
Compartilhar em outros sites

Gabriel,

Não foi você que fez o tutorial, nem repassou ou corrigiu algo... Você disse que de um trabalhão para fazer, como se não foi você que fez?

Acho que foi uma boa trazer esse conteúdo para cá, mas não ficar tomando créditos que não são seus...

Só isso. Tem que valorizar o trabalho de quem fez, que foi muito mais trabalhoso doque só copiar e colar aqui no Eks.

Editado por BlackDream
Link para o comentário
Compartilhar em outros sites

Compiler: Default compiler

Building Makefile: "C:\xampp\htdocs\TheOldRuins\Makefile.win"

Executing make clean

rm -f Objetos/account.o Objetos/actions.o Objetos/admin.o Objetos/allocator.o Objetos/ban.o Objetos/baseevents.o Objetos/chat.o Objetos/combat.o Objetos/commands.o Objetos/condition.o Objetos/configmanager.o Objetos/connection.o Objetos/container.o Objetos/creature.o Objetos/creatureevent.o Objetos/cylinder.o Objetos/database.o Objetos/databasemysql.o Objetos/databaseodbc.o Objetos/databasepgsql.o Objetos/depot.o Objetos/exception.o Objetos/fileloader.o Objetos/game.o Objetos/house.o Objetos/housetile.o Objetos/ioaccount.o Objetos/iomapotbm.o Objetos/iomapserialize.o Objetos/iomapxml.o Objetos/ioplayer.o Objetos/item.o Objetos/items.o Objetos/logger.o Objetos/luascript.o Objetos/mailbox.o Objetos/map.o Objetos/md5.o Objetos/monster.o Objetos/monsters.o Objetos/movement.o Objetos/networkmessage.o Objetos/npc.o Objetos/otserv.o Objetos/outfit.o Objetos/outputmessage.o Objetos/player.o Objetos/position.o Objetos/protocol.o Objetos/protocolgame.o Objetos/protocollogin.o Objetos/raids.o Objetos/rsa.o Objetos/scheduler.o Objetos/scriptmanager.o Objetos/server.o Objetos/sha1.o Objetos/spawn.o Objetos/spells.o Objetos/status.o Objetos/talkaction.o Objetos/tasks.o Objetos/teleport.o Objetos/thing.o Objetos/tile.o Objetos/tools.o Objetos/trashholder.o Objetos/vocation.o Objetos/waitlist.o Objetos/weapons.o Servidor/OTServ.exe

 

g++.exe -c ../../../OTSERVER/Sources/account.cpp -o Objetos/account.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/others/boost_1_33_1" -I"C:/Dev-Cpp/others/lua-5.1/include" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__USE_MYSQL__ -D__SKULLSYSTEM__

 

g++.exe -c ../../../OTSERVER/Sources/actions.cpp -o Objetos/actions.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/others/boost_1_33_1" -I"C:/Dev-Cpp/others/lua-5.1/include" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__USE_MYSQL__ -D__SKULLSYSTEM__

 

g++.exe -c ../../../OTSERVER/Sources/admin.cpp -o Objetos/admin.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/others/boost_1_33_1" -I"C:/Dev-Cpp/others/lua-5.1/include" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__USE_MYSQL__ -D__SKULLSYSTEM__

 

In file included from ../../../OTSERVER/Sources/admin.cpp:24:

../../../OTSERVER/Sources/connection.h:25:26: boost/asio.hpp: No such file or directory

In file included from ../../../OTSERVER/Sources/admin.cpp:24:

../../../OTSERVER/Sources/connection.h:58: error: `boost::asio' has not been declared

../../../OTSERVER/Sources/connection.h:58: error: expected `;' before '(' token

 

../../../OTSERVER/Sources/connection.h:83: error: `boost::asio' has not been declared

 

../../../OTSERVER/Sources/connection.h:83: error: expected `)' before '&' token

../../../OTSERVER/Sources/connection.h:103: error: `boost::asio' has not been declared

../../../OTSERVER/Sources/connection.h:103: error: ISO C++ forbids declaration of `socket' with no type

../../../OTSERVER/Sources/connection.h:103: error: expected `;' before '&' token

../../../OTSERVER/Sources/connection.h:105: error: expected `;' before "void"

../../../OTSERVER/Sources/connection.h:113: error: `boost::system' has not been declared

../../../OTSERVER/Sources/connection.h:113: error: expected `,' or `...' before '&' token

../../../OTSERVER/Sources/connection.h:113: error: ISO C++ forbids declaration of `error_code' with no type

../../../OTSERVER/Sources/connection.h:114: error: `boost::system' has not been declared

../../../OTSERVER/Sources/connection.h:114: error: expected `,' or `...' before '&' token

../../../OTSERVER/Sources/connection.h:114: error: ISO C++ forbids declaration of `error_code' with no type

../../../OTSERVER/Sources/connection.h:116: error: `boost::system' has not been declared

../../../OTSERVER/Sources/connection.h:116: error: expected `,' or `...' before '&' token

../../../OTSERVER/Sources/connection.h:116: error: ISO C++ forbids declaration of `error_code' with no type

../../../OTSERVER/Sources/connection.h:118: error: `boost::system' has not been declared

../../../OTSERVER/Sources/connection.h:118: error: expected `,' or `...' before '&' token

../../../OTSERVER/Sources/connection.h:118: error: ISO C++ forbids declaration of `error_code' with no type

../../../OTSERVER/Sources/connection.h:119: error: `boost::system' has not been declared

../../../OTSERVER/Sources/connection.h:119: error: expected `,' or `...' before '&' token

 

../../../OTSERVER/Sources/connection.h:119: error: ISO C++ forbids declaration of `error_code' with no type

../../../OTSERVER/Sources/connection.h:128: error: `boost::asio' has not been declared

../../../OTSERVER/Sources/connection.h:128: error: ISO C++ forbids declaration of `socket' with no type

../../../OTSERVER/Sources/connection.h:128: error: expected `;' before "m_socket"

 

make.exe: *** [Objetos/admin.o] Error 1

 

Execution terminated

 

 

27 erros :X:X:x

 

ja verifikei tudo! n sei o q ta errado

algm ai ajuda plz

Link para o comentário
Compartilhar em outros sites

E ai galera!

 

Eu sou noob, muito noob mesmo, esse foi o tuto que fez eu chegar mais longe só que na parte:

 

 

diretório Sources e inclua todos os arquivos deixando APENAS os seguintes:

database.cpp

database.h

databasesqlite.cpp

databasesqlite.h

databasemysql.cpp

databasemysql.h

ioaccountsql.cpp

ioaccountsql.h

ioplayersql.cpp

ioplayersql.h

iomapserializesql.cpp

iomapserializesql.h

 

Ai eu buguei... Tentei umas coisa e outras mas ele nao compila. Ele começa e fecha quando chega no database. Mas fora isso ta beleza, gostei do tuto, os links quebrados eu conssegui axar os arquivos em outros topicos aki do XTibia mesmo, é só procurar que axa, porque nao adianta querer tudo na maozinha.

 

Mas pena eu nao ter consseguido compilar, mas veleu do mesmo jeito.

Link para o comentário
Compartilhar em outros sites

  • 5 weeks later...
Como troco o protocolo de uma source para outra versão?

mude em protocalgame.cpp, protocolgame.H, protocollogin.H, protocollogin.cpp

 

Ao compilar ele criará o .Exe do OT?

sim, ele criará também o config.lua

Link para o comentário
Compartilhar em outros sites

mude em protocalgame.cpp, protocolgame.H, protocollogin.H, protocollogin.cpp

 

 

sim, ele criará também o config.lua

 

\o\ valeu por tirar minha dúvida

só mais uma coisinha

 

Daria pra vc por um tutorial de como mudar o protocolo?

tipo:

O que devemos mudar nos arquivos

se puder fazer isto agradeço memso mano

vai me ajudar pra caramba

 

Outra coisa tem msn?

se tiver me passa por mp pra eu tirar mais algumas dúvidas

Desde já vlw

:)

Editado por Shynzo
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 2 weeks later...
  • 2 weeks later...

ae alguem poderia me dizer onde eu possa baixar esse 2.2.3 - DevC++ LIB's

 

vlw. abraços

 

:confused: [93 erro] faser o que, pelo menos Tentando compilar XML. :mad:

 

Compilador: Default compiler

Building Makefile: "C:\Documents and Settings\Administrador\Meus documentos\Makefile.win"

Executando make clean

rm -f Objetos/ioplayer.o Objetos/database.o Objetos/databasemysql.o Objetos/databasesqlite.o Objetos/ioaccount.o Objetos/iomapserialize.o Objetos/#####work_private.res ../OTServNetwork/main.exe

 

g++.exe -c ../../../OTServNetwork/Sources/ioplayer.cpp -o Objetos/ioplayer.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-CPP/others/boost_1_33_1/libregex" -I"C:/Dev-Cpp/include/boost" -I"C:/Dev-Cpp/others/lua-5.1/include" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__SKULLSYSTEM__

 

In file included from ../../../OTServNetwork/Sources/ioplayer.h:27,

from ../../../OTServNetwork/Sources/ioplayer.cpp:23:

../../../OTServNetwork/Sources/database.h:65: error: `DATABASE_CLASS' does not name a type

../../../OTServNetwork/Sources/database.h:66: error: `DBRES_CLASS' does not name a type

../../../OTServNetwork/Sources/database.h:84: error: ISO C++ forbids declaration of `Database' with no type

../../../OTServNetwork/Sources/database.h:84: error: expected `;' before '*' token

 

../../../OTServNetwork/Sources/database.h:130: error: ISO C++ forbids declaration of `DBResult' with no type

../../../OTServNetwork/Sources/database.h:130: error: expected `;' before '*' token

../../../OTServNetwork/Sources/database.h:140: error: expected `;' before "std"

../../../OTServNetwork/Sources/database.h:157: error: variable or field `freeResult' declared void

../../../OTServNetwork/Sources/database.h:157: error: expected `;' before '(' token

 

../../../OTServNetwork/Sources/database.h:163: error: ISO C++ forbids declaration of `DBResult' with no type

../../../OTServNetwork/Sources/database.h:163: error: expected `;' before '*' token

../../../OTServNetwork/Sources/database.h:166: error: ISO C++ forbids declaration of `Database' with no type

../../../OTServNetwork/Sources/database.h:166: error: expected `;' before '*' token

 

../../../OTServNetwork/Sources/database.h:238: error: expected `)' before '*' token

 

../../../OTServNetwork/Sources/database.h:267: error: ISO C++ forbids declaration of `Database' with no type

../../../OTServNetwork/Sources/database.h:267: error: expected `;' before '*' token

 

../../../OTServNetwork/Sources/database.h:290: error: expected `)' before '*' token

../../../OTServNetwork/Sources/database.h:327: error: ISO C++ forbids declaration of `Database' with no type

../../../OTServNetwork/Sources/database.h:327: error: expected `;' before '*' token

../../../OTServNetwork/Sources/database.h: In destructor `DBTransaction::~DBTransaction()':

../../../OTServNetwork/Sources/database.h:299: error: `m_database' undeclared (first use this function)

../../../OTServNetwork/Sources/database.h:299: error: (Each undeclared identifier is reported only once for each function it appears in.)

 

../../../OTServNetwork/Sources/database.h: In member function `bool DBTransaction::begin()':

../../../OTServNetwork/Sources/database.h:306: error: `m_database' undeclared (first use this function)

../../../OTServNetwork/Sources/database.h: In member function `bool DBTransaction::commit()':

../../../OTServNetwork/Sources/database.h:313: error: `m_database' undeclared (first use this function)

 

In file included from ../../../OTServNetwork/Sources/ioplayer.cpp:23:

../../../OTServNetwork/Sources/ioplayer.h: At global scope:

../../../OTServNetwork/Sources/ioplayer.h:80: error: expected `;' before '(' token

 

../../../OTServNetwork/Sources/ioplayer.h:97: error: `DBResult' has not been declared

../../../OTServNetwork/Sources/ioplayer.h:97: error: ISO C++ forbids declaration of `result' with no type

 

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `bool IOPlayer::loadPlayer(Player*, const std::string&, bool)':

../../../OTServNetwork/Sources/ioplayer.cpp:43: error: `Database' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:43: error: `db' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:43: error: `Database' has not been declared

 

../../../OTServNetwork/Sources/ioplayer.cpp:45: error: `DBResult' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:45: error: `result' undeclared (first use this function)

 

../../../OTServNetwork/Sources/ioplayer.cpp:331: error: `storeNameByGuid' undeclared (first use this function)

 

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `bool IOPlayer::saveItems(Player*, const ItemBlockList&, DBInsert&)':

../../../OTServNetwork/Sources/ioplayer.cpp:355: error: `Database' undeclared (first use this function)

 

../../../OTServNetwork/Sources/ioplayer.cpp:355: error: `db' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:355: error: `Database' has not been declared

 

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `bool IOPlayer::savePlayer(Player*)':

../../../OTServNetwork/Sources/ioplayer.cpp:414: error: `Database' undeclared (first use this function)

 

../../../OTServNetwork/Sources/ioplayer.cpp:414: error: `db' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:414: error: `Database' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:416: error: `DBResult' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:416: error: `result' undeclared (first use this function)

 

../../../OTServNetwork/Sources/ioplayer.cpp: At global scope:

../../../OTServNetwork/Sources/ioplayer.cpp:646: error: `bool IOPlayer::storeNameByGuid' is not a static member of `class IOPlayer'

../../../OTServNetwork/Sources/ioplayer.cpp:646: error: `Database' was not declared in this scope

../../../OTServNetwork/Sources/ioplayer.cpp:646: error: `db' was not declared in this scope

../../../OTServNetwork/Sources/ioplayer.cpp:646: error: expected primary-expression before "guid"

../../../OTServNetwork/Sources/ioplayer.cpp:647: error: initializer expression list treated as compound expression

../../../OTServNetwork/Sources/ioplayer.cpp:647: error: expected `,' or `;' before '{' token

 

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `bool IOPlayer::getNameByGuid(uint32_t, std::string&)':

../../../OTServNetwork/Sources/ioplayer.cpp:673: error: `Database' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:673: error: `db' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:673: error: `Database' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:675: error: `DBResult' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:675: error: `result' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `bool IOPlayer::getGuidByName(uint32_t&, std::string&)':

../../../OTServNetwork/Sources/ioplayer.cpp:697: error: `Database' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:697: error: `db' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:697: error: `Database' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:698: error: `DBResult' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:698: error: `result' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `bool IOPlayer::getGuidByNameEx(uint32_t&, bool&, std::string&)':

../../../OTServNetwork/Sources/ioplayer.cpp:715: error: `Database' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:715: error: `db' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:715: error: `Database' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:716: error: `DBResult' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:716: error: `result' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `bool IOPlayer::getGuildIdByName(uint32_t&, const std::string&)':

../../../OTServNetwork/Sources/ioplayer.cpp:739: error: `Database' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:739: error: `db' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:739: error: `Database' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:740: error: `DBResult' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:740: error: `result' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `bool IOPlayer::playerExists(std::string)':

../../../OTServNetwork/Sources/ioplayer.cpp:753: error: `Database' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:753: error: `db' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:753: error: `Database' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:754: error: `DBResult' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:754: error: `result' undeclared (first use this function)

 

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `const PlayerGroup* IOPlayer::getPlayerGroup(uint32_t)':

../../../OTServNetwork/Sources/ioplayer.cpp:772: error: `Database' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:772: error: `db' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:772: error: `Database' has not been declared

 

../../../OTServNetwork/Sources/ioplayer.cpp:774: error: `DBResult' undeclared (first use this function)

../../../OTServNetwork/Sources/ioplayer.cpp:774: error: `result' undeclared (first use this function)

 

../../../OTServNetwork/Sources/ioplayer.cpp: At global scope:

../../../OTServNetwork/Sources/ioplayer.cpp:796: error: `DBResult' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:797: error: ISO C++ forbids declaration of `result' with no type

../../../OTServNetwork/Sources/ioplayer.cpp: In member function `void IOPlayer::loadItems(std::map<int, std::pair<Item*, int>, std::less<int32_t>, std::allocator<std::pair<const int, std::pair<Item*, int> > > >&, int*)':

../../../OTServNetwork/Sources/ioplayer.cpp:799: error: `getDataInt' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:799: error: request for member of non-aggregate type before '(' token

../../../OTServNetwork/Sources/ioplayer.cpp:800: error: `getDataInt' has not been declared

 

../../../OTServNetwork/Sources/ioplayer.cpp:800: error: request for member of non-aggregate type before '(' token

../../../OTServNetwork/Sources/ioplayer.cpp:801: error: `getDataInt' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:801: error: request for member of non-aggregate type before '(' token

../../../OTServNetwork/Sources/ioplayer.cpp:802: error: `getDataInt' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:802: error: request for member of non-aggregate type before '(' token

../../../OTServNetwork/Sources/ioplayer.cpp:805: error: `getDataStream' has not been declared

 

../../../OTServNetwork/Sources/ioplayer.cpp:805: error: request for member of non-aggregate type before '(' token

../../../OTServNetwork/Sources/ioplayer.cpp:819: error: `next' has not been declared

../../../OTServNetwork/Sources/ioplayer.cpp:819: error: request for member of non-aggregate type before '(' token

 

make.exe: *** [Objetos/ioplayer.o] Error 1

 

Execução terminada

 

 

 

tah faltando 2 arquivos Por favor alguem poderia me ajudar? :mad: ioaccountsql.h

ioplayersql.cpp

Editado por CDANILO
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...