Hi,
I've searched the group and found postings with a similar problem, but
I have yet to find an answer that solved my problem and I'm at my wits
end so I'm posting this and hoping that someone can help me.
I want to call the Tesseract API from an openCV c++ project. I'm using
Visual C++ 2008 Express and the Tesseract 3.0.1 VS package. I can
compile that package out of the box and the executable works.
But when I try to call the API from my own project I run into
problems. I've only wrote this so far:
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <math.h>
#include <stdio.h>
#include <string>
#define TESSDLL_IMPORTS
#include "baseapi.h"
using namespace std;
using namespace cv;
int main(int argc, char **argv)
{
string outfile;
tesseract::TessBaseAPI api;
return 0;
}
I've added all the directories that include headers or .lib files to
the Project properties. When I try to compile I get the following 3
errors:
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall
tesseract::TessBaseAPI::~TessBaseAPI(void)" (__imp_??
1TessBaseAPI@tesseract@@UAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
tesseract::TessBaseAPI::TessBaseAPI(void)" (__imp_??
0TessBaseAPI@tesseract@@QAE@XZ) referenced in function _main
1>H:\Visual Studio 2008\Projects\OCR\Debug\OCR.exe : fatal error
LNK1120: 2 unresolved externals
My eternal gratitude to anyone who can help me.
Thanks,
Jenny
--
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