Page 1 of 1

[SOLVED] help me with compiler errors.

Posted: 12 Dec 2006, 04:55
by wsmuramoto
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?

Re: help me with compiler errors.

Posted: 12 Dec 2006, 09:57
by ElvenProgrammer
wsmuramoto wrote:src/net/accountserver/account.cpp:37: error: `string' undeclared (first use this function)
This sounds a bit worrying, maybe you got a corrupted compiler installation?

Posted: 12 Dec 2006, 14:08
by wsmuramoto
Errors corrected!
now there is one error.

cannot find -lenet
ld returned 1 exit status
C:\temp\tmw1\tmw-0.0.21.1\Makefile.win [Build Error] [tmw.exe] Error 1

how can I solve this.

Posted: 12 Dec 2006, 14:51
by Crush
Are you sure you want to compile the test client for the new server software and not the current official client? The client for the currently running server can be found on the svn repository in the folder /branches/0.0/. It doesn't require enet.

When you want to check out the very early stage of the new client/server combination then you can accquire enet by downloading the sourcecode of enet from http://enet.bespin.org, compiling it to a dynamic or static library (your choice) and putting it into your mingw library folder.

Posted: 12 Dec 2006, 22:27
by wsmuramoto
All Problems Solved...
Thanks to all...