baseapi.h and mysql.h error compil c++

54 views
Skip to first unread message

simon .barotte

unread,
Dec 15, 2015, 10:31:25 AM12/15/15
to tesseract-ocr
Hi all,

I begin with tesseract and I get an error when I want to compile a program thaht uses tesseract API and MySQL in C++. I have this error :


In file included from /usr/include/mysql/mysql.h:75:0, from ocr.cpp:4:
             /usr/include/mysql/my_list.h:26:3: error: conflicting declaration ‘typedef struct st_list LIST’
In file included from ocr.cpp:2:0:
             /usr/include/tesseract/baseapi.h:58:19: error: ‘LIST’ has a previous declaration as ‘typedef struct list_rec* LIST’

Any idea how to solve it ?

Thank's

CheeYang Lim

unread,
May 12, 2016, 12:35:08 PM5/12/16
to tesseract-ocr
Do you found solution?
Reply all
Reply to author
Forward
0 new messages