MantisBT - VCMI
View Issue Details
0001278VCMIOtherpublic2013-05-29 07:332014-05-30 17:43
o01eg 
Ivan 
highblockalways
closedfixed 
AMD64LinuxGentoo
 
 
0001278: Cann't compile vcmi [r3391]
$ LANG="en_US.UTF-8" idle.sh make
[ 0%] Building CXX object lib/CMakeFiles/vcmi.dir/CGameState.cpp.o
/mnt/another/tmp/vcmi/lib/CGameState.cpp: In member function ‘int CGameState::pickHero(PlayerColor)’:
/mnt/another/tmp/vcmi/lib/CGameState.cpp:486:3: error: no matching function for call to ‘random_shuffle(std::vector<HeroTypeID>&, CGameState::pickHero(PlayerColor)::<lambda(size_t)>)’
/mnt/another/tmp/vcmi/lib/CGameState.cpp:486:3: note: candidates are:
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:57:33: note: const RandomAccessRange& boost::range::random_shuffle(const RandomAccessRange&, Generator&) [with RandomAccessRange = std::vector<HeroTypeID>, Generator = CGameState::pickHero(PlayerColor)::<lambda(size_t)>]
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:57:33: note: no known conversion for argument 2 from ‘CGameState::pickHero(PlayerColor)::<lambda(size_t)>’ to ‘CGameState::pickHero(PlayerColor)::<lambda(size_t)>&’
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:48:27: note: RandomAccessRange& boost::range::random_shuffle(RandomAccessRange&, Generator&) [with RandomAccessRange = std::vector<HeroTypeID>, Generator = CGameState::pickHero(PlayerColor)::<lambda(size_t)>]
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:48:27: note: no known conversion for argument 2 from ‘CGameState::pickHero(PlayerColor)::<lambda(size_t)>’ to ‘CGameState::pickHero(PlayerColor)::<lambda(size_t)>&’
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:39:33: note: template<class RandomAccessRange> const RandomAccessRange& boost::range::random_shuffle(const RandomAccessRange&)
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:30:27: note: template<class RandomAccessRange> RandomAccessRange& boost::range::random_shuffle(RandomAccessRange&)
/usr/include/boost-1_49/boost/system/error_code.hpp: At global scope:
/usr/include/boost-1_49/boost/system/error_code.hpp:214:36: warning: ‘boost::system::posix_category’ defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/system/error_code.hpp:215:36: warning: ‘boost::system::errno_ecat’ defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/system/error_code.hpp:216:36: warning: ‘boost::system::native_ecat’ defined but not used [-Wunused-variable]
make[2]: *** [lib/CMakeFiles/vcmi.dir/CGameState.cpp.o] Error 1
make[1]: *** [lib/CMakeFiles/vcmi.dir/all] Error 2
make: *** [all] Error 2
1. Update the repository to 3391 revision.
2. Try to compile.
gcc - 4.6.4
boost - 1.49
No tags attached.
Issue History
2013-05-29 07:33o01egNew Issue
2013-05-29 07:40IvanNote Added: 0003584
2013-05-29 07:40IvanAssigned To => Ivan
2013-05-29 07:40IvanStatusnew => assigned
2013-05-29 08:16IvanNote Added: 0003586
2013-05-29 08:16IvanStatusassigned => resolved
2013-05-29 08:16IvanResolutionopen => fixed
2014-05-30 17:43beegeeStatusresolved => closed

Notes
(0003584)
Ivan   
2013-05-29 07:40   
Got this too, will fix.
(0003586)
Ivan   
2013-05-29 08:16   
Fixed, rev 3392