MantisBT - VCMI
View Issue Details
0001204VCMIOtherpublic2013-02-11 20:012014-05-30 17:41
o01eg 
Ivan 
highblockalways
closedfixed 
amd64Gentoo Linux
 
 
0001204: Cann't compile vcmi from trunk [r3188].
When I compile vcmi I get error:

In file included from /mnt/another/tmp/vcmi/server/CGameHandler.cpp:21:0:
/mnt/another/tmp/vcmi/server/../lib/NetPacks.h: In constructor ‘BuildStructure::BuildStructure(si32, BuildingID)’:
/mnt/another/tmp/vcmi/server/../lib/NetPacks.h:1843:13: warning: ‘BuildStructure::bid’ will be initialized after [-Wreorder]
/mnt/another/tmp/vcmi/server/../lib/NetPacks.h:1842:7: warning: ‘si32 BuildStructure::tid’ [-Wreorder]
/mnt/another/tmp/vcmi/server/../lib/NetPacks.h:1841:2: warning: when initialized here [-Wreorder]
/mnt/another/tmp/vcmi/server/CGameHandler.cpp: In member function ‘void CGameHandler::handleSpellCasting(int, int, BattleHex, ui8, TPlayerColor, const CGHeroInstance*, const CGHeroInstance*, int, ECastingMode::ECastingMode, const CStack*, si32)’:
/mnt/another/tmp/vcmi/server/CGameHandler.cpp:3973:65: error: operands to ?: have different types ‘const CreatureID’ and ‘CreatureID::ECreatureID’
gcc-4.6.3
boost-1.49
No tags attached.
Issue History
2013-02-11 20:01o01egNew Issue
2013-02-11 20:13AlexVinSAssigned To => AlexVinS
2013-02-11 20:13AlexVinSStatusnew => assigned
2013-02-11 20:35AlexVinSNote Added: 0003365
2013-02-11 20:35AlexVinSAssigned ToAlexVinS =>
2013-02-11 20:35AlexVinSStatusassigned => new
2013-02-11 20:36AlexVinSNote Edited: 0003365bug_revision_view_page.php?bugnote_id=3365#r2120
2013-02-11 22:40IvanNote Added: 0003366
2013-02-11 22:40IvanStatusnew => resolved
2013-02-11 22:40IvanResolutionopen => fixed
2013-02-11 22:40IvanAssigned To => Ivan
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0003365)
AlexVinS   
2013-02-11 20:35   
(edited on: 2013-02-11 20:36)
this is fixed in 3190 but compilation with gcc is still broken.

(0003366)
Ivan   
2013-02-11 22:40   
gcc compilation should be fixed