Differences between compat and non-compat build #966
Replies: 4 comments 6 replies
-
The compatibility version is mostly useful when you can't rebuild the binary using zlib. For anything that has source code available, one should use non-compatibility version and adapt the source codes instead. Non-compatibility mode fixes several issues due to old code in zlib being designed for 32-bit systems and older even though modern systems are mostly 64-bit and can use larger files and more memory. |
Beta Was this translation helpful? Give feedback.
-
Please see PORTING.md for the differences. |
Beta Was this translation helpful? Give feedback.
-
Yes, thank you. I am using 32-bit zlib even on a 64-bit OS and CPU because
the application is 32-bit.
Am Sonntag, 16. Mai 2021 schrieb Mika Lindqvist ***@***.***>:
… Both zlib and the application have to be either 32-bit or 64-bit, as those
are incompatible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#966 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMRGGU3PGRMXERX46235RYDTN5I6BANCNFSM446EWP7Q>
.
|
Beta Was this translation helpful? Give feedback.
-
Replacing a zlib library file (.dll or .so) with the file from zlib-ng compiled in compat mode can work, and probably usually will, but it is not guaranteed and not something we can recommend as it does carry some risk. Doing the same for an application that contains vital data, is something we need to warn against, as a crash there could corrupt data that can not easily be replaced. For example on databases, accounting software, medical software, etc, you should be much more careful. To ensure the least chance of anything going wrong, the application should be recompiled with zlib-ng (in either compat or native mode). |
Beta Was this translation helpful? Give feedback.
-
Hi,
the question is in the title. Is zlib-ng (compat) more focused on compatibility to original zlib1, and zlib-ng (non-compat) focused on new features?
So which version should I use to replace an original build of zlib1.dll?
Thank you for answer.
Beta Was this translation helpful? Give feedback.
All reactions