lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> the statement
>     "lua_State *L = lua_newstate(NULL);"
> brings about
>     "unresolved external symbol "struct lua_State * __cdecl
lua_newstate(char const *,...)""

Depending on the settings (LUA_REENTRANT), lua_State gets declared or not.
When reentrant, it is not emitted, as it is assumed that people will supply
own states to the Lua API. If you still want to use it, you will need to put
in one of your source files, or compile Lua in non reentrant mode.