dictlab/mdict-cpp

error: assigning to 'const mz_uint8 *' (aka 'const unsigned char *') from incompatible type 'void *'

Closed this issue · 2 comments

~/Desktop/mdict-cpp [master ✓ (5187196)] [0:16:40]
➜ make libmdict

g++ --std=c++11 -Ideps/miniz/ deps/miniz/miniz.c deps/miniz/miniz_zip.c deps/miniz/miniz_tinfl.c deps/miniz/miniz_tdef.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
deps/miniz/miniz_zip.c:767:21: error: assigning to 'const mz_uint8 *' (aka 'const unsigned char *') from incompatible type
      'void *'
                                                pExtra_data = buf;
                                                              ^~~
1 error generated.
make: *** [libmdict] Error 1

How do I get rid of this problem?

@ripperhe I've fixed this problem just now, please pull the latest code

@terasum
The problem is solved. Thank you.