-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I'm attempting to use LuaGlue in a project that is being compiled on both OS X and Windows (64-bit support on both platforms). I'm using Visual Studio 2013 Update 4 (the latest update as of Jan 12, 2014).
I'm seeing various compiler errors with the code from LuaGlue master pulled today. From looking at the various open and closed issues, it looks like LuaGlue has worked on Windows at different points in time.
What is the current status of using LuaGlue on Windows?
See below for two examples of errors...
In LuaGLueLuaValue.h, snprintf(buff, sizeof(buff), "LUA_TNONE"); fails to compile. This behavior is expected based on the VS2013 notes.
I am also seeing an error about applyTuple...
1>C:\mycode\ThirdParty\LuaGlue\include\LuaGlue/LuaGlueIndexMethod.h(54): error C2780: 'R applyTuple(LuaGlueBase *,lua_State *,std::function<_Ret(_Args...)>,const std::tuple<_Rest...> &)' : expects 4 arguments - 5 provided
1> C:\mycode\ThirdParty\LuaGlue\include\LuaGlue/ApplyTuple/StdFunc.h(60) : see declaration of 'applyTuple'
1> C:\mycode\ThirdParty\LuaGlue\include\LuaGlue/LuaGlueIndexMethod.h(44) : while compiling class template member function 'int LuaGlueIndexMethod<_Value,_Class,_Key>::invoke(lua_State *)'
1> with
1> [
1> _Value=double
1> , _Class=LuaVector
1> , _Key=double
1> ]
1> C:\mycode\ThirdParty\LuaGlue\include\LuaGlue/LuaGlueIndexMethod.h(83) : see reference to function template instantiation 'int LuaGlueIndexMethod<_Value,_Class,_Key>::invoke(lua_State *)' being compiled
1> with
1> [
1> _Value=double
1> , _Class=LuaVector
1> , _Key=double
1> ]
1> C:\mycode\ThirdParty\LuaGlue\include\LuaGlue/LuaGlueClass.h(319) : see reference to class template instantiation 'LuaGlueIndexMethod<_Value,_Class,_Key>' being compiled
1> with
1> [
1> _Value=double
1> , _Class=LuaVector
1> , _Key=double
1> ]
1> c:\mycode\common\scripting\MpLua.h(60) : see reference to function template instantiation 'LuaGlueClass &LuaGlueClass::index(_Value (__cdecl LuaVector::* )(_Key))' being compiled
1> with
1> [
1> _Value=double
1> , _Key=double
1> ]
1> c:\mycode\common\scripting\MpLua.h(62) : see reference to function template instantiation 'LuaGlueClass &LuaGlueClass::index(_Value (__cdecl LuaVector::* )(_Key))' being compiled
1> with
1> [
1> _Value=double
1> , _Key=double
1> ]
1>C:\mycode\ThirdParty\LuaGlue\include\LuaGlue/LuaGlueIndexMethod.h(54): error C2780: 'C *applyTuple(LuaGlueBase *,lua_State *,const std::tuple<_Types1...> &)' : expects 3 arguments - 5 provided
1> C:\mycode\ThirdParty\LuaGlue\include\LuaGlue/ApplyTuple/ObjCtor.h(58) : see declaration of 'applyTuple'
1>C:\mycode\ThirdParty\LuaGlue\include\LuaGlue/LuaGlueIndexMethod.h(54): error C2782: 'R applyTuple(LuaGlueBase *,lua_State *,LuaGlueTypeValue &,R (__cdecl T::* )(ArgsF...) const,const std::tuple<_Types2...> &)' : template parameter 'ArgsF' is ambiguous
1> C:\mycode\ThirdParty\LuaGlue\include\LuaGlue/ApplyTuple/GlueObjConstFunc.h(63) : see declaration of 'applyTuple'
1> could be 'double'
1> or ''
Metadata
Metadata
Assignees
Labels
No labels