Hello, I got the following erros when I tried to compile glestae trunk:
glest_game/game/script_manager.cpp: In static member function »static int Glest::Game::ScriptManager::debugLog(Shared::Lua::LuaHandle*)«:
glest_game/game/script_manager.cpp:292: Fehler: ungültige Initialisierung einer nicht-konstanten Referenz des Typs »std::string&« von temporärem Wert des Typs »std::string«
glest_game/game/script_manager.cpp: In static member function »static int Glest::Game::ScriptManager::consoleMsg(Shared::Lua::LuaHandle*)«:
glest_game/game/script_manager.cpp:309: Fehler: ungültige Initialisierung einer nicht-konstanten Referenz des Typs »std::string&« von temporärem Wert des Typs »std::string«
which are translated to about:
glest_game/game/script_manager.cpp: In static member function »static int Glest::Game::ScriptManager::debugLog(Shared::Lua::LuaHandle*)«:
glest_game/game/script_manager.cpp:292: Error: invalid initialisation of a non-const reference of the type »std::string&« with the temporary value of the type »std::string«
glest_game/game/script_manager.cpp: In static member function »static int Glest::Game::ScriptManager::consoleMsg(Shared::Lua::LuaHandle*)«:
glest_game/game/script_manager.cpp:309: Error: invalid initialisation of a non-const reference of the type »std::string&« with the temporary value of the type »std::string«
This can be fixed by replacing
string &msg = ...
by
const string &msg = ...