On Wednesday, October 21, 2020 9:09:54 A.M. CDT Benjamin Eikel wrote: > Package: googletest > Version: 1.10.0.20201018-1 > Followup-For: Bug #972627 > > Here is a minimal example that can be used to reproduce the problem:
Thanks! That's extremely helpful. > Building with `g++ -std=c++20 test.cpp -lgmock_main -lgmock -lgtest > -pthread` and version 1.10.0.20201018-1 leads to: > > ``` > /usr/bin/ld: /tmp/ccgTGXuD.o: in function `Test_test_Test::TestBody()': > test.cpp:(.text+0x68): undefined reference to > `testing::Matcher<std::basic_string_view<char, std::char_traits<char> > > >::Matcher(std::basic_string_view<char, std::char_traits<char> >)' > collect2: error: ld returned 1 exit status > ``` > > Using the same command, but version 1.10.0-3 works. Yes, confirmed. I'm not sure yet why there is a difference. However, I can offer a workaround: compile googletest and googlemock yourself. It's a one- liner: g++ -std=c++20 test.cpp -I /usr/src/googletest/googletest -I /usr/src/ googletest/googlemock /usr/src/googletest/googlemock/src/gmock_main.cc /usr/ src/googletest/googlemock/src/gmock-all.cc /usr/src/googletest/googletest/src/ gtest-all.cc -pthread Meanwhile, I'll continue to investigate. -Steve
signature.asc
Description: This is a digitally signed message part.