Can't build with GCC 13 (missing #include <cstdint>)
Opened this issue · 0 comments
borys-wwa commented
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.