Closed mespe closed 7 years ago
Yep, R will compile files with a .c extension as C, not C++ and so use the C compiler. Please git mv the file to RConverters.cc
Done - Second part of the issue stands though. Rtesseract will not compile.
I suspect adding an explicit cast
status = (Rboolean) LOGICAL(ans)[0];
will cure the problem
Fixed by adding:
#include<string>
using std::string
To all places where baseapi.h is being included.
Can we close this?
If you think it needs to be re-opened, feel free. It seemed to be resolved with our work today.
My mistake. I was looking at a page in my browser that hadn't been refreshed and trying to be efficient in actually closing things. So I totally agree it should be closed. Just noise at this point from my end :-) We do need the matrix though of OS/compiler &version/tesseract and version/(day of week, color of clothing worn/....)
Look at Installing Rtesseract
Thanks. Let's close and kill this issue. Easier to do email :-)
Tesseract is now at beta 1 stage.
This version uses std:string everywhere. USE_STD_NAMESPACE
is not needed anymore.
Trying to compile Rtesseract against the latest version of Tesseract to see it if fixes some buggy behavior I am experiencing with configuration variables using 4.00alpha.
I added:
to Rtesseract.h per: https://github.com/tesseract-ocr/tesseract/issues/1045
But the string header is not being found:
The issue appears to stem from RConverters being recognized as a C file, and hence the C++ header is not being found:
Renaming RConverters.c to RConverters.cc leads to the following error: