Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
borys-wwa opened this issue Dec 5, 2023 · 0 comments
Open

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

borys-wwa opened this issue Dec 5, 2023 · 0 comments

Comments

@borys-wwa
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant