hldig icon indicating copy to clipboard operation
hldig copied to clipboard

Build error under GCC 11 (

Open selkfoster opened this issue 4 years ago • 3 comments

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

selkfoster avatar Jan 11 '22 02:01 selkfoster

Hi again,

Passing -std=c++14 to the CXXFLAGS solves the build issue against GCC 11...

selkfoster avatar Apr 19 '22 10:04 selkfoster

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.

iandiver avatar May 12 '23 16:05 iandiver

Patches/Pull Requests are welcome. :-)

solbu avatar May 17 '23 20:05 solbu