Embedding Lua in C++

前端 未结 1 904
你的背包
你的背包 2020-12-13 20:08

I\'ve been trying to embed lua in a c++ application but to no avail since the compiler complains about \"lua_open\".I\'m using Lua 5.2.

I found alot of articles clai

相关标签:
1条回答
  • 2020-12-13 20:36

    Indeed, the lua_open function is not mentioned in the lua 5.2 reference manual

    A lua_State is constructed with lua_newstate, and you can use luaL_newstate from lauxlib.h

    A faster way to get the answers to such question is to look into the Lua 5.2 source code (which I just did).

    0 讨论(0)
提交回复
热议问题