Loading

Paste #pjsdh8fdn

  1. [SRC] Compiling fios.cpp
  2. In file included from /home/lordaro/dev/openttd/src/fios.cpp:15:0:
  3. /home/lordaro/dev/openttd/src/fios.cpp: In function ‘void FiosGetFileList(SaveLoadOperation, FiosType (*)(SaveLoadOperation, const char*, const char*, char*, const char*), Subdirectory, FileList&)’:
  4. /home/lordaro/dev/openttd/src/fios.cpp:415:72: error: no matching function for call to ‘sort(FiosItem*, const FiosItem*, bool (&)(const FiosItem&, const FiosItem&))’
  5.   std::sort(file_list.Get(sort_start), file_list.End(), CompareFiosItems);
  6.                                                                         ^
  7. In file included from /usr/include/c++/7.1.1/algorithm:62:0,
  8.                  from /home/lordaro/dev/openttd/src/core/smallmap_type.hpp:15,
  9.                  from /home/lordaro/dev/openttd/src/newgrf_config.h:17,
  10.                  from /home/lordaro/dev/openttd/src/fios.h:17,
  11.                  from /home/lordaro/dev/openttd/src/fios.cpp:16:
  12. /usr/include/c++/7.1.1/bits/stl_algo.h:4826:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
  13.      sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
  14.      ^~~~
  15. /usr/include/c++/7.1.1/bits/stl_algo.h:4826:5: note:   template argument deduction/substitution failed:
  16. /home/lordaro/dev/openttd/src/fios.cpp:415:72: note:   deduced conflicting types for parameter ‘_RAIter’ (‘FiosItem*’ and ‘const FiosItem*’)
  17.   std::sort(file_list.Get(sort_start), file_list.End(), CompareFiosItems);
  18.                                                                         ^
  19. In file included from /usr/include/c++/7.1.1/algorithm:62:0,
  20.                  from /home/lordaro/dev/openttd/src/core/smallmap_type.hpp:15,
  21.                  from /home/lordaro/dev/openttd/src/newgrf_config.h:17,
  22.                  from /home/lordaro/dev/openttd/src/fios.h:17,
  23.                  from /home/lordaro/dev/openttd/src/fios.cpp:16:
  24. /usr/include/c++/7.1.1/bits/stl_algo.h:4856:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
  25.      sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
  26.      ^~~~
  27. /usr/include/c++/7.1.1/bits/stl_algo.h:4856:5: note:   template argument deduction/substitution failed:
  28. /home/lordaro/dev/openttd/src/fios.cpp:415:72: note:   deduced conflicting types for parameter ‘_RAIter’ (‘FiosItem*’ and ‘const FiosItem*’)
  29.   std::sort(file_list.Get(sort_start), file_list.End(), CompareFiosItems);
  30.                                                                         ^
  31. make[1]: *** [Makefile:235: fios.o] Error 1
  32. make[1]: Leaving directory '/home/lordaro/dev/openttd/objs/release'
  33. make: *** [Makefile:56: all] Error 1

Version history

Revision # Author Created at
pux50pe54 Anonymous 09 Jul 2017, 11:35:44 UTC Diff

Comments