mpark / patterns

This is an experimental library that has evolved to P2688
https://wg21.link/p2688
Boost Software License 1.0
666 stars 31 forks source link

Linker error with test #5

Closed APokorny closed 6 years ago

APokorny commented 6 years ago

Steps:

git clone ..... git submodule init git submodule update --init --recursive mkdir bla && cd bla cmake -G Ninja ./ ../ then enabled tests in the cmake cache before building ninja and got these type of errors:

test/CMakeFiles/array.dir/array.cpp.o:
In function `auto mpark::patterns::detail::grouped_indices<&mpark::patterns::detail::{lambda(unsigned long)#2}::_FUN, , 9223372036854775807ul, 18446744073709551615ul, 0ul, 1ul>(mpark::patterns::lib::list<>, std::integer_sequence<unsigned long, 9223372036854775807ul, 18446744073709551615ul>, mpark::patterns::lib::list<><unsigned long, 0ul, 1ul>)::{lambda()#1}::operator()() const':
array.cpp:(.text+0x9a13): undefined reference to `mpark::patterns::lib::list<mpark::patterns::lib::indexed_type<9223372036854775807ul, std::integer_sequence<unsigned long, 0ul> > > mpark::patterns::detail::insert<9223372036854775807ul, 0ul>(mpark::patterns::lib::list<>)'
collect2: error: ld returned 1 exit status
[26/30] Building CXX object test/CMakeFiles/when.dir/when.cpp.o
ninja: build stopped: subcommand failed.

compiler used was: gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0

mpark commented 6 years ago

Closed in bd4b9b82d1e45358eaf27015cd314c574f32a6d4