【C++】問題解決:error: ‘Document’ was not declared in this scope

問題描述

碰到以下開頭的內容,問題的解決方式

error: ‘Document’ was not declared in this scope

問題來源

我原先想進行 C++ rapidjson 的 Document 相關操作,碰到此問題

解決方法

沒有正確地引入 rapidjson 的相關套件,include 進來後即可解決問題。

#include "rapidjson/document.h"

Reference

Licensed under CC BY-NC-SA 4.0