google / googletest

GoogleTest - Google Testing and Mocking Framework

Home Page:https://google.github.io/googletest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Undefined symbol to `testing::internal::PrintTo` for `std::u8string`

HenryAWE opened this issue · comments

Describe the issue

If I used the library provided by the system package manager like pacman of Arch Linux, I will get a link error complaining about the PrintTo for std::u8string is undefined. But if I use the FetchContent to build the same version (v1.14.0) of GoogleTest for my project, this error disappears.

Steps to reproduce the problem

https://github.com/HenryAWE/PapilioCharontis/blob/7f9014c4051b1f635b843dbcab56be220c121163/CMakeLists.txt

Compiled with -Dpapilio_build_unit_test=1

What version of GoogleTest are you using?

v1.14.0

What operating system and version are you using?

Arch Linux

What compiler and version are you using?

GCC 13.2

What build system are you using?

CMake 3.29.2

Additional context

No response