Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下载 JSON-CPP 0.5.0 并解压后,我不知道如何将它添加到我在 XCode 上的项目中。我在网上也找不到任何步骤。请帮忙..
我还尝试了自述文件中的步骤。但在安装 SCons 后卡住了。
解决了:
Step1:只需在项目中的任何位置添加包含目录和src/lib_json目录中的所有文件。(.h、.cpp 等)
步骤 2:您必须将包含文件路径从更改#include "json/writer.h"为# include "writer.h"到处。如果您不喜欢“writer.h”这个名称,您可以将其重命名为“json_writer.h”或其他名称。
#include "json/writer.h"
# include "writer.h"
步骤 3:在项目设置中,在构建阶段下,在“编译源”中添加 cpp 文件(您在步骤 1 中添加的)。