lua-users home
lua-l archive

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


program TestLua;
{$APPTYPE CONSOLE}
uses
SysUtils,
lauxlib in 'lauxlib.pas',
lua in 'lua.pas',
lualib in 'lualib.pas';

var
L: Plua_State;
st: string;
d: double;

begin
st := 'print("Hello Lua!")';
L := lua_open();
luaopen_base(L);

[Error] testlua.dpr(17): Undeclared identifier: 'luaopen_base'

I find "luaopen_base" in lualib.h and not in lualib.pas; so, lualib.pas should be updated.

jilani