Skip to content

Conversation

@kalgen432
Copy link

@kalgen432 kalgen432 commented Sep 11, 2023

With gcc 11 as part of more recent Linux distros, some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. As such, C++ programs that used standard library components without including the right headers will no longer compile.

The following headers are used less widely in libstdc++ and may need to be included explicitly when compiled with GCC 11:

(for std::numeric_limits)

Addresses: #47
Reference: https://gcc.gnu.org/gcc-11/porting_to.html#header-dep-changes

…d by gcc 11+

With gcc 11, some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. As such, C++ programs that used standard library components without including the right headers will no longer compile.

The following headers are used less widely in libstdc++ and may need to be included explicitly when compiled with GCC 11:

<limits> (for std::numeric_limits)

https://gcc.gnu.org/gcc-11/porting_to.html#header-dep-changes
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