I am using RB-zlib (zlib binding) from Boredom Software.
I am using the built in zlib in Mac OS X 10.10.5
When I build a 32 bit application and execute it, I get a "Incompatible Version" error
Any pointers ?
The error occurs in the following routine
Sub Constructor(CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION, CompressionStrategy As Integer = zlib.Z_DEFAULT_STRATEGY, Encoding As Integer = zlib.DEFLATE_ENCODING, MemoryLevel As Integer = zlib.DEFAULT_MEM_LVL)
' Construct a new Deflater instance using the specified compression options.
' If the deflate engine could not be initialized an exception will be raised.
// Calling the overridden superclass constructor.
// Constructor() -- From zlib.FlateEngine
Super.Constructor()
If CompressionStrategy <> Z_DEFAULT_STRATEGY Or Encoding <> DEFLATE_ENCODING Or MemoryLevel <> DEFAULT_MEM_LVL Then
' Open the compressed stream using custom options
mLastError = deflateInit2_(zstruct, CompressionLevel, Z_DEFLATED, Encoding, MemoryLevel, CompressionStrategy, zlib.Version, zstruct.Size)
Else
' process zlib-wrapped deflate data
mLastError = deflateInit_(zstruct, CompressionLevel, zlib.Version, zstruct.Size)
End If
If mLastError <> Z_OK Then Raise New zlibException(mLastError)
mLevel = CompressionLevel
mStrategy = CompressionStrategy
End Sub