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

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
edwinardiant
Newly Registered User
Posts: 4
Joined: 06 May 2011, 00:21
Location: In your Heart

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

Post 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 :)
Harigatou gozaimasu!~
User avatar
Jaxad0127
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

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

Post 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
Image
User avatar
edwinardiant
Newly Registered User
Posts: 4
Joined: 06 May 2011, 00:21
Location: In your Heart

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

Post 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 ^^
Harigatou gozaimasu!~
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

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

Post 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?
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
edwinardiant
Newly Registered User
Posts: 4
Joined: 06 May 2011, 00:21
Location: In your Heart

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

Post 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
Harigatou gozaimasu!~
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

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

Post 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!).
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

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

Post by o11c »

Problem is resolved by upgrading to GCC 4.5 (4.3 is probably sufficient)
Former programmer for the TMWA server.
User avatar
edwinardiant
Newly Registered User
Posts: 4
Joined: 06 May 2011, 00:21
Location: In your Heart

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

Post by edwinardiant »

Thank You!~ everybody yes I upgraded to latest one and now working!
Thank You for you kindness!
This Problem is Solved :)
Harigatou gozaimasu!~
User avatar
Jaxad0127
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

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

Post by Jaxad0127 »

The at() method is part of the C++0x standard. Only newer compilers will allow it without more work.
Image
Post Reply