m17-cxx-demod
m17-cxx-demod copied to clipboard
Can't build with GCC 13 (missing #include <cstdint>)
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.
This works for me, thanks.
----Steve