【C++】問題解決: Rapidjson/document.h No such file or directory

前言

此為 C++ 上遇到以下問題,個人的解決問題筆記

Rapidjson/document.h No such file or directory

解決方法:

2021/9/14 第二次碰到時的解法

rapidjson library 未正確的被讀取,請檢查 makefile 路徑設定

個人碰到的是 merge code 時,不小心按到換行導致找不到此 library

2021/3/2 第一次碰到時的解法

rapidjson 沒有被正確的安裝

請去官網:https://rapidjson.org/

安裝 rapidjson

  • linux 安裝指令:
sudo apt update
sudo apt install rapidjson-dev

Reference

  • Rapidjson/document.h No such file or directory [https://github.com/discord/discord-rpc/issues/291](https://github.com/discord/discord-rpc/issues/291)
  • - [How to Install rapidjson-dev in Ubuntu 18.04](https://www.howtoinstall.me/ubuntu/18-04/rapidjson-dev/)