开发者

nested functions are disabled, use -fnested-functions to re-enable-Objective C

开发者 https://www.devze.com 2023-03-04 06:14 出处:网络
I am getting errors when porting this map into Objective C. typedef map<uint32_t,string>EventMapType;

I am getting errors when porting this map into Objective C.

typedef map<uint32_t,string>EventMapType;
EventMapType cEventMap;

error: nested functions are disabled, use -fnested-functions to re-enable error: expected '=', ',', ';', 'asm' or 'attribute' befor开发者_开发问答e '<' token

error: cannot find protocol declaration for 'uint32_t'

error: cannot find protocol declaration for 'string'

error: expected ';' before 'cEventMap'


compile the source as objective-c++ (use mm extension)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号