widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #02079
clang compilation trouble
Hi All,
I tried to build widelands (trunk) on debian lenny with clang and run into
two problems:
first:
src/logic/widelands.h:68:19: error: constexpr variable 'INVALID_INDEX' must
be initialized by a constant
expression
constexpr uint8_t INVALID_INDEX = std::numeric_limits<uint8_t>::max();
It was fixed with adding 255 instead of std::numeric_limits<uint8_t>::max();
and second problem:
src/ui_fsmenu/loadreplay.cc:221:68: error: use of undeclared identifier 'fn'
[](const std::string& fn) {return
boost::ends_with(fn, REPLAY_SUFFIX);});
^
0 libLLVM-3.0.so.1 0x40daafc8
1 libLLVM-3.0.so.1 0x40dab4e4
2 0x4001e400 __kernel_sigreturn + 0
3 clang 0x089cacc3
clang::Expr::hasAnyTypeDependentArguments(clang::Expr**, unsigned int) + 35
4 clang 0x085eb294 clang::Sema::ActOnCallExpr(clang::Scope*,
clang::Expr*, clang::SourceLocation, clang::ASTMultiPtr<clang::Expr*>,
clang::SourceLocation, clang::Expr*, bool) + 628
[many lines follows]
Here I gave up and switched to gcc.
What can I do with this?
Tibor
Follow ups