Closed neheb closed 3 years ago
I'm using zlib.h version 1.2.11, from 2017.
It has both ZLIB_VERSION and zlibVersion(). For the latter, it says zlibVersion() is included for compatibility with versions < 1.0.2.
What version of zlib.h are you using?
1.2.11
So you're using a different library that doesn't have zlibVersion(), even though it is declared in zlib.h?
I'm using leptonica...
As I said, zlibVersion() is not in libz.a
nm -D /lib/x86_64-linux-gnu/libz.so.1
... 0000000000010050 T zlibVersion
However, nm -D /usr/lib/x86_64-linux-gnu/libz.a
doesn't have it, as you say.
I see that 1.0.2 is from 1996. That seems to be too old to worry about :-)
Thank you for fixing this.
zlibVersion() is not in the static library.