Skip to content

0.7.4: Tests fail to compile: undefined symbol: std::__1::basic_ostream<char, std::__1: ... #255

@yurivict

Description

@yurivict

clang-12 fails to compile it:

FAILED: test/test_xiterator_base 
: && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector-strong test/CMakeFiles/test_xiterator_base.dir/main.cpp.o test/CMakeFiles/test_xiterator_base.dir/test_xiterator_base.cpp.o -o test/test_xiterator_base  -pthread && :
ld: error: undefined symbol: std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::operator<<<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by test_xiterator_base.cpp
>>>               test/CMakeFiles/test_xiterator_base.dir/test_xiterator_base.cpp.o:(doctest::String doctest::detail::stringifyBinaryExpr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, char [2]>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*, char const (&) [2]))
c++: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions