Error calling basic function from Lua
gmisail opened this issue · 0 comments
gmisail commented
Lua:
function foo()
print("hello!")
end
Cpp:
State state{true};
state.Load(resourcePath() + "main.lua");
state["foo"]();
Error Message:
Undefined symbols for architecture x86_64:
"_lua_rotate", referenced from:
sel::Selector::_evaluate_function_call(int) const in PL.o
sel::Selector::_get(sel::LuaRef) const in PL.o
ld: symbol(s) not found for architecture x86_64
The error is thrown when I attempt to call a function from Lua. My code runs totally fine if the state"foo"; line is removed.
I am using Lua 5.3, and Xcode 8.3 on macOS 10.12.