luvit / luv

Bare libuv bindings for lua
Apache License 2.0
831 stars 187 forks source link

Error loading module luv #691

Closed fenix272 closed 9 months ago

fenix272 commented 9 months ago

What i'm doing wrong? I have built luv as a module and i got 'luv.dll', then to try it out i put it in the same folder as a lua script: local luv = require('luv') but when i run the script i get this error: Error loading module 'luv' from file '.luv.dll', the specified procedure couldn't be found.

fenix272 commented 9 months ago

Upon further investigation i discovered the following. If i doluajit test.lua or lua test.lua it gives me that error. If i use wxlua, which i built using luajit everything is fine...

fenix272 commented 9 months ago

I was running the script with git bash, i then switched to a plain cmd window(i'm on windows 7) and got a more clear error: the procedure entry point GetSystemTimePreciseAsFileTime could not be located in Kernel32.dll. I think i know, it's because they dropped support for windows 7. Infact using a less recent version it works.

squeek502 commented 9 months ago

Yep, the minimum Windows version became Windows 8 in Libuv 1.41.0: https://github.com/luvit/luv/releases/tag/1.41.0-0