MantisBT - VCMI
View Issue Details
0000780VCMIOtherpublic2011-07-31 11:292011-08-04 23:50
lssjbrolli 
ubuntux 
normalmajoralways
closedfixed 
linuxArchLinux
 
 
0000780: compilation failed with boost 1.47
compile fails with:

Making all in lib
make[1]: Entering directory `/home/sega/my_pkg/vcmi-svn/src/vcmi/lib'
  CXX libvcmi_la-BattleAction.lo
  CXX libvcmi_la-BattleState.lo
BattleState.cpp: In member function 'std::vector<unsigned int> BattleInfo::calculateResistedStacks(const CSpell*, const CGHeroInstance*, const CGHeroInstance*, std::set<CStack*>, int, SpellCasting::ECastingMode) const':
BattleState.cpp:2017:26: warning: variable 'bonusHero' set but not used [-Wunused-but-set-variable]
  CXX libvcmi_la-CArtHandler.lo
  CXX libvcmi_la-CBuildingHandler.lo
  CXX libvcmi_la-CCampaignHandler.lo
CCampaignHandler.cpp: In member function 'void CCampaignScenario::prepareCrossoverHeroes(std::vector<CGHeroInstance*>)':
CCampaignHandler.cpp:527:5: warning: unused variable 'cgh' [-Wunused-variable]
  CXX libvcmi_la-CCreatureHandler.lo
  CXX libvcmi_la-CCreatureSet.lo
  CXX libvcmi_la-CDefObjInfoHandler.lo
  CXX libvcmi_la-CFileUtility.lo
  CXX libvcmi_la-CGameInterface.lo
  CXX libvcmi_la-CGameState.lo
CGameState.cpp: In member function 'void CGameState::init(StartInfo*, ui32, int)':
CGameState.cpp:937:9: warning: variable 'success' set but not used [-Wunused-but-set-variable]
  CXX libvcmi_la-CGeneralTextHandler.lo
  CXX libvcmi_la-CHeroHandler.lo
  CXX libvcmi_la-CLodHandler.lo
  CXX libvcmi_la-CMapInfo.lo
  CXX libvcmi_la-CObjectHandler.lo
CObjectHandler.cpp: In member function 'void CGCreature::fight(const CGHeroInstance*) const':
CObjectHandler.cpp:3168:6: warning: unused variable 'totalCount' [-Wunused-variable]
  CXX libvcmi_la-CSpellHandler.lo
  CXX libvcmi_la-CTownHandler.lo
  CXX libvcmi_la-Connection.lo
Connection.cpp: In constructor 'CConnection::CConnection(TSocket*, std::string)':
Connection.cpp:140:38: error: 'TSocket' has no member named 'io_service'
make[1]: *** [libvcmi_la-Connection.lo] Error 1
make[1]: Leaving directory `/home/sega/my_pkg/vcmi-svn/src/vcmi/lib'
make: *** [all-recursive] Error 1


compile fine with boost 1.46.1
install boost 1.47, compile
i know that not some many already have installed boost 1.47 in their distros but for the future :)
No tags attached.
Issue History
2011-07-31 11:29lssjbrolliNew Issue
2011-08-04 22:34ubuntuxNote Added: 0001901
2011-08-04 23:50ubuntuxNote Added: 0001902
2011-08-04 23:50ubuntuxStatusnew => closed
2011-08-04 23:50ubuntuxAssigned To => ubuntux
2011-08-04 23:50ubuntuxResolutionopen => fixed

Notes
(0001901)
ubuntux   
2011-08-04 22:34   
Try replacing
  io_service(&Socket->io_service())
with
  io_service(&Socket->get_io_service())
(0001902)
ubuntux   
2011-08-04 23:50   
Fixed in r2274.