googletest icon indicating copy to clipboard operation
googletest copied to clipboard

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

Open HenryAWE opened this issue 1 year ago • 0 comments
trafficstars

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

HenryAWE avatar May 04 '24 18:05 HenryAWE