Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==== Building Lua++ (release) ====
- test_other.cpp
- main.cpp
- In file included from ../Source/test_other.cpp:5:0:
- ../Source/Lua++.hpp:821:95: warning: cannot declare member function ‘static Lua::Variable Lua::Variable::FromMemberFunction(Lua::State*, Ret (Clazz::*)(Args ...))’ to have static linkage [-fpermissive]
- static inline Variable Variable::FromMemberFunction(State* state, Ret (Clazz::*func)(Args...))
- ^
- ../Source/Lua++.hpp: In static member function ‘static Lua::Variable Lua::Variable::FromMemberFunction(Lua::State*, Ret (Clazz::*)(Args ...))’:
- ../Source/Lua++.hpp:823:57: error: expected primary-expression before ‘,’ token
- CppFunction::MemberFunctionWrapper<Ret>::Wrapper<Clazz, Args...>::store(*state, func);
- ^
- ../Source/Lua++.hpp:823:63: error: expected primary-expression before ‘...’ token
- CppFunction::MemberFunctionWrapper<Ret>::Wrapper<Clazz, Args...>::store(*state, func);
- ^
- ../Source/Lua++.hpp:823:63: error: expected ‘;’ before ‘...’ token
- In file included from ../Source/main.cpp:5:0:
- ../Source/Lua++.hpp:821:95: warning: cannot declare member function ‘static Lua::Variable Lua::Variable::FromMemberFunction(Lua::State*, Ret (Clazz::*)(Args ...))’ to have static linkage [-fpermissive]
- static inline Variable Variable::FromMemberFunction(State* state, Ret (Clazz::*func)(Args...))
- ^
- ../Source/Lua++.hpp: In static member function ‘static Lua::Variable Lua::Variable::FromMemberFunction(Lua::State*, Ret (Clazz::*)(Args ...))’:
- ../Source/Lua++.hpp:823:57: error: expected primary-expression before ‘,’ token
- CppFunction::MemberFunctionWrapper<Ret>::Wrapper<Clazz, Args...>::store(*state, func);
- ^
- ../Source/Lua++.hpp:823:63: error: expected primary-expression before ‘...’ token
- CppFunction::MemberFunctionWrapper<Ret>::Wrapper<Clazz, Args...>::store(*state, func);
- ^
- ../Source/Lua++.hpp:823:63: error: expected ‘;’ before ‘...’ token
- ../Source/Lua++.hpp: In instantiation of ‘Lua::Variable::Variable(Lua::State*, const T&) [with T = char [8]]’:
- ../Source/main.cpp:43:2: required from here
- ../Source/Lua++.hpp:681:45: error: ‘Push’ is not a member of ‘Lua::Extensions::AllowedType<char [8]>’
- Extensions::AllowedType<T>::Push(*state, v);
- ^
- ../Source/Lua++.hpp: In instantiation of ‘static Lua::Variable Lua::Variable::FromMemberFunction(Lua::State*, Ret (Clazz::*)(Args ...)) [with Clazz = test_cppfunction()::Class; Ret = int; Args = {int, int}]’:
- ../Source/main.cpp:79:75: required from here
- ../Source/Lua++.hpp:823:51: error: dependent-name ‘Lua::CppFunction::MemberFunctionWrapper<Ret>::Wrapper’ is parsed as a non-type, but instantiation yields a type
- CppFunction::MemberFunctionWrapper<Ret>::Wrapper<Clazz, Args...>::store(*state, func);
- ^
- ../Source/Lua++.hpp:823:51: note: say ‘typename Lua::CppFunction::MemberFunctionWrapper<Ret>::Wrapper’ if a type is meant
- ../Source/Lua++.hpp: In instantiation of ‘static Lua::Variable Lua::Variable::FromMemberFunction(Lua::State*, Ret (Clazz::*)(Args ...)) [with Clazz = test_cppfunction()::Class; Ret = void; Args = {int, int}]’:
- ../Source/main.cpp:81:76: required from here
- ../Source/Lua++.hpp:823:51: error: dependent-name ‘Lua::CppFunction::MemberFunctionWrapper<Ret>::Wrapper’ is parsed as a non-type, but instantiation yields a type
- ../Source/Lua++.hpp:823:51: note: say ‘typename Lua::CppFunction::MemberFunctionWrapper<Ret>::Wrapper’ if a type is meant
- Lua++.make:142: recipe for target 'obj/Release/test_other.o' failed
- make[1]: *** [obj/Release/test_other.o] Error 1
- make[1]: *** Waiting for unfinished jobs....
- Lua++.make:145: recipe for target 'obj/Release/main.o' failed
- make[1]: *** [obj/Release/main.o] Error 1
- Makefile:16: recipe for target 'Lua++' failed
- make: *** [Lua++] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement