Jump to content

Compiler Can't Find Boost


Go to solution Solved by DrTurk,

Recommended Posts

Hi devs, as i said compiler cant find (i guess) boost and give me error the problem ;

 

ClientManager.cpp: In member function 'void CClientManager::Destroy()':
ClientManager.cpp:68:7: error: 'itertype' was not declared in this scope
   68 |  for (itertype(m_peerList) i = m_peerList.begin(); i != m_peerList.end(); ++i)
      |       ^~~~~~~~
ClientManager.cpp:68:52: error: 'i' was not declared in this scope
   68 |  for (itertype(m_peerList) i = m_peerList.begin(); i != m_peerList.end(); ++i)
      |                                                    ^
ClientManager.cpp: In member function 'void CClientManager::MainLoop()':
ClientManager.cpp:189:2: error: 'itertype' was not declared in this scope
  189 |  itertype(m_map_playerCache) it = m_map_playerCache.begin();
      |  ^~~~~~~~
ClientManager.cpp:191:9: error: 'it' was not declared in this scope; did you mean 'int'?
  191 |  while (it != m_map_playerCache.end())
      |         ^~
      |         int
ClientManager.cpp:202:9: error: 'it2' was not declared in this scope
  202 |  while (it2 != m_map_itemCache.end())
      |         ^~~
ClientManager.cpp:212:88: error: 'itPriceList' was not declared in this scope
  212 |  for (itertype(m_mapItemPriceListCache) itPriceList = m_mapItemPriceListCache.begin(); itPriceList != m_mapItemPriceListCache.end(); ++itPriceList)
      |                                                                                        ^~~~~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::QUERY_BOOT(CPeer*, TPacketGDBoot*)':
ClientManager.cpp:324:2: error: 'itertype' was not declared in this scope
  324 |  itertype(m_map_pkObjectTable) it = m_map_pkObjectTable.begin();
      |  ^~~~~~~~
ClientManager.cpp:326:9: error: 'it' was not declared in this scope; did you mean 'int'?
  326 |  while (it != m_map_pkObjectTable.end())
      |         ^~
      |         int
ClientManager.cpp: In member function 'void CClientManager::SendPartyOnSetup(CPeer*)':
ClientManager.cpp:370:7: error: 'itertype' was not declared in this scope
  370 |  for (itertype(pm) it_party = pm.begin(); it_party != pm.end(); ++it_party)
      |       ^~~~~~~~
ClientManager.cpp:370:43: error: 'it_party' was not declared in this scope
  370 |  for (itertype(pm) it_party = pm.begin(); it_party != pm.end(); ++it_party)
      |                                           ^~~~~~~~
ClientManager.cpp:376:73: error: 'it_member' was not declared in this scope
  376 |   for (itertype(it_party->second) it_member = it_party->second.begin(); it_member != it_party->second.end(); ++it_member)
      |                                                                         ^~~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:562:5: error: 'itertype' was not declared in this scope
  562 |     itertype(m_map_itemTableByVnum) it = m_map_itemTableByVnum.find(r.vnum);
      |     ^~~~~~~~
ClientManager.cpp:564:9: error: 'it' was not declared in this scope; did you mean 'i'?
  564 |     if (it == m_map_itemTableByVnum.end())
      |         ^~
      |         i
ClientManager.cpp:571:24: error: 'it' was not declared in this scope; did you mean 'i'?
  571 |     grid.Put(r.pos, 1, it->second->bSize);
      |                        ^~
      |                        i
ClientManager.cpp:596:6: error: 'itertype' was not declared in this scope
  596 |      itertype(m_map_itemTableByVnum) it = m_map_itemTableByVnum.find(pItemAward->dwVnum);

 

This is my makefile include boost ;

 

INCDIR += -I/usr/local/include/boost

 

This is ClientManager.h ;

 

#include <boost/unordered_map.hpp>
#include <boost/unordered_set.hpp>
#include "../../common/stl.h"
#include "../../common/building.h"
#include "Peer.h"
#include "DBManager.h"
#include "LoginData.h"

 

Whats wrong ? Best regards..

Edited by Defacer35
edit
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.