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

Fix addded <cstdint> #408

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Fix addded <cstdint> #408

merged 1 commit into from
Jan 23, 2025

Conversation

Jamaika1
Copy link

In file included from strings.cpp:41:
strings.h:58:25: error: 'uint16_t' was not declared in this scope
58 | std::string U16_to_utf8(uint16_t u16);
| ^~~~~~~~
strings.h:37:1: note: 'uint16_t' is defined in header ''; this is probably fixable by adding '#include '
36 | #include
+++ |+#include
37 |
strings.cpp:240:13: error: redefinition of 'std::string U16_to_utf8'
240 | std::string U16_to_utf8(uint16_t u16)
| ^~~~~~~~~~~
strings.h:58:13: note: 'std::string U16_to_utf8' previously declared here
58 | std::string U16_to_utf8(uint16_t u16);
| ^~~~~~~~~~~
strings.cpp:240:25: error: 'uint16_t' was not declared in this scope
240 | std::string U16_to_utf8(uint16_t u16)
| ^~~~~~~~
strings.cpp:48:1: note: 'uint16_t' is defined in header ''; this is probably fixable by adding '#include '
47 | #include
+++ |+#include

In file included from strings.cpp:41:
strings.h:58:25: error: 'uint16_t' was not declared in this scope
   58 | std::string U16_to_utf8(uint16_t u16);
      |                         ^~~~~~~~
strings.h:37:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   36 | #include <memory>
  +++ |+#include <cstdint>
   37 |
strings.cpp:240:13: error: redefinition of 'std::string U16_to_utf8'
  240 | std::string U16_to_utf8(uint16_t u16)
      |             ^~~~~~~~~~~
strings.h:58:13: note: 'std::string U16_to_utf8' previously declared here
   58 | std::string U16_to_utf8(uint16_t u16);
      |             ^~~~~~~~~~~
strings.cpp:240:25: error: 'uint16_t' was not declared in this scope
  240 | std::string U16_to_utf8(uint16_t u16)
      |                         ^~~~~~~~
strings.cpp:48:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   47 | #include <vector>
  +++ |+#include <cstdint>
@pinterf
Copy link

pinterf commented Oct 28, 2024

Formerly it was included in , seems like they changed it in GCC 15.
Could you change the description to something like that: "Add missing header for GCC 15?" and without the long error message copy paste in the commit text?

@Jamaika1 Jamaika1 changed the title Test GCC 15.0.0 20241020 Fix addded <cstdint> Oct 28, 2024
@pinterf pinterf merged commit 73cb766 into AviSynth:master Jan 23, 2025
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

Successfully merging this pull request may close these issues.

2 participants