문제

Getting this error when I follow the simple code example from jsoncpp, that basically goes like

Json::Reader reader;

How to fix this? The type looks pretty complete to me but it's not like g++ is nice enough to tell me what is missing or anything.

error: aggregate Json::Reader reader has incomplete type and cannot be defined

도움이 되었습니까?

해결책

Was supposed to #include <json.h>, not the individual classes I needed, per the README.txt.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top