tfussell / miniz-cpp

A cross-platform header-only C++14 library for reading and writing ZIP files
MIT License
223 stars 76 forks source link

build fail, ubuntu 18.04 gcc7.3 #6

Open NicoG60 opened 5 years ago

NicoG60 commented 5 years ago

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_writefunc {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

iamOgunyinka commented 4 years ago

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

NicoG60 commented 4 years ago

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