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

Compile error with newer gcc #799

Open
pprkut opened this issue Aug 2, 2023 · 0 comments
Open

Compile error with newer gcc #799

pprkut opened this issue Aug 2, 2023 · 0 comments

Comments

@pprkut
Copy link

pprkut commented Aug 2, 2023

I'm trying to compile drafter 5.1.0 with gcc 13.2.0 / glibc 2.37 and get this error:

/tmp/drafter-5.1.0/packages/drafter/src/utils/so/JsonIo.cc: In function ‘ItO {anonymous}::escape_json_string(ItI, ItI, ItO)’:
/tmp/drafter-5.1.0/packages/drafter/src/utils/so/JsonIo.cc:88:26: error: ‘uint8_t’ is not a member of ‘std’; did you mean ‘wint_t’?
   88 |                     std::uint8_t c = static_cast<std::uint8_t>(byte);
      |                          ^~~~~~~
      |                          wint_t
/tmp/drafter-5.1.0/packages/drafter/src/utils/so/JsonIo.cc:89:25: error: ‘c’ was not declared in this scope
   89 |                     if (c > 0x1f) { // non-control
      |                         ^
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