diff options
author | Elliott Hughes <enh@google.com> | 2021-12-07 09:43:38 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2021-12-07 09:43:38 -0800 |
commit | 1601ea0835d235a9f5c498e637e2b559da58e17b (patch) | |
tree | 5015100cb583ba035d40917cc21d3846f42adc89 /example | |
parent | 51fd5436a52846f49fc68197a55304025e86f25b (diff) | |
download | jsoncpp-1601ea0835d235a9f5c498e637e2b559da58e17b.tar.gz |
Upgrade jsoncpp to 1.9.5
Test: make
Change-Id: I0be1376ee1502a2fd9db2733b503f30f2777a02a
Diffstat (limited to 'example')
-rw-r--r-- | example/README.md | 4 | ||||
-rw-r--r-- | example/readFromString/readFromString.cpp | 1 | ||||
-rw-r--r-- | example/streamWrite/streamWrite.cpp | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/example/README.md b/example/README.md index b1ae4c8..92b925c 100644 --- a/example/README.md +++ b/example/README.md @@ -1,8 +1,8 @@ -***NOTE*** +***NOTE*** If you get linker errors about undefined references to symbols that involve types in the `std::__cxx11` namespace or the tag `[abi:cxx11]` then it probably indicates that you are trying to link together object files that were compiled with different -values for the _GLIBCXX_USE_CXX11_ABI marco. This commonly happens when linking to a third-party library that was compiled with +values for the _GLIBCXX_USE_CXX11_ABI marco. This commonly happens when linking to a third-party library that was compiled with an older version of GCC. If the third-party library cannot be rebuilt with the new ABI, then you need to recompile your code with the old ABI,just like: **g++ stringWrite.cpp -ljsoncpp -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -o stringWrite** diff --git a/example/readFromString/readFromString.cpp b/example/readFromString/readFromString.cpp index c27bbd5..0b29a4e 100644 --- a/example/readFromString/readFromString.cpp +++ b/example/readFromString/readFromString.cpp @@ -1,5 +1,6 @@ #include "json/json.h" #include <iostream> +#include <memory> /** * \brief Parse a raw string into Value object using the CharReaderBuilder * class, or the legacy Reader class. diff --git a/example/streamWrite/streamWrite.cpp b/example/streamWrite/streamWrite.cpp index 6f7f797..a72f5a5 100644 --- a/example/streamWrite/streamWrite.cpp +++ b/example/streamWrite/streamWrite.cpp @@ -1,5 +1,6 @@ #include "json/json.h" #include <iostream> +#include <memory> /** \brief Write the Value object to a stream. * Example Usage: * $g++ streamWrite.cpp -ljsoncpp -std=c++11 -o streamWrite |