You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Started messing around with this locally and was able to reproduce.
This looks to me like a library version mismatch. If JsonCpp is compiled with C++11, but the example project is compiled with C++17, then this error reproduces for me locally. If the example project is compiled with C++11 as well, I don't receive this error.
Being compatible with different versions of C++ is a big value add for JsonCpp, at least historically. I am reluctant to move to C++17 as a requirement in general.
This bug shouldn't impact most production use cases, AFAIK. I think what is probably the best answer at this point is to ensure that the headers that get installed to the system actually match the library that get installed to the system.
Describe the bug
Since commit 60ccc1f ("feat: support std::string_view in Value API"), simple example fails to linker error.
To Reproduce
Steps to reproduce the behavior:
CMakeLists.txt
main.cpp
cmake -B build-example example && cmake --build build-example
Expected behavior
Desktop (please complete the following information):
Additional context
"key"
tostd::string
,std::string_view
orchar*
constant does not resolve the issue.The text was updated successfully, but these errors were encountered: