miniz-cpp icon indicating copy to clipboard operation
miniz-cpp copied to clipboard

build fail, ubuntu 18.04 gcc7.3

Open NicoG60 opened this issue 6 years ago • 2 comments

Here is the error : zip_file.hpp:5611:30: error: invalid conversion from ‘std::size_t ()(void, uint64_t, const void*, std::size_t) {aka long unsigned int ()(void, long unsigned int, const void*, long unsigned int)}’ to ‘mz_file_write_func {aka long unsigned int ()(void, long long unsigned int, const void*, long unsigned int)}’ [-fpermissive] archive_->m_pWrite = &detail::write_callback;

build and works well on macOS 10.14, clang v10

NicoG60 avatar Feb 10 '19 12:02 NicoG60

What I did to fix this up is to define mz_uint64 as std::uint64_t in here and I got it to compile.

iamOgunyinka avatar Mar 01 '20 09:03 iamOgunyinka

That's exactly what I did in my pull request #7

NicoG60 avatar Mar 01 '20 12:03 NicoG60