Page 1 of 1

Get error when compiling manaserv "has no member named at"

Posted: 06 May 2011, 00:36
by edwinardiant
Hello Mana World I'am New Here,I need your help my friend,I got error message when compile the gameserver.exe error just like this :

Code: Select all

||=== ManaServ Gameserver, default ===|
C:\manaworld\mana-manaserv\libs\enet\peer.c||In function `enet_peer_queue_incoming_command':|
C:\manaworld\mana-manaserv\libs\enet\peer.c|661|warning: 'reliableSequenceNumber' might be used uninitialized in this function|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_list.h||In function `std::list<std::string, std::allocator<std::string> > PermissionManager::getClassList(const Character*)':|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_list.h|435|warning: '__p' might be used uninitialized in this function|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_list.h||In function `std::list<std::string, std::allocator<std::string> > PermissionManager::getPermissionList(const Character*)':|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_list.h|435|warning: '__p' might be used uninitialized in this function|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp||In member function `ModifierLocation AttributeManager::getLocation(const std::string&) const':|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp|100|error: 'const class std::map<std::string, ModifierLocation, std::less<std::string>, std::allocator<std::pair<const std::string, ModifierLocation> > >' has no member named 'at'|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp||In member function `void AttributeManager::readAttributeNode(xmlNode*)':|[color=#FF0000]
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp|166|error: 'class std::map<int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > >, std::less<int>, std::allocator<std::pair<const int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > > > > >' has no member named 'at'|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp|172|error: 'class std::map<int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > >, std::less<int>, std::allocator<std::pair<const int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > > > > >' has no member named 'at'|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp|178|error: 'class std::map<int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > >, std::less<int>, std::allocator<std::pair<const int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > > > > >' has no member named 'at'|[/color]
||=== Build finished: 4 errors, 3 warnings ===|

Then The Problem Number 2,I can't compile account server with MYSQL support because mysql.h is missing,could anybody send me the "mysql.h" file?

Code: Select all

C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_tree.h||In member function `typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_copy(const std::_Rb_tree_node<_Val>*, std::_Rb_tree_node<_Val>*) [with _Key = std::string, _Val = std::pair<const std::string, std::string>, _KeyOfValue = std::_Select1st<std::pair<const std::string, std::string> >, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, std::string> >]':|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_tree.h|1029|warning: '__top' might be used uninitialized in this function|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_tree.h|365|warning: '__tmp' might be used uninitialized in this function|
C:\manaworld\mana-manaserv\src\account-server\storage.cpp||In member function `void Storage::syncDatabase()':|
C:\manaworld\mana-manaserv\src\account-server\storage.cpp|1974|warning: 'node' might be used uninitialized in this function|
C:\manaworld\mana-manaserv\src\dal\mysqldataprovider.h|30|mysql/mysql.h: No such file or directory|
C:\manaworld\mana-manaserv\src\dal\mysqldataprovider.h|176|error: `MYSQL_BIND' has not been declared|
C:\manaworld\mana-manaserv\src\dal\mysqldataprovider.h|176|error: ISO C++ forbids declaration of `bind' with no type|
C:\manaworld\mana-manaserv\src\dal\mysqldataprovider.h|205|error: ISO C++ forbids declaration of `MYSQL' with no type|
C:\manaworld\mana-manaserv\src\dal\mysqldataprovider.h|205|error: expected `;' before '*' token|
C:\manaworld\mana-manaserv\src\dal\mysqldataprovider.h|207|error: ISO C++ forbids declaration of `MYSQL_STMT' with no type|
C:\manaworld\mana-manaserv\src\dal\mysqldataprovider.h|207|error: expected `;' before '*' token|
C:\manaworld\mana-manaserv\src\dal\mysqldataprovider.h|209|error: ISO C++ forbids declaration of `MYSQL_BIND' with no type|
C:\manaworld\mana-manaserv\src\dal\mysqldataprovider.h|209|error: expected `;' before '*' token|
||=== Build finished: 9 errors, 3 warnings ===|
Thank You For Your Kindness to read this post :)

Re: Get error when compiling manaserv "has no member named a

Posted: 06 May 2011, 18:30
by Jaxad0127
Please do a search next time. The MySQL issue on windows has been asked and answered before. http://forums.themanaworld.org/viewtopi ... =6&t=12810

Re: Get error when compiling manaserv "has no member named a

Posted: 07 May 2011, 03:09
by edwinardiant
Thank You for the reply,yes sorry for the mysql issue but currently I still cannot pass this error :
http://imageshack.us/photo/my-images/827/errorat.png/

here error log :

Code: Select all

||=== ManaServ Gameserver, default ===|
C:\manaworld\mana-manaserv\libs\enet\peer.c||In function `enet_peer_queue_incoming_command':|
C:\manaworld\mana-manaserv\libs\enet\peer.c|661|warning: 'reliableSequenceNumber' might be used uninitialized in this function|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_list.h||In function `std::list<std::string, std::allocator<std::string> > PermissionManager::getClassList(const Character*)':|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_list.h|435|warning: '__p' might be used uninitialized in this function|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_list.h||In function `std::list<std::string, std::allocator<std::string> > PermissionManager::getPermissionList(const Character*)':|
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_list.h|435|warning: '__p' might be used uninitialized in this function|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp||In member function `ModifierLocation AttributeManager::getLocation(const std::string&) const':|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp|100|error: 'const class std::map<std::string, ModifierLocation, std::less<std::string>, std::allocator<std::pair<const std::string, ModifierLocation> > >' has no member named 'at'|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp||In member function `void AttributeManager::readAttributeNode(xmlNode*)':|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp|166|error: 'class std::map<int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > >, std::less<int>, std::allocator<std::pair<const int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > > > > >' has no member named 'at'|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp|172|error: 'class std::map<int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > >, std::less<int>, std::allocator<std::pair<const int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > > > > >' has no member named 'at'|
C:\manaworld\mana-manaserv\src\game-server\attributemanager.cpp|178|error: 'class std::map<int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > >, std::less<int>, std::allocator<std::pair<const int, std::pair<bool, std::vector<AttributeInfoType, std::allocator<AttributeInfoType> > > > > >' has no member named 'at'|
||=== Build finished: 4 errors, 3 warnings ===|

Thank YOu Again ^^

Re: Get error when compiling manaserv "has no member named a

Posted: 07 May 2011, 08:41
by Crush
The complaint is about the std::map class (a class from the standard template library) not having the at() method.

It seems like your build environment is messed up.

What compiler are you using?

Re: Get error when compiling manaserv "has no member named a

Posted: 07 May 2011, 11:13
by edwinardiant
Iam using CB 8.02 with mingw
ohh Iam will try with CB v10 one since I programing PSP hombrew maybe CB too old,give me a try

oh here my pic about CB version and complier is it's correct?

http://imageshack.us/photo/my-images/42 ... cb802.png/

I'm Really Thankfull Sir! for the reply

Re: Get error when compiling manaserv "has no member named a

Posted: 07 May 2011, 12:29
by Crush
The screenshot only shows that your are using the "GNU GCC Compiler" but unfortunately not which version of it.

But when you are using the outdated Code::Blocks version 8.02 and you are not aware of compiler version numbers, you are most likely using an equally outdated compiler.

I would recommend you to update to the newest version of Code::Blocks (WITH MinGW!).

Re: Get error when compiling manaserv "has no member named a

Posted: 07 May 2011, 18:26
by o11c
Problem is resolved by upgrading to GCC 4.5 (4.3 is probably sufficient)

Re: Get error when compiling manaserv "has no member named a

Posted: 07 May 2011, 21:33
by edwinardiant
Thank You!~ everybody yes I upgraded to latest one and now working!
Thank You for you kindness!
This Problem is Solved :)

Re: Get error when compiling manaserv "has no member named a

Posted: 10 May 2011, 10:26
by Jaxad0127
The at() method is part of the C++0x standard. Only newer compilers will allow it without more work.