Original Post
Im trying to get SDL to work in lua. Ive put the luaSDL.dll file i got from here into c:\lua\bin, where ive put the lua binaries. Below shows when i, from the interactive, tries to import the lib. A guide shows that I should do "SDL", but since the file is named "luaSDL.dll", how does it find the filename from that? When I try to import "luaSDL" i get this error popup box stating that dll file couldnt be found, and the error you see in the shell. Any ideas on what Im doing wrong?
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
> print (package.cpath)
.\?.dll;C:\lua\bin\?.dll;C:\lua\bin\loadall.dll
> require ("SDL")
stdin:1: module 'SDL' not found:
no field package.preload['SDL']
no file '.\SDL.lua'
no file 'C:\lua\bin\lua\SDL.lua'
no file 'C:\lua\bin\lua\SDL\init.lua'
no file 'C:\lua\bin\SDL.lua'
no file 'C:\lua\bin\SDL\init.lua'
no file '.\SDL.dll'
no file 'C:\lua\bin\SDL.dll'
no file 'C:\lua\bin\loadall.dll'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
[C]: ?
> require ("luaSDL")
error loading module 'luaSDL' from file 'C:\lua\bin\luaSDL.dll':
The specified module could not be found.
stack traceback:
[C]: ?
[C]: in function 'require'
stdin:1: in main chunk
[C]: ?
>