jsoncpp - 由于类型不完整,无法定义Json :: Reader

时间:2012-05-24 01:27:21

标签: c++ json jsoncpp

当我按照jsoncpp中的简单代码示例时出现此错误,基本上就像

Json::Reader reader;

如何解决这个问题?这种类型看起来非常完整,但它并不像g ++足以告诉我缺少什么或任何东西。

error: aggregate Json::Reader reader has incomplete type and cannot be defined

1 个答案:

答案 0 :(得分:1)

根据#include <json.h>,我应该README.txt,而不是我需要的每个班级。