Compilation error for version 4.1.0
Brought to you by:
hoffmannr
CPPFLAGS="-O0 -std=gnu++11" LDFLAGS=-pthread ./configure --enable-xft --prefix=/usr --disable-cxx-check
make
...
/usr/include/c++/9.1.0/bits/predefined_ops.h:177:11: error: no match for call to ‘(PathJumpUI::PathJumpUI(AGUIX&, DeepPathStore&, Worker&)::<lambda(int&, int&)>) (PathJumpUI::program_path_entry&, PathJumpUI::program_path_entry&)’
177 | { return bool(_M_comp(*__it, __val)); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9.1.0/bits/predefined_ops.h:177:11: note: candidate: ‘void (*)(int&, int&)’ <conversion>
/usr/include/c++/9.1.0/bits/predefined_ops.h:177:11: note: candidate expects 3 arguments, 3 provided
pathjumpui.cc:218:20: note: candidate: ‘PathJumpUI::PathJumpUI(AGUIX&, DeepPathStore&, Worker&)::<lambda(int&, int&)>’
218 | []( auto &lhs, auto &rhs ) {
| ^
pathjumpui.cc:218:20: note: no known conversion for argument 1 from ‘PathJumpUI::program_path_entry’ to ‘int&’
make[3]: *** [Makefile:1582: pathjumpui.o] Error 1
make[3]: Leaving directory '/home/aaron/datenhalter/aur-testlab/packages/worker/src/worker-4.1.0/src'
make[2]: *** [Makefile:1621: all-recursive] Error 1
make[2]: Leaving directory '/home/aaron/datenhalter/aur-testlab/packages/worker/src/worker-4.1.0/src'
make[1]: *** [Makefile:1235: all] Error 2
make[1]: Leaving directory '/home/aaron/datenhalter/aur-testlab/packages/worker/src/worker-4.1.0/src'
make: *** [Makefile:421: all-recursive] Error 1
Worker 4.1 requires a C++14 compiler. Try using "-std=c++14".
Thank you!