jsoncpp

    14热度

    1回答

    我最近使用VS71 makefiles编译了JSONCPP的SVN版本。它的工作,但我得到了很多的链接错误的 1>msvcprt.lib(MSVCP100.dll) : error LNK2005: "public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char

    3热度

    2回答

    如何将jsoncpp与使用g ++的C++程序连接起来?我想: g++ -o program program.cpp -L/path/to/library/files -ljsoncpp, -ljson, -llibjsoncpp 但G ++口口声声说: /usr/bin/ld: cannot find -lsomething

    3热度

    5回答

    任何人都有jsoncpp在vc90上工作? 他们使用构建系统Scons,我从来没有听说过。我安装了最新的Scons,发现了一个未公开的scons.bat,在我的jsoncpp目录中启动了vc90提示符,修改了SConstruct文件以支持msvc90目标(我从已经支持的msvc80平台拷贝了样板文件)运行了scons.bat platform=msvc90, : scons: done readi

    3热度

    1回答

    我正在尝试编写一个从Web API获取一些JSON的C++ Qt 4.7应用程序。我做了一些阅读,JsonCpp似乎是最好的。所以我建立它只是找到并添加到我的项目就好了。 void RetrievingInformationPage::replyFinished(QNetworkReply *reply) { Json::Value root; Json::Reader r

    6热度

    3回答

    如何构建它?文档对此很不好意思。它说你需要将scons.py放到目录中,但我不知道它在哪里。我曾尝试使用包含的预建,但它没有产生任何.lib文件。

    3热度

    6回答

    我想在我的C++代码中实现jsoncpp库,我写了一段简单的代码来试用它,它甚至不编译。 #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <string.h> #ifndef json_included #define json_included #include "jsoncpp\include

    20热度

    3回答

    我有一个C++应用程序,它使用jsoncpp来解码JSON字符串。我创建了以下功能,但它只显示顶级对象... 如何获取它以转储整个对象列表? --Function-- SaveJSON(json_data); bool CDriverConfigurator::PrintJSONTree(Json::Value & root, unsigned short depth /* = 0 */)

    5热度

    2回答

    我试图使用jsoncpp来解析一组json。 json是从django对象的simplejson网页生成的。我使用libcurl从特定的URL中获取它。当我在根上使用toStyledString()函数时,我会打印出来。 [ { "fields" : { "desc" : "Carol King test", "format" : "1",