Re: www/nginx-full failed with src/cxx_supportlib/IOTools/IOUtils.cpp:288:3: error: use of undeclared identifier 'random_shuffle'
- Reply: KIRIYAMA Kazuhiko : "Re: www/nginx-full failed with src/cxx_supportlib/IOTools/IOUtils.cpp:288:3: error: use of undeclared identifier 'random_shuffle'"
- In reply to: KIRIYAMA Kazuhiko : "www/nginx-full failed with src/cxx_supportlib/IOTools/IOUtils.cpp:288:3: error: use of undeclared identifier 'random_shuffle'"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Jul 2023 08:37:42 UTC
On 28 Jul 2023, at 03:45, KIRIYAMA Kazuhiko <kiri@truefc.org> wrote: > www/nginx-full failed with > "src/cxx_supportlib/IOTools/IOUtils.cpp:288:3: error: use of > undeclared identifier 'random_shuffle'" : std::random_shuffle has been removed from C++17, so either the code must be adjusted to use std::shuffle, or the port has to be compiled with C++14 or lower. Typically, you can add a line: USE_CXXSTD= c++14 to the port's Makefile, if the program respects CXXFLAGS. -Dimitry