#12 FastWriter is deprecated: Use StreamWriterBuilder instead

Suljettu
6 vuotta sitten avasi themusicgod1 · 0 kommenttia

/home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp: In member function ‘virtual bool dev::rpc::Test::test_setChainParams(const Json::Value&)’: /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp:40:20: error: ‘FastWriter’ is deprecated: Use StreamWriterBuilder instead [-Werror=deprecated-declarations] Json::FastWriter fastWriter;

                ^~~~~~~~~~

In file included from /usr/include/json/json.h:12,

             from /usr/include/jsonrpccpp/common/jsonparser.h:13,
             from /usr/include/jsonrpccpp/common/procedure.h:16,
             from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/ModularServer.h:30,
             from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/TestFace.h:8,
             from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.h:24,
             from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp:23:

/usr/include/json/writer.h:168:70: note: declared here class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API FastWriter : public Writer {

                                                                  ^~~~~~~~~~

cc1plus: all warnings being treated as errors make[2]: *** [libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/build.make:258: libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/Test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:735: libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

/home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp: In member function ‘virtual bool dev::rpc::Test::test_setChainParams(const Json::Value&)’: /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp:40:20: error: ‘FastWriter’ is deprecated: Use StreamWriterBuilder instead [-Werror=deprecated-declarations] Json::FastWriter fastWriter; ^~~~~~~~~~ In file included from /usr/include/json/json.h:12, from /usr/include/jsonrpccpp/common/jsonparser.h:13, from /usr/include/jsonrpccpp/common/procedure.h:16, from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/ModularServer.h:30, from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/TestFace.h:8, from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.h:24, from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp:23: /usr/include/json/writer.h:168:70: note: declared here class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API FastWriter : public Writer { ^~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/build.make:258: libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/Test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:735: libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
Jeff Cliff viittasi tähän ongelmaan commitissa 6 vuotta sitten
Kirjaudu sisään osallistuaksesi tähän keskusteluun.
Ei merkkipaalua
Ei osoitettua
1 osallistujaa
Ladataan...
Peruuta
Tallenna
Sisältöä ei vielä ole.