Re: error using require
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: error using require
- From: luo_hei@...
- Date: 2011年11月25日 17:47:36 -0500
On 25/11/11 16:56, Patrick Rapin wrote:
Can somebody see what is the problem here? I have Lua 5.1 and Ubuntu 11.10
Yes. The global function "require" is imported in the "package"
module, and you only register base, math table and string libraries.
So add the following line:
luaopen_package(luaVM);
Problem solved, thanks!
--
Roger D. Vargas
Using Gentoo Linux 2010
La unica forma de encontrar los limites de lo posible es yendo mas
alla de ellos, hacia lo imposible