#12 FastWriter is deprecated: Use StreamWriterBuilder instead

Stängd
öppnade 6 år sedan av themusicgod1 · 0 kommentarer
Jeff Cliff kommenterad 6 år sedan

/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 refererade till detta ärende från en incheckning 6 år sedan
Logga in för att delta i denna konversation.
Ingen Milsten
Ingen förvärvare
1 Deltagare
Laddar...
Avbryt
Spara
Det finns inget innehåll än.