xcode:Member reference base type ‘rapidjson::Document’ (aka ‘int’) is not a structure or union
首先尝试了,把rapidjson当作源码接进项目,放在demo的project,可以跑,但是放在demo链条包的sdk源码project中,就报错:xcode:Member reference base type ‘rapidjson::Document’ (aka ‘int’) is not a structure or union
尝试了把rapidjson作为三方库接进来,还是不行。
尝试了使用在xcode的build setting中禁掉c89与c++11的不兼容问题,还是不行。
最后突发奇想,单独编译一下sdk源码project,然后再编译demo,居然行了。
10-02
2万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-30
317
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-04
2386
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交