我有一個OCR應用程序。我爲我的應用程序使用了tesseract api庫。但是,當我運行該應用程序,它會顯示錯誤(錯誤:ISO C++禁止'TessBaseAPI'沒有類型的聲明?)。錯誤:ISO C++禁止聲明'TessBaseAPI'沒有類型?
這是myt。
@interface OCRViewController : UIViewController <UIImagePickerControllerDelegate,UINavigationControllerDelegate>{
UIImagePickerController *imagePickerController;
//Getting error in this line.
TessBaseAPI *tess;
UIImageView *iv;
UILabel *label;
}