CombinatorC icon indicating copy to clipboard operation
CombinatorC copied to clipboard

[Windows] zlib1.dll missing dependency

Open tplaskota opened this issue 2 years ago • 3 comments

Using Windows 11 calling combc-windows.exe from console as .\combc-windows.exe input.txt does not produce a result. Opening combc-windows.exe using file manager results in system error popup. Release version 0.1.9

Title: combc-windows.exe - System Error Description: The code execution cannot proceed because zlib1.dll was not found. Reinstalling the program may fix the problem. 2022-03-15 18_04_36-Downloads

tplaskota avatar Mar 15 '22 17:03 tplaskota

To resolve the problem I've downloaded zlib1.dll in version 2.2.10.0 for x86_64 architecture (available for example here https://www.dll-files.com/zlib1.dll.html )

Downloaded *.dll file should be copied to C:\Windows\System32

Opening combc-windows.exe from file manager does not create an error poput and no result (as it should) Calling executable from console with example input correctly prints the result.

tplaskota avatar Mar 15 '22 17:03 tplaskota

Ah yeah thanks for the heads-up. I think I'll create a Windows installer that will automatically install the dll, in the meantime I'll add this info to the README.

osimon8 avatar Mar 15 '22 17:03 osimon8

You should be able to just include the dll from the build system, and put it next to the binary, and zip it up for now (this is common in open source projects), Windows searches for dll's in the binaries path, zlib seems to be a hard dep for open source build chains on windows (i.e. using msys64), so I would recommend against putting zlib in System32 as it could break other software.

P.S. I love the idea of this project, and admire the dedication.

YellowOnion avatar Oct 22 '23 03:10 YellowOnion