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

Include missing headers for compatibility with GCC 15 #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pastalian
Copy link

@pastalian pastalian commented Nov 27, 2024

cstdint needs to be included explicitly since GCC 15.
https://gcc.gnu.org/gcc-15/porting_to.html

/usr/bin/g++   -march=native -O3 -DNDEBUG -O3 -DNDEBUG -std=c++17 -MD -MT CMakeFiles/fsst.dir/libfsst.cpp.o -MF CMakeFiles/fsst.dir/libfsst.cpp.o.d -o CMakeFiles/fsst.dir/libfsst.cpp.o -c /fsst/libfsst.cpp
In file included from /fsst/libfsst.cpp:18:
/fsst/libfsst.hpp:39:9: error: ‘uint8_t’ does not name a type
   39 | typedef uint8_t u8;
      |         ^~~~~~~

/usr/bin/g++   -march=native -O3 -DNDEBUG -O3 -DNDEBUG -std=c++17 -MD -MT CMakeFiles/fsst12.dir/libfsst12.cpp.o -MF CMakeFiles/fsst12.dir/libfsst12.cpp.o.d -o CMakeFiles/fsst12.dir/libfsst12.cpp.o -c /fsst/libfsst12.cpp
In file included from /fsst/libfsst12.cpp:18:
/fsst/libfsst12.hpp:42:9: error: 'uint8_t' does not name a type
   42 | typedef uint8_t u8;
      |         ^~~~~~~

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.

1 participant