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

no type named 'uint_fast16_t' in namespace 'std' (Ubuntu + Clang) #229

Open
adamski opened this issue Jul 12, 2024 · 5 comments
Open

no type named 'uint_fast16_t' in namespace 'std' (Ubuntu + Clang) #229

adamski opened this issue Jul 12, 2024 · 5 comments

Comments

@adamski
Copy link

adamski commented Jul 12, 2024

Building with Clang 18 on Ubuntu 24, I'm getting the following build error:

/include/cpprealm/internal/bridge/realm.hpp:77:35: error: no type named 'uint_fast16_t' in namespace 'std'; did you mean simply 'uint_fast16_t'?
   77 |                 using port_type = std::uint_fast16_t;
      |                                   ^~~~~~~~~~~~~~~~~~
      |                                   uint_fast16_t
/usr/include/stdint.h:62:27: note: 'uint_fast16_t' declared here
   62 | typedef unsigned long int       uint_fast16_t;
      |                                 ^
Copy link

sync-by-unito bot commented Jul 12, 2024

➤ PM Bot commented:

Jira ticket: RCPP-85

@BestITUserEUW
Copy link

@adamski Had the same issue.

This patch fixes it it's just a missing: #include <cstdint> in include/cpprealm/internal/bridge/realm.hpp

missing-cstdint.patch

Tested on Ubuntu 24.04 with:

gcc (Ubuntu 12.3.0-17ubuntu1) 12.3.0

@adamski
Copy link
Author

adamski commented Jul 28, 2024

Thanks @BestITUserEUW !

@leemaguire any chance of getting this patch merged in?

@leemaguire
Copy link
Contributor

@adamski I'll try merge it in this week.

@BestITUserEUW
Copy link

@leemaguire There is also another error when building example with gcc. I can try to fix it and submit a pr next few days.

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

No branches or pull requests

3 participants