MantisBT - VCMI
View Issue Details
0000929VCMIOtherpublic2012-04-15 19:162012-04-16 17:59
q4a 
 
normalminoralways
closedno change required 
amd64Ubuntu12.04
0.88 
 
0000929: Cannot build r2626 with gcc 4.6.3 and boost 1.46.1
r2622 builds fine (rechecked after "make clean" and "make distclean").
Error log:
  CXX libVCAI_la-Fuzzy.lo
  CXX libVCAI_la-VCAI.lo
In file included from ../../lib/../lib/HeroBonus.h:3:0,
                 from ../../lib/../lib/CCreatureSet.h:4,
                 from ../../lib/CObjectHandler.h:9,
                 from VCAI.cpp:5:
../../lib/../lib/GameConstants.h:15:20: error: redefinition of 'const string GameConstants::VCMI_VERSION'
../../lib/GameConstants.h:15:20: error: 'const string GameConstants::VCMI_VERSION' previously declared here
../../lib/../lib/GameConstants.h:33:21: error: redefinition of 'const string GameConstants::DATA_DIR'
../../lib/GameConstants.h:33:21: error: 'const string GameConstants::DATA_DIR' previously declared here
No tags attached.
Issue History
2012-04-15 19:16q4aNew Issue
2012-04-15 21:51IvanNote Added: 0002368
2012-04-16 17:49q4aNote Added: 0002369
2012-04-16 17:59WarmongerStatusnew => closed
2012-04-16 17:59WarmongerResolutionopen => no change required

Notes
(0002368)
Ivan   
2012-04-15 21:51   
Works for me with same gcc\boost versions.

Sounds that some file is missing include guard - #pragma once line that should be in all .h files
(0002369)
q4a   
2012-04-16 17:49   
Yes, sorry. Update gcc from 4.6.3-1ubuntu4 to 4.6.3-1ubuntu5 fixes problem.
Close this bug, please.