error C2955: 'std::allocator': use of class template requires template argument list

51 views
Skip to first unread message

rob...@es-tek.it

unread,
Sep 6, 2017, 8:37:14 AM9/6/17
to tesseract-ocr
I'm trying to build Tesseract 3.02 using leptonica 1.68
I'm building using VS2015 and I used the projects inside \vs2008 to convert them and generate VS2015 projects.

the problem is that I get this error:

 leptonica\src\leptprotos.h(1042): error C2955: 'std::allocator': use of class template requires template argument list

the line of the error is the following:

LEPT_DLL extern void setPixMemoryManager ( void * ( allocator ( size_t ) ), void  ( deallocator ( void * ) ) );

I know that in leptonica 1.69 they changed this declaration from leptprotos.h to allheaders.h but sadly I must use v1.68, same reason for tesseract 3.02 I need to use this version.

It would be great if any1 has any ideas

rob...@es-tek.it

unread,
Sep 7, 2017, 3:49:20 AM9/7/17
to tesseract-ocr
Just an update, for now I've commented the line until I can find a real solution
Reply all
Reply to author
Forward
0 new messages