View Full Version : Debian 7 - PlayerMethods.h - sEluna.Push(L, it->second.end); ambiguous

01-24-2014, 05:53 PM
Hi guys, it's my first post, and in the first place I like to thank you very much, the iniciative of the Eluna is awesome.

I am eager to implement, using Eluna, bots to aid me in dungeons, but... the error above is blocking my way:

In file included from /home/mangos/da46eluna/src/LuaEngine/LuaFunctions.cpp:13:0:
/home/mangos/da46eluna/src/LuaEngine/PlayerMethods.h: In function ‘int LuaPlayer::GetSpellCooldowns(lua_State*, Player*)’:
/home/mangos/da46eluna/src/LuaEngine/PlayerMethods.h:488:42: error: call of overloaded ‘Push(lua_State*&, const time_t&)’ is ambiguous
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/LuaFunctions.cpp.o] Error 1
make[1]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/all] Error 2
make: *** [all] Error 2

My system:
OS: Debian 7 - 32 bit - running on Virtual Box 4.3.6
Repo: https://github.com/ElunaLuaEngine/Eluna-TC-Wotlk.git
Commit: da46103c2bed78f29e8d7c2356b9848dc577aa21

cmake ../ -DPREFIX=/home/trinity/da46eluna -DCONF_DIR=/home/trinity/da46eluna/conf -DLIBSDIR=/home/trinity/da46eluna/lib -DUSE_SFMT=1 -DTOOLS=1 -DSCRIPTS=1 -DSERVERS=1 -DWITH_WARNINGS=1

Other info: TC (git://github.com/TrinityCore/TrinityCore.git) works fine.

Thanks in advance.

Edit: added cmake parameters

01-24-2014, 06:13 PM
Compiling, I'll see what's up here soon.

Compiled fine for me.. What compiler are you using?

01-24-2014, 07:15 PM
Thanks for the quick attention.

Good question! I will try to answer, sorry if unsucceful.

I added the cmake.txt the output of cmake added -debug-output. It seems using gcc.

info whith make -d:
GNU Make 3.81
Building CXX object src/LuaEngine/CMakeFiles/LuaEngine.dir/LuaFunctions.cpp.o
Reaping winning child 0x081cc0d0 PID 2703
Live child 0x081cc0d0 (src/LuaEngine/CMakeFiles/LuaEngine.dir/LuaFunctions.cpp.o) PID 2705

The problem occurs when I execute "make" of TrinityCore wiki (http://collab.kpsn.org/display/tc/How-to_Linux).

01-25-2014, 08:46 AM
Fixed, try again.

01-25-2014, 10:31 AM
It works!!!

Thank you very much.

01-25-2014, 11:32 AM
Marking as solved