-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: entrypoint not found in DLL #42
Comments
I have successfully done the second option - use static zlib.
(change the filename to match the existing one) |
Sorry that I don't have enough luarocks rockspec knowledge to make this into a PR that wouldn't break other platforms :( |
thank you for documenting this |
Thank you for recording the solution, it is very helpful to me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm able to install lua-zlib using LuaRocks on my Windows system. However, when trying to load lua-zlib, using
require("zlib")
, I get an OS error dialog for lua.exe, saying "entry pointcrc32_combine
could not be located in the dynamic link library zlib.dll".Upon further inspection, I found out that Windows will not load the zlib.dll that is the dependency of (lua-)zlib.dll, because it thinks it's already loaded, and it will try to load the zlib entrypoints from the lua-zlib DLL. From MS docs: If a DLL with the same module name is already loaded in memory, the system uses the loaded DLL, no matter which directory it is in. The system does not search for the DLL.
There are two fixes for this, neither seems currently doable:
Can you advise what to do now? Thanks
The text was updated successfully, but these errors were encountered: