Code: Select all
Error
error loading module 'lib.DepthBuffer' from file '.\lib\DepthBuffer.dll':
The specified procedure could not be found.
Traceback
[C]: at 0x635da030
[C]: in function 'require'
main.lua:12: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
So far, that dll consists of the following bare-bones code:
Code: Select all
int test(lua_State * L)
{
return 0;
}
int main()
{
lua_State *L = lua_open();
luaL_openlibs(L);
static luaL_reg staticMethods[] = {
{"test", test},
};
luaL_register(L, NULL, staticMethods);
lua_close(L);
return 0;
}