Variable has incomplete type json::syledWriter

variable has incomplete type json::syledWriter

上边的提示,是 c++的 json 库,不是 rapidjson 库.

从 win 的 vs2015 复制到 xcod 编译.有特别多的错误,以前的错误都是路径错误问题.都能解决.
唯独这个.不太理解,说变量不完全具有类型.

去看了下.那类型也是有的

错误提示的代码在

std::string
Value::toStyledString() const
{
StyledWriter writer;//Classes/json/json_value.cpp:1364:18: Variable has incomplete type ‘Json::StyledWriter’ 这行提示的错误相关信息
return writer.write( *this );
}

停着.是在 json / json_value.cpp 文件里.