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

Build fails on linux: globals/base64.h:7:40: error: ‘uint8_t’ was not declared in this scope #19

Open
Okxa opened this issue Jun 21, 2023 · 1 comment

Comments

@Okxa
Copy link

Okxa commented Jun 21, 2023

Using Arch linux, dunno if this happens on other distros.

Build fails with the following errors:

globals/base64.h:7:40: error: ‘uint8_t’ was not declared in this scope
    7 | std::string base64_encode(const Vector<uint8_t> &p_buffer);
      |                                        ^~~~~~~
globals/base64.h:5:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
    4 | #include "vector.h"
  +++ |+#include <cstdint>
    5 | #include <string>

etc...

like suggested, this can be resolved by adding #include <cstdint> to globals/base64.h

@bratpeki
Copy link

Tested on Manjaro, so an Arch-based distro. Checks out!

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

2 participants