Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

Compiler

Options

search_algorithms.h
search_algorithms.cpp

$
In file included from prog.cc:7:
./search_algorithms.h:6:10: error: function 'my::SequentialSearch<(lambda at prog.cc:42:39)>' is used but not defined in this translation unit, and cannot be defined in any other translation unit because its type does not have linkage
Iterator SequentialSearch(Iterator begin, Iterator end, Predicate pred);
         ^
prog.cc:40:22: note: used here
          return my::SequentialSearch(std::begin(list),
                     ^
In file included from prog.cc:7:
./search_algorithms.h:6:10: error: function 'my::SequentialSearch<(lambda at prog.cc:48:26)>' is used but not defined in this translation unit, and cannot be defined in any other translation unit because its type does not have linkage
Iterator SequentialSearch(Iterator begin, Iterator end, Predicate pred);
         ^
prog.cc:46:9: note: used here
    my::SequentialSearch(std::begin(list),
        ^
In file included from prog.cc:7:
./search_algorithms.h:6:10: error: function 'my::SequentialSearch<(lambda at prog.cc:63:26)>' is used but not defined in this translation unit, and cannot be defined in any other translation unit because its type does not have linkage
Iterator SequentialSearch(Iterator begin, Iterator end, Predicate pred);
         ^
prog.cc:61:9: note: used here
    my::SequentialSearch(std::begin(list),
        ^
In file included from prog.cc:7:
./search_algorithms.h:9:10: error: function 'my::BinarySearch<(lambda at prog.cc:74:35)>' is used but not defined in this translation unit, and cannot be defined in any other translation unit because its type does not have linkage
Iterator BinarySearch(Iterator begin, Iterator end, Compare comp);
         ^
prog.cc:72:22: note: used here
          return my::BinarySearch(std::begin(list),
                     ^
In file included from prog.cc:7:
./search_algorithms.h:9:10: error: function 'my::BinarySearch<(lambda at prog.cc:87:22)>' is used but not defined in this translation unit, and cannot be defined in any other translation unit because its type does not have linkage
Iterator BinarySearch(Iterator begin, Iterator end, Compare comp);
         ^
prog.cc:85:9: note: used here
    my::BinarySearch(std::begin(list),
        ^
5 errors generated.
Exit Code:
1