mpark / patterns

This is an experimental library that has evolved to P1371, proposed for C++23.

Home Page:https://wg21.link/p1371

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linker error with test

APokorny opened this issue · comments

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

Closed in bd4b9b8