Did you get this error with "using namespace std;"?

Zdenko


On Fri, Aug 22, 2014 at 1:53 PM, Deepak Kumar <[email protected]> wrote:

> Tesseract header tesscallback.h file reports error due to redefinition of
> remove_reference. This remove_reference is a template and defined in std.
>
> To overcome this problem, I have commented out definition lines in
> tesscallback.h file and replaced remove_reference string with
> std::remove_reference in other places of the file. There are six
> occurrences of remove_reference string after definition.
>
> After making these in changes tesscallback.h file, the compilation is
> normal.
>
> On Friday, 14 March 2014 16:52:41 UTC+5:30, Giseli Ramos wrote:
>>
>> I'm trying to compile my project in Qt that uses tesseract and opencv. In
>> the .pro file:
>>
>> INCLUDEPATH += /usr/local/include/tesseract
>>
>> INCLUDEPATH += /usr/local/include/leptonica
>>
>> LIBS += -ltesseract -llept
>>
>>
>> The errors (I only past the first lines, because is a big list, all from
>> tesscallback.h):
>>
>> In file included from /usr/local/include/tesseract/baseapi.h:31:0,
>>
>> from src/utils/ocrReader.cpp:6:
>>
>> /usr/local/include/tesseract/tesscallback.h:278:29: error:
>> 'remove_reference' is not a template
>>
>> /usr/local/include/tesseract/tesscallback.h:278:29: error: redefinition
>> of 'struct remove_reference<T>'
>>
>> /usr/local/include/tesseract/tesscallback.h:277:29: error: previous
>> definition of 'struct remove_reference<T>'
>>
>> /usr/local/include/tesseract/tesscallback.h:296:12: error: expected
>> nested-name-specifier before 'remove_reference'
>>
>> /usr/local/include/tesseract/tesscallback.h:296:12: error: expected ';'
>> at end of member declaration
>>
>> /usr/local/include/tesseract/tesscallback.h:296:28: error: expected
>> unqualified-id before '<' token
>>
>> What is strange is that I have compiled with sucess with another simple
>> qt project to test tesseract funcionality, with the same config in the .pro
>> file. I don't know why this project in particular is having issues.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tesseract-ocr.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/db209ba4-a04e-40fd-bd40-e3b5402e9664%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/db209ba4-a04e-40fd-bd40-e3b5402e9664%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8y9kS5v-8LgMyGgH0MvWkS7r4XpZ_208-JeCQ%3D_v_ZT%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to