I created a lua lib using nim but only works if I put the lua dll in the same dir as the lib. I'm not embedding lua. Any ideas about how to solve this? If I remove the dll I get the error could not load: lua(|5.1|5.0).dll.
You're supposed to pack the required DLLs next to the .exe file, that's simply how Windows works. You can also install DLLs to somewhere else in the PATH iirc but that only encourages DLL version conflicts, so don't do that.