gopherlua-debugger icon indicating copy to clipboard operation
gopherlua-debugger copied to clipboard

Can not load emmy_core.dll

Open jinq0123 opened this issue 5 years ago • 0 comments

test.lua:

package.cpath = package.cpath .. ';' .. './?.dll'
local dbg = require('emmy_core')
dbg.tcpConnect('localhost', 9966)

DoFile() returns error:

test.lua:2: module emmy_core not found:
        no field package.preload['emmy_core']
        CreateFile ./emmy_core.lua: The system cannot find the file specified.,
stack traceback:
        [G]: in function 'require'
        test.lua:2: in main chunk
        [G]: ?

emmy_core.dll and test.lua are in the current work dir and lua.exe can run test.lua:

λ lua test.lua
[EMMY]lua version: 51
lua: [Emmy]connection refused
stack traceback:
        [C]: ?
        [C]: ?
        [C]: in function 'tcpConnect'
        test.lua:3: in main chunk
        [C]: ?

jinq0123 avatar Dec 04 '20 09:12 jinq0123