HI Zdenko Podobny,
I tried to write sample code as your instructions. I have add all the
header files and the lib files to the project.
Then I have included the baseapi.h and wrote as follows.
#define TESSDLL_IMPORTS
#include "stdafx.h"
#include "baseapi.h"
#include <string>
using namespace std;
int main(int argc, char **argv)
{
string outfile;
tesseract::TessBaseAPI api;
return 0;
}
When I added the code <tesseract::TessBaseAPI api;> it gives 3 errors
saying that
1>Testing_tesseract.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall
tesseract::TessBaseAPI::~TessBaseAPI(void)" (__imp_??
1tessbase...@tesseract@@u...@xz) referenced in function _main
1>Testing_tesseract.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
tesseract::TessBaseAPI::TessBaseAPI(void)" (__imp_??
0tessbase...@tesseract@@q...@xz) referenced in function _main
1>C:\Users\hp\Documents\Visual Studio 2008\Projects\Testing_tesseract
\Debug\Testing_tesseract.exe : fatal error LNK1120: 2 unresolved
externals.
So how can I solve this problem. Can you please help me on this
problem. Thanks in advance.
Regards,
Thilanka
On May 22, 1:40 pm, Zdenko Podobný <[email protected]> wrote:
> seehttp://code.google.com/p/tesseract-ocr/wiki/ReadMe:
>
> Another important change is that you should *really* be using
> TessBaseAPI if you are linking with another program. In Linux
> (non-Windows) the main library is now libtesseract_api.a instead of
> the old libtesseract_full.a. In windows, use the define
> TESSDLL_IMPORTS before including baseapi.h in your code to get the
> symbols of the TessBaseAPI class.
>
> Zd.
>
> Dn(a 21.05.2010 19:21, Thilanka wrote / napísal(a):
>
>
>
> > Hi,
>
> > I'm working with a the Sahana OCR project for my gsoc session.
> > In this I'm planning to use Tesseract for the character recognition in
> > the Sahana OCR project(is it an opensource project). The Sahana OCR
> > code has written in Visual C++. We cannot use the Tesseract exe for
> > our project. So I'm planing to join the Tesseract code with the Sahana
> > OCR code. But I don't have a good understanding about the Tesseract
> > Architecture and how I can integrate the two sources codes of the
> > Sahana and Tesseract together. So can some one please helpm me on this
> > problem.
>
> > Regards,
> > Thilanka.
>
> > --
> >http://coders-view.blogspot.com/
> >http://thilankagekawuluwa.blogspot.com/
> >http://twitter.com/thilanka_k
>
>
>
> smime.p7s
> 5KViewDownload
--
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.