On Thu, Nov 17, 2011 at 2:20 PM, Jenny F <[email protected]> wrote:
> 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

I discuss some of the issues on the tesseract-ocr developers forum in
the "Enhancing the tesseract 3.01 Visual Studio 2008 distribution"
thread 
(http://groups.google.com/group/tesseract-dev/browse_thread/thread/75be5c97eb4d1b3c).
I'm still working on the README for my "enhanced" vs2008 package (I
got a bit of writer's block while completing the "Programming
libtesseract section), but here's a relevant quote:

   Add the following :guilabel:`Preprocessor Definitions` when compiling
   any files that include `baseapi.h` and you are linking with the static
   library versions of `libtesseract`::

      __MSW32__;USE_STD_NAMESPACE

   If you are linking with the DLL versions of `libtesseract` instead add::

      __MSW32__;USE_STD_NAMESPACE;TESSDLL_IMPORTS;CCUTIL_IMPORTS;LIBLEPT_IMPORTS

-- 
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

Reply via email to