AmitGorvadiya / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

error when "make" v2.04, can't call function "snprintf" in svutil.cpp, on ubuntu 10.04, must include stdio.h in the head file #295

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I deal with the program by modify svutil.h, like below:

#ifdef WIN32
#include <windows.h>
#define snprintf _snprintf
#if (_MSC_VER <= 1400)
#define vsnprintf _vsnprintf
#endif
#pragma warning(disable:4786)
#else
#include <stdio.h>               //this is the code i add, at line 12
#include <pthread.h>
#include <semaphore.h>
#endif

Original issue reported on code.google.com by fuhu...@gmail.com on 12 May 2010 at 12:26

GoogleCodeExporter commented 9 years ago

Original comment by theraysm...@gmail.com on 20 May 2010 at 1:40