otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.59k stars 1.06k forks source link

compilation error, luascript.cpp #511

Closed andypsylon closed 10 years ago

andypsylon commented 10 years ago
/forgottenserver/src/luascript.cpp: In static member function âstatic int32_t LuaScriptInterface::luaAddEvent(lua_State*)â:
/forgottenserver/src/luascript.cpp:4256:51: error: use of deleted function âLuaTimerEventDesc& LuaTimerEventDesc::operator=(const LuaTimerEventDesc&)â
  g_luaEnvironment.m_timerEvents[lastTimerEventId] = eventDesc;
                                                   ^
In file included from /forgottenserver/src/luascript.cpp:24:0:
/forgottenserver/src/luascript.h:81:8: note: âLuaTimerEventDesc& LuaTimerEventDesc::operator=(const LuaTimerEventDesc&)â is implicitly declared as deleted because âLuaTimerEventDescâ declares a move constructor or move assignment operator
 struct LuaTimerEventDesc {
        ^
marksamman commented 10 years ago

Update your source code.

andypsylon commented 10 years ago

I have.

marksamman commented 10 years ago

It should be fixed now.

andypsylon commented 10 years ago

I have ubuntu and after "$ cmake .." in build I have got that:

-- Found LuaJIT: /usr/local/lib/libluajit-5.1.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "2.0.2")

can be the reason? This is the correct version?

andypsylon commented 10 years ago

fixed, thx