gemini-testing / png-img

Lite libpng wrapper for node.js
MIT License
29 stars 13 forks source link

gcc 11 support #61

Open kriku opened 3 years ago

kriku commented 3 years ago

It doesn't build with new version of gcc

https://www.gnu.org/software/gcc/gcc-11/porting_to.html

Header dependency changes

Some C++ Standard Library headers have been changed to no longer include other headers that they do need to depend on. 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)
<memory> (for std::unique_ptr, std::shared_ptr etc.)
<utility> (for std::pair, std::tuple_size, std::index_sequence etc.)
<thread> (for members of namespace std::this_thread.)