Where should .dll files be placed when using lua5.1?

318 views Asked by At

I am using lua5.1 and I have a devicecomm.dll library that I need to use. However, I'm not sure where this library should be placed. On Mac I know that the location should be under /usr/local/lib/lua/5.1 Does anyone know the equivalent location to this, but for Windows? Also, would I need to update any of my environment variables when adding this library?

1

There are 1 answers

1
TSam On

DLL files should be placed in the same directory where the Lua interpreter is.

If the DLL file is not a Lua binary module (for example a DLL used with ffi in LuaJIT) you can place it where you want, but beware of DLL dependencies, which can turn in a true nightmare (as known as "DLL hell")