You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
since v.3.0 I cannot use miniz anymore. I'm including miniz.c/miniz.h from the ZIP archive from the release page in my project, but compilation fails:
../../master/application/./3rdparty/miniz/miniz.c:1254:22: error: default initialization of an object of const type 'const mz_uint[11]' (aka 'const unsigned int[11]')
static const mz_uint s_tdefl_num_probes[11];
^
../../master/application/./3rdparty/miniz/miniz.c:2113:22: error: redefinition of 's_tdefl_num_probes'
static const mz_uint s_tdefl_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 };
^
../../master/application/./3rdparty/miniz/miniz.c:1254:22: note: previous definition is here
static const mz_uint s_tdefl_num_probes[11];
^
With v2.2.0 everything is fine.
Edit: Just tested again with v3.0.1 -> still the same error.
The text was updated successfully, but these errors were encountered:
* This is a header file library, like stb_image.c. To get only a header file, either cut and paste the
below header, or create miniz.h, #define MINIZ_HEADER_FILE_ONLY, and then include miniz.c from it.
I know the miniz documentation is not the best, but it seems, that above comment is not correct (anymore). After including miniz.h instead (and adding miniz.c to the project), I was again able to compile and use miniz in my project. I just don't understand why this issue now came up after miniz v3 release.
Hi,
since v.3.0 I cannot use miniz anymore. I'm including
miniz.c
/miniz.h
from the ZIP archive from the release page in my project, but compilation fails:With v2.2.0 everything is fine.
Edit: Just tested again with v3.0.1 -> still the same error.
The text was updated successfully, but these errors were encountered: