On Thu, Aug 23, 2012 at 6:20 PM, Davor Pleskina <[email protected]>wrote:

>
>
> On Thursday, August 23, 2012 5:06:52 PM UTC+2, Nick White wrote:
>>
>> On Thu, Aug 23, 2012 at 07:01:42AM -0700, Davor Pleskina wrote:
>> > Now I understand what my coworker meant by "being optimistic about
>> getting help
>> > via forums". :-S
>>
>> I think the implication there is rather unfair - you've had 2
>> different people step in to try and help you with your problem
>> pretty quickly, each time offering constructive advice.
>>
>> Anyway, best of luck solving your problem. I'm fortunate enough not
>> to have any dealings with any MSVC programs, so am unable to help.
>>
>> Nick
>>
>
> That was just a joke. However, both pointed me out to change the way to
> search for solution, so I finally find the right one (the answer I
> expected) here, so for archives:
>
> http://tpgit.github.com/UnOfficialLeptDocs/vs2008/building-liblept.html
>
> leptprotos.h has the wrong declaration for setPixMemoryManager() under
> Windows. Change it from:
>
>
> LEPT_DLL extern void setPixMemoryManager ( void * ( allocator (size_t ) ), 
> void  ( deallocator ( void * ) ) );
>
> to:
> LEPT_DLL extern void setPixMemoryManager (void *((*allocator)(size_t)),
> void ((*deallocator)(void *)) );
>
> What version of leptonica did you used? It is known that svn version can
be compiled "out of box" with for VC++ 2008 Express (and Pro) on Windows XP
(and Windows 7).  And I know that at least one non-programmer was able to
compile it following documentation...

So if there are some conditions I would be glad if we can improve
documentation.

BTW: I did not need to change leptprotos.h - I have there
LEPT_DLL extern void setPixMemoryManager ( void *((*allocator)(size_t)),
void ((*deallocator)(void *)) );

-- 
Zdenko

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to