如何在C ++文件中声明标识符JSON?

时间:2014-11-05 09:18:33

标签: c++ json macos compiler-errors terminal

我有一个在Windows上正确编译的c ++项目。 现在我尝试在我的Mac上运行它。

我更改了Mac路径的所有路径。 在“make”命令之后,我收到此错误消息:

error: use of undeclared identifier 'Json'
Json::Reader reader;

我当然包含了包含#include <json.h>

的标题文件

我错过了任何必要的元素吗?

感谢任何想法!!

1 个答案:

答案 0 :(得分:0)

json_lib

链接错误

重新安装,问题解决了。