使用不同类型nsuinteger(aka unsigned int)与cdvdestinationtype的typedef重定义

时间:2012-10-01 05:46:23

标签: c++ typedef redefinition

我正在使用Cordova,#import <Cordova/CDV.h>,在我的项目中,我使用了另一个C ++风格的库,因此,我的文件必须是*.mm

问题是,当我编译时,我收到以下错误:

typedef redefinition with different types nsuinteger (aka unsigned int) vs cdvdestinationtype

此错误发生在CDVCamera.h

enum CDVDestinationType {
    DestinationTypeDataUrl = 0,
    DestinationTypeFileUri
};
typedef NSUInteger CDVDestinationType;

似乎问题来自于我混合使用Objective-C和C ++。

我该如何解决?

0 个答案:

没有答案