Open wangtz0607 opened 3 months ago
Your project is set to use C++20 (which is necessary for std::u8string
) but I'm guessing your googletest library was built against an older C++ standard, like C++14 or C++17.
See https://github.com/google/googletest/issues/4528
I've had the same problem for a while and just this morning resolved it by figuring out how to rebuild the googletest libraries using C++20.
Describe the issue
The target fails to link with linker message "undefined reference to
testing::internal::PrintU8StringTo
" whenstd::u8string
is used in tests.Steps to reproduce the problem
Example
Actual Behavior
The target fails to link with linker message:
Expected Behavior
The target should link normally.
What version of GoogleTest are you using?
Tag
v1.15.2
What operating system and version are you using?
What compiler and version are you using?
What build system are you using?
Additional context
No response