m17-cxx-demod icon indicating copy to clipboard operation
m17-cxx-demod copied to clipboard

Can't build with GCC 13 (missing #include <cstdint>)

Open borys-wwa opened this issue 1 year ago • 1 comments

Hi. I was trying to build m17-cxx-demod on Ubuntu with GCC 13 (gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0 ) and got following error:

/home/xxxx/m17-cxx-demod/include/m17cxx/Util.h:213:47: error: ‘uint8_t’ was not declared in this scope
  213 | constexpr bool get_bit_index(const std::array<uint8_t, N>& input, size_t index)
      |                                               ^~~~~~~
/home/xxxx/m17-cxx-demod/include/m17cxx/Util.h:12:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   11 | #include <limits>
  +++ |+#include <cstdint>

After adding the missing include in the mentioned include file, it complied without issues, so I thought I would leave it here in case someone would like to fix it in source.

borys-wwa avatar Dec 05 '23 21:12 borys-wwa

This works for me, thanks.

----Steve

srs4511351 avatar Sep 05 '24 23:09 srs4511351