Menu

#32 Compilation error for version 4.1.0

next
closed
nobody
None
5
2023-03-04
2019-09-23
No

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 fromPathJumpUI::program_path_entrytoint&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

Discussion

  • Ralf Hoffmann

    Ralf Hoffmann - 2019-09-26

    Worker 4.1 requires a C++14 compiler. Try using "-std=c++14".

     
  • Aaron Fischer

    Aaron Fischer - 2019-09-29

    Thank you!

     
  • Ralf Hoffmann

    Ralf Hoffmann - 2019-10-04
    • status: open --> closed
     

Log in to post a comment.