我使用Json-cpp解析我的配置文件,我得到som奇怪的行为与asCString() ..任何人都可以解释为什么输出为2是空的? #include <iostream>
#include <fstream>
#define JSON_IS_AMALGAMATION
#include "json/json.h"
using std::cout;
using std::endl;
in
我是cmake的新手。它工作得很好,但现在我得到一些链接错误: undefined reference to `Json::Reader::Reader()'
undefined reference to `Json::Value::Value(Json::ValueType)'
undefined reference to `Json::Reader::parse(std::basic_is
我有以下代码: void MyClass::myMethod(Json::Value& jsonValue_ref)
{
for (int i = 0; i <= m_stringList.size(); i++)
{
if (m_boolMarkerList[i])
{
jsonValue_ref.append(stringList[i