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

Missing include when compiling with GNU 13 compiler #1

Open
AxelKrypton opened this issue Jan 17, 2024 · 0 comments
Open

Missing include when compiling with GNU 13 compiler #1

AxelKrypton opened this issue Jan 17, 2024 · 0 comments

Comments

@AxelKrypton
Copy link

According to GNU compiler documentation about new aspects in GNU 13, the <cstdint> header providing fixed width integer types has to be explicitly included in the new version. Indeed using the testing framework in an external project and hence having to include vir/test.h breaks down compilation with GNU 13, because std::uint8_t type is not found any more. This is used here:

const auto bytes = reinterpret_cast<const std::uint8_t *>(&x);

Adding the missing #include <cstdint> should fix the problem.

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