[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: embedding lua, lua_open not found
- From: Vyacheslav Egorov <mraleph@...>
- Date: Sat, 29 Jul 2006 16:17:06 +0700
Ingo Hohmann wrote:
But here's my problem:
(import "lua5.1.dll" "lua_open")
import function not found in function import : "lua_open"
Now, without lua_open it seems hard to go any further.
Do you have any idea what might be happening?
In Lua 5.1 lua_open is just a macros (see reference manual
[http://www.lua.org/manual/5.1/manual.html#7.3] for details), it is
defined in lua.h for compatibility
#define lua_open() luaL_newstate()
so you need to import luaL_newstate instead...