[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: I Can't Get Lua 5.1 and IUP 3.30 to Work With VSCode and GCC on Windows 10 x64
- From: Sean Conner <sean@...>
- Date: Thu, 28 Oct 2021 16:31:22 -0400
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