私は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++を組み合わせていることに起因しているようです。
どうすれば解決できますか?