Not sure what revision it is downloaded from google drive but was but able 
to get it working by making change mentioned earlier in configure file.

On Thursday, May 22, 2014 12:35:54 AM UTC-7, zdenop wrote:
>
> Which revision you tried (3.03 is not released yet so providing revision 
> number is must)?
>
> Zdenko
>
>
> On Thu, May 22, 2014 at 2:37 AM, Viney Khera <[email protected]<javascript:>
> > wrote:
>
>> Hi, 
>>
>> I am getting same error trying to compile with cygwin. 
>>
>> I see you mentioned replacing -std=c++11 by -std=gnu++0x worked for you, 
>> in which all files you did this replace?
>> I tried making change in config file but no luck.
>>
>> I will appreciate any help in resolving this error. 
>>
>> On Wednesday, March 5, 2014 1:13:35 AM UTC-8, Bernard Polarski wrote:
>>>
>>> No changes with #include (cstdio>, still the same error.
>>>
>>> I googled a bit, found quite a few references to this bug. 
>>> The best was a suggestion to replace -std=c++11 by -std=gnu++0x.
>>>
>>> I tried it and it compiled fine however I have no idea 
>>> if it is better to have the CXXFLAGS equal to -std=gnu++0X or unset it.
>>>
>>> Here is the output with your suggestion:
>>>
>>> /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
>>> -I..  -O2 -DNDEBUG   -I/usr/local/include/leptonica -D_REENTRANT 
>>> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
>>> -I/usr/lib/glib-2.0/include   -I/usr/include/cairo -I/usr/include/glib-2.0 
>>> -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 
>>> -I/usr/include/freetype2 -I/usr/include/libpng15   
>>> -DTESSDATA_PREFIX=/usr/local/share/  -std=c++11 -MT ambigs.lo -MD -MP 
>>> -MF .deps/ambigs.Tpo -c -o ambigs.lo ambigs.cpp
>>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG 
>>> -I/usr/local/include/leptonica -D_REENTRANT -I/usr/include/pango-1.0 
>>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo 
>>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 
>>> -I/usr/include/freetype2 -I/usr/include/libpng15 
>>> -DTESSDATA_PREFIX=/usr/local/share/ -std=c++11 -MT ambigs.lo -MD -MP 
>>> -MF .deps/ambigs.Tpo -c ambigs.cpp  -DDLL_EXPORT -DPIC -o .libs/ambigs.o
>>> ambigs.cpp: In member function 'bool 
>>> tesseract::UnicharAmbigs::ParseAmbiguityLine(int, 
>>> int, int, const UNICHARSET&, char*, int*, UNICHAR_ID*, int*, char*, int*)':
>>> ambigs.cpp:267:79: error: 'snprintf' was not declared in this scope
>>>      snprintf(replacement_string, kMaxAmbigStringSize, "%s", 
>>> fields[1].string());
>>>                                                                             
>>>    
>>> ^
>>> ambigs.cpp:273:63: error: 'strtok_r' was not declared in this scope
>>>    if (!(token = strtok_r(buffer, kAmbigDelimiters, &next_token)) ||
>>>                                                                ^
>>> ambigs.cpp:285:63: error: 'strtok_r' was not declared in this scope
>>>      if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token))) break;
>>>                                                                ^
>>> ambigs.cpp:295:61: error: 'strtok_r' was not declared in this scope
>>>        !(token = strtok_r(NULL, kAmbigDelimiters, &next_token)) ||
>>>                                                              ^
>>> ambigs.cpp:308:63: error: 'strtok_r' was not declared in this scope
>>>      if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token))) break;
>>>                                                                ^
>>> ambigs.cpp:329:63: error: 'strtok_r' was not declared in this scope
>>>      if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token)) ||
>>>                                                                ^
>>> Makefile:477: recipe for target 'ambigs.lo' failed
>>> make[3]: *** [ambigs.lo] Error 1
>>> make[3]: Leaving directory '/src/tesseract-3.03/ccutil'
>>> Makefile:524: recipe for target 'all-recursive' failed
>>> make[2]: *** [all-recursive] Error 1
>>> make[2]: Leaving directory '/src/tesseract-3.03/ccutil'
>>> Makefile:396: recipe for target 'all-recursive' failed
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory '/src/tesseract-3.03'
>>> Makefile:304: recipe for target 'all' failed
>>> make: *** [all] Error 2
>>>
>>>  -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> 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/bfc57edf-97a1-4529-8095-1216b9015c80%40googlegroups.com<https://groups.google.com/d/msgid/tesseract-ocr/bfc57edf-97a1-4529-8095-1216b9015c80%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/5c614ce4-4f98-43e4-b534-b9b1deadd5ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to