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.
我在将 JSONCPP 库导入 Visual Studio 时遇到了一些麻烦。
我已经下载了库我只是不确定如何将它导入我的项目并在我的 c++ 代码中使用它。
要修复错误“无法打开包含文件:'json/json.h'没有这样的文件或目录”,您需要将包含目录添加到您的项目中,如下所示:
- 右键单击您的项目-> 属性。在 C/C++ ->General ->Additional Include Directories 下,添加 C:\your-directory-to-jsoncpp-master\include(例如 C:\user1\jsoncpp-master\include)。