ATM I'm trying to execute lua files from my application, this works with the basic lua. I'm using a borland compiler (builder 3, just don't ask >.<)
Now I'm trying to use lpeg via the re module. I've added the lpeg directory to the LUA_PATH environment variable. This directory includes re. lua, lpeg.dll from LuaForWindows and the *.c files.
Now when I try to start my script I get the error error loading module 'lpeg' from file 'lpeg.dll': lpeg.dll:1: syntax error near char(144)
The same script runs perfectly in the IExecutor from LuaForWindows.
I guess I've setup my lua environment completely wrong. Where do I put the dll? Do I have to build it myself with my compiler? (tried, but failed)
Thanks in advance.