错误:当我使用tesseract引擎

时间:2017-08-07 12:54:11

标签: c++ codeblocks tesseract

我正在使用带有openCV3.0的tesseract引擎。 当我使用时:

 #include <tesseract\baseapi.h>

它显示:

  

x86_64-w64-mingw32-g ++。exe -Wall -fexceptions -O2 -std = c ++ 11 -DDLIB_PNG_SUPPORT -DLIB_PNG_SUPPORT -IC:\ tesseract \ tesseract \ include -IC:\ tesseract \ tesseract \ include \ leptonica - IC:\ tesseract \ tesseract \ include \ tesseract -c F:\ freelancer \ RajivCK \ test \ ocrtest2 \ main.cpp -o obj \ Release \ main.o   在C:/TDM-GCC-64/x86_64-w64-mingw32/include/combaseapi.h:153:0中包含的文件中,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/objbase.h:14,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/ole2.h:17,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/wtypes.h:12,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/winscard.h:10,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/windows.h:97,                    来自C:\ tesseract \ tesseract \ include / tesseract \ host.h:25,                    来自C:\ tesseract \ tesseract \ include / tesseract \ tesscallback.h:22,                    来自C:\ tesseract \ tesseract \ include / tesseract \ baseapi.h:31,                    来自F:\ freelancer \ RajivCK \ test \ ocrtest2 \ main.cpp:1:   C:/TDM-GCC-64/x86_64-w64-mingw32/include/wtypesbase.h:385:3:错误:冲突声明'typedef struct tagBLOB BLOB'    BLOB;      ^   在C:\ tesseract \ tesseract \ include / tesseract \ baseapi.h:27:0中包含的文件中,                    来自F:\ freelancer \ RajivCK \ test \ ocrtest2 \ main.cpp:1:   C:\ tesseract \ tesseract \ include / tesseract \ platform.h:30:3:注意:以前的声明为'typedef struct _BLOB BLOB'    } BLOB, LPBLOB;      ^   在C:/TDM-GCC-64/x86_64-w64-mingw32/include/combaseapi.h:153:0中包含的文件中,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/objbase.h:14,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/ole2.h:17,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/wtypes.h:12,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/winscard.h:10,                    来自C:/TDM-GCC-64/x86_64-w64-mingw32/include/windows.h:97,                    来自C:\ tesseract \ tesseract \ include / tesseract \ host.h:25,                    来自C:\ tesseract \ tesseract \ include / tesseract \ tesscallback.h:22,                    来自C:\ tesseract \ tesseract \ include / tesseract \ baseapi.h:31,                    来自F:\ freelancer \ RajivCK \ test \ ocrtest2 \ main.cpp:1:   C:/TDM-GCC-64/x86_64-w64-mingw32/include/wtypesbase.h:386:25:错误:冲突声明'typedef struct tagBLOB LPBLOB'    typedef struct tagBLOB LPBLOB;                            ^   在C:\ tesseract \ tesseract \ include / tesseract \ baseapi.h:27:0中包含的文件中,                    来自F:\ freelancer \ RajivCK \ test \ ocrtest2 \ main.cpp:1:   C:\ tesseract \ tesseract \ include / tesseract \ platform.h:30:10:注意:以前的声明为'typedef struct _BLOB LPBLOB'    } BLOB,* LPBLOB;   '

tesseract引擎指南使用了link

1 个答案:

答案 0 :(得分:0)

我使用了错误的二进制文件,而这些二进制文件并非为我的操作系统预先构建