[SOLVED] help me with compiler errors.
Posted: 12 Dec 2006, 04:55
I try to compile tmw on winxp and I get errors messages on account.cpp
the errors are:
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::createCharacter(const std::string&, char, char, char, short int, short int, short int, short int, short int, short int)':
src/net/accountserver/account.cpp:37: error: `string' undeclared (first use this function)
src/net/accountserver/account.cpp:37: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::deleteCharacter(char)':
src/net/accountserver/account.cpp:57: error: request for member `writeByte' in `msg', which is of non-class type `MessageOut ()(short int)'
src/net/accountserver/account.cpp:59: error: invalid conversion from `MessageOut (*)(short int)' to `short int'
src/net/accountserver/account.cpp:59: error: initializing argument 1 of `MessageOut::MessageOut(short int)'
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::selectCharacter(char)':
src/net/accountserver/account.cpp:64: error: `PAMSG_CHAR_SELECT' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::unregister()':
src/net/accountserver/account.cpp:73: error: `PAMSG_UNREGISTER' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::changeEmail(const std::string&)':
src/net/accountserver/account.cpp:79: error: `PAMSG_EMAIL_CHANGE' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::getEmail()':
src/net/accountserver/account.cpp:88: error: `PAMSG_EMAIL_GET' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::changePassword(const std::string&, const std::string&)':
src/net/accountserver/account.cpp:96: error: `PAMSG_PASSWORD_CHANGE' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::enterWorld()':
src/net/accountserver/account.cpp:106: error: `PAMSG_ENTER_WORLD' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::enterChat()':
src/net/accountserver/account.cpp:113: error: `PAMSG_ENTER_CHAT' undeclared (first use this function)
someone can help me?
the errors are:
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::createCharacter(const std::string&, char, char, char, short int, short int, short int, short int, short int, short int)':
src/net/accountserver/account.cpp:37: error: `string' undeclared (first use this function)
src/net/accountserver/account.cpp:37: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::deleteCharacter(char)':
src/net/accountserver/account.cpp:57: error: request for member `writeByte' in `msg', which is of non-class type `MessageOut ()(short int)'
src/net/accountserver/account.cpp:59: error: invalid conversion from `MessageOut (*)(short int)' to `short int'
src/net/accountserver/account.cpp:59: error: initializing argument 1 of `MessageOut::MessageOut(short int)'
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::selectCharacter(char)':
src/net/accountserver/account.cpp:64: error: `PAMSG_CHAR_SELECT' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::unregister()':
src/net/accountserver/account.cpp:73: error: `PAMSG_UNREGISTER' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::changeEmail(const std::string&)':
src/net/accountserver/account.cpp:79: error: `PAMSG_EMAIL_CHANGE' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::getEmail()':
src/net/accountserver/account.cpp:88: error: `PAMSG_EMAIL_GET' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::changePassword(const std::string&, const std::string&)':
src/net/accountserver/account.cpp:96: error: `PAMSG_PASSWORD_CHANGE' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::enterWorld()':
src/net/accountserver/account.cpp:106: error: `PAMSG_ENTER_WORLD' undeclared (first use this function)
src/net/accountserver/account.cpp: In function `void Net::AccountServer::Account::enterChat()':
src/net/accountserver/account.cpp:113: error: `PAMSG_ENTER_CHAT' undeclared (first use this function)
someone can help me?