You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lutok-...@googlegroups.com
i use lutok to bind my lua code in my c++ program, it work great.
but when i want to use require, it report me "attempt to call global 'require' (a nil value)"
and i can't found luaL_openlibs in lutok...
so, please help me to fix it.
Julio Merino
unread,
Nov 21, 2013, 6:17:32 PM11/21/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lutok-...@googlegroups.com
On Tue, Nov 19, 2013 at 11:32 AM, 张育玮 <cos...@gmail.com> wrote:
> i use lutok to bind my lua code in my c++ program, it work great.
>
> but when i want to use require, it report me "attempt to call global
> 'require' (a nil value)"
>
> and i can't found luaL_openlibs in lutok...
Please try state::open_base() instead. I think that should do the trick for you.