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 "

Lua is written in C, and you're probably trying to use it in C++, which
means you have to use extern "C" when including the Lua headers.  For
example:

extern "C"
{
#include <lua.h>
}

Regards,
ashley