atm i'm trying execute lua files application, works basic lua. i'm using borland compiler (builder 3, don't ask >.<)
now i'm trying use lpeg via re module. i've added lpeg directory lua_path environment variable. directory includes re. lua, lpeg.dll luaforwindows , *.c files.
now when try start script error error loading module 'lpeg' file 'lpeg.dll': lpeg.dll:1: syntax error near char(144)
the same script runs in iexecutor luaforwindows.
i guess i've setup lua environment wrong. put dll? have build myself compiler? (tried, failed)
thanks in advance.
the error message hints lua tried load dll lua script. there separate paths dll , lua libraries, don't mix two.
in other words, if lua finds dll using path in lua_path
or package.path
, try load lua script. put dll found using lua_cpath
or package.cpath
.