lua-users home
lua-l archive

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


It was thus said that the Great Kaz once stated:
>    I tried the suggested changes, but the original test script worked fine
>    while this gave me the following error:
> 
>    C:\Users\name\AppData\Local\Temp\ccGhaL5y.o: In function 
ain':
> 
>    C:/Users/name/Desktop/Apps/test/embed.c:62:warning: implicit declaration of
>    function     'luaL_setfuncs';     did    you    mean    'lua_setfenv'?
>    [-Wimplicit-function-declaration]
> 
>      luaL_setfuncs(L,preloaders,0);
> 
>      ^~~~~~~~~~~~~
> 
>      lua_setfenv

  Oooh, I'm sorry!  Even though the subject stated you were using Lua 5.1, I
included a function it doesn't have.  Sigh.  Instead of using
luaL_setfuncs(), try:

	luaL_register(L,NULL,preloaders);

  -spc