Win64 build fails on VS2017

37 views
Skip to first unread message

THintz

unread,
Jul 26, 2017, 11:50:35 AM7/26/17
to tesseract-ocr
The following line generates an error:

max_offset = std::max(max_offset, (*code)(i)-han_offset);



Severity Code Description Project File Line Suppression State
Error C2039 'max': is not a member of 'std' libtesseract <path>\tesseract\ccutil\unicharcompress.cpp 208

Quan Nguyen

unread,
Jul 26, 2017, 2:02:13 PM7/26/17
to tesseract-ocr
I think it needs at the top of the file:

#include <algorithm>
Reply all
Reply to author
Forward
0 new messages