#12 FastWriter is deprecated: Use StreamWriterBuilder instead

已關閉
themusicgod16 年之前創建 · 0 條評論

/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 在代碼提交 6 年之前 中引用了該問題
Sign in to join this conversation.
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容