lua-users home
lua-l archive

including lfs.dll ?

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


I'm trying to use LuaFilesystem in windows.
I copied lfs.dll to the current dir. Then
tested:
-- test.lua
require"lfs"
print(lfs.currentdir())
...which doesn't work. The Lua-Interpreter tells me instead:
E:\Lua\Tests>lua5.1 test-lfs.lua
lua5.1: test-lfs.lua:1: module 'lfs' not found:
 no field package.preload['lfs']
 no file '.\lfs.lua'
 no file 'C:\WINDOWS\lua\lfs.lua'
 no file 'C:\WINDOWS\lua\lfs\init.lua'
 no file 'C:\WINDOWS\lfs.lua'
 no file 'C:\WINDOWS\lfs\init.lua'
 no file 'C:\windows\system'
stack traceback:
 [C]: in function 'require'
 test-lfs.lua:1: in main chunk
 [C]: ?
It seems to ignore the dll. Copying it to windows/system
didn't help either. (I set LUA_CPATH=C:\windows\system).
What went wrong?
Thanks
Christof

AltStyle によって変換されたページ (->オリジナル) /