hldig
hldig copied to clipboard
Build error under GCC 11 (
Hi friends,
There is a build error trying to compile hldig-20210616_9427c9cd (the current one) with GCC 11 (snapshot 11-20220101).
The full log at: http://sprunge.us/dBqom9
Hi again,
Passing -std=c++14 to the CXXFLAGS solves the build issue against GCC 11...
Another method I used was to rename the typedef for "byte" to "hlbyte" in hlword/WordBitCompress.h (typedef unsigned char hlbyte;) and to update corresponding files that use it (hlword/WordDBPage.cc and hlword/WordBitCompress.cc). This enabled compilation with GCC 11 without changing CXXFLAGS.
Patches/Pull Requests are welcome. :-)